Commit Graph

340 Commits

Author SHA1 Message Date
Arian
f18e17322f
davinci: rootdir: Drop powerkey input boost
Change-Id: I2675b72051bdb71d6faba17d59ad8f0281ec2e89
2020-11-28 18:12:02 +01:00
Arian
fc27e74506
davinci: rootdir: Move simple writes from post_boot script to init.target.rc
Change-Id: I512689bbdd77b9a998e7a5d6a2ee91cede599f44
2020-11-28 18:12:02 +01:00
Arian
bbe34cefca
Revert "davinci: rootdir: Import coral fs tuning"
This reverts commit 867af09b6b.

* The boot_completed settings are the default settings already
  and switching the settings while booting does not bring a
  noticeable improvement.

Change-Id: I7a61e2fa8558b074d5c3d7b19c548b4fde00d918
2020-11-28 18:12:02 +01:00
Arian
80bafc10ee
davinci: rootdir: Stop overriding audio hal 2.0 service
* Xiaomi adds the audio_hw_socket here, but it needs
  their changes in the audio HAL, hence it's useless
  for us.

Change-Id: Idf38468ad709623b60b694f458e71d0565ce6fb6
2020-11-28 18:12:02 +01:00
Arian
0a6db81b36
davinci: rootdir: Drop ssr_setup service
* missed in commit:
  66573bbfea
  davinci: Drop SSR blobs and set SSR restart_level in init.qcom.rc
  Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4

Change-Id: I5078d9579e894c0b1a7b30a2984b1ba096843e0e
2020-11-28 18:12:02 +01:00
Arian
fafcd0b549
davinci: rootdir: Don't setup runtime cpusets for silver only first
Change-Id: I7f9fa116971bd437bfe2722882282a08fe59c006
2020-11-28 18:12:02 +01:00
Kyle Lin
c5cea3fb39
davinci: Enable cortex-A76
Bug: 142345573
Test: build , boot to home, do the benchmarks
Change-Id: I73c5042712da29d5cb63586bc4d145a770df074d
2020-11-28 18:12:02 +01:00
Midas Chien
cbf998503c
davinci: Set surfaceflinger phase offset properties
Bug: 147645861
Test: check properties
Change-Id: I5c7e93a8411a89b29346a687ec0dcfffb40f2ac5
2020-11-28 18:12:02 +01:00
tangrobin
276fe2261e
davinci: Refined early phase offsets
GPU takes long time(>8ms) when app was launching and closing.
This may because GPU is handling some heavy task like color conversion.
By setting NegativeOffset as 5ms to allow SF have more time to handle
when doing animation transaction and shift back 5ms with
early_app_phase_offset_ns such that app still has the same amount of
time to handle each frame.

Test: 1. Open Chrome from homescreen
      2. Swipe vertically to go back to home screen
      3. Measure the gpu completion time and "FrameMissed" count from systrace result
Bug: 147339695

Change-Id: I157cb11e8ed8c1ca296fc65612752fbb3d985dcd
2020-11-28 18:12:02 +01:00
Arian
eded8aab13
davinci: Copy all media configs from the media HAL
Change-Id: Id46c5ca254aef4c9823bc5a5be87681bf2844699
2020-11-28 18:12:02 +01:00
Arian
ce26567d62
davinci: sepolicy: Use add_service macro for remosaic_daemon
Change-Id: I2ca58c07d6bd01778b7b79da904abe54713aaaba
2020-11-28 18:12:02 +01:00
Arian
cc90c3bee5
davinci: Drop unnecessary display calibration files
Change-Id: Ib2d56131c6a5709644097cfd3a45eb6310fc9196
2020-11-28 18:12:02 +01:00
Arian
688407d50e
davinci: rootdir: Drop led permissions from ueventd
* Set the permissions we need from lights HAL

Change-Id: I93bc6cc0aab1d55f32b53a01df662fe5327c0199
2020-11-28 18:12:02 +01:00
Arian
6632e3c003
davinci: init: Set hardware revision property
* The bootloader sets androidboot.hwversion, use this and set
  the ro.boot.hardware.revision property in order to show it
  in settings.

Change-Id: I3c6c678bf055091ea9fcb2a1524d321e2c1be043
2020-11-28 18:12:02 +01:00
Michael Bestas
36d4f0f809
davinci: overlay: Add call recording overlay
Change-Id: I6bb12aad39d42b76927ea4c97ec640c1f001ec3c
2020-11-28 18:12:02 +01:00
Arian
449aca62a9
davinci: audio: Fix handset echo reference paths
* Xiaomi is using the earpiece echo reference paths in their HAL,
  while CAF uses handset paths.

* Rename the earpiece mixer paths to handset mixer paths in order
  to apply the correct echo reference for the CAF hal.

Change-Id: Id917fb33f49009e8145c58638e9fa6d05670473e
2020-11-28 18:12:02 +01:00
Arian
4fa86d3578
davinci: audio: Add echo-reference headset paths
* xiaomi uses the echo-reference headphones path also for headsets

Change-Id: Ica5e5c8c1ca1378a807614609a466e6d1129f2ce
2020-11-28 18:12:02 +01:00
Arian
374b2dc57a
davinci: audio: Adjust echo reference speaker path names for caf audio HAL
* Xiaomi's audio HAL uses the "echo-reference-voip speaker" path during voip
  calls in speaker mode, while the CAF hal uses the "echo-reference-voip" path.

* That led to an echo in voip speaker calls since xiaomi appends speaker
  to the path name and hence the echo reference wasn't set up properly, because
  xiaomi did not apply their echo-reference edits to the default path.

* To fix this we can apply xiaomi's "echo-reference speaker" and
  "echo-reference-voip speaker" as "echo-reference" and "echo-reference-voip".

* Remove the "echo-reference speaker" and "echo-reference-voip speaker" paths
  because they are the same as "echo-reference" and "echo-reference-voip" and
  even if the HAL will support speaker paths one day, it would not be needed for
  us since we don't need to differ between speaker and no suffix.

Change-Id: I9c2d42db6870c7f3579f5d96756a8bd4063022c8
2020-11-28 18:12:01 +01:00
TheScarastic
dcacd0142a
davinci: fod: Change vendorCode for screen off FOD
Change-Id: Ie6301e2816adc2a9f2994cdd91059474fff423b2
2020-11-28 18:12:01 +01:00
Pig
df732ce3dd
davinci: Enable TARGET_USES_FOD_ZPOS
Change-Id: I5558743ab7f96014aceae0a4e0aea9859a10d5d1
2020-11-28 18:12:01 +01:00
Rahul Shahare
f1f388ee89
davinci: Set Header version for bootimage
Set Header version to 1 for bootimage and Enable
BOARD_INCLUDE_RECOVERY_DTBO.

Change-Id: I165130b412020a6dee7fb3473766296f21a7cdb7
Signed-off-by: Rahul Shahare <rshaha@codeaurora.org>
2020-11-28 18:12:01 +01:00
kazerine
ab51fafbdd
davinci: Get rid of megvii dependencies in camera.qcom.so
Change-Id: I97058c320d06819a468ebe38e2704360e9aa91db
Signed-off-by: Arian <arian.kulmer@web.de>
2020-11-28 18:12:01 +01:00
Bruno Martins
7e2d54a2a7
davinci: List additional native libraries to expose to apps
* Initially based on the list defined by Xiaomi, trimmed to include
   only the vendor libs that are also being shipped by us.

Change-Id: I552dc44a32221d2d3cec48e1c64ed72c470d412e
2020-11-28 18:12:01 +01:00
Andrew Hexen
cee65c43f9
davinci: Move NFC permissions to ODM
* Ensures that NFC is enabled only on global and chinese variants.

Change-Id: I25444aae6644ca391d79282c1c5d588617483ee6
2020-11-28 18:11:31 +01:00
Erfan Abdi
6e3b2395f6
davinci: Disable NFC for indian devices
* Setup davinci sku when device is global or chinese.
* Move the nfc manifest entry to davinci hardware sku
  variant.

Change-Id: I76ac75cd80f85efa6dfa68753602d934a11000a3
Signed-off-by: Arian <arian.kulmer@web.de>
2020-11-28 18:10:27 +01:00
Ethan Chen
1c5c53d034
davinci: Remove dead RCS packages
Change-Id: Ie2c03fa11cb08c7ab900d7b666981d592aba19c7
2020-11-23 20:44:38 +01:00
LuK1337
71a981f61c
davinci: Disable uplink features in librmnetctl and build it from source
Change-Id: I2e5f63f3cb688f3d141fa9123f3a6e91b6294157
2020-11-23 20:44:38 +01:00
Arian
991edc2c96
davinci: Update from global stable V12.0.3.0.QFJMIXM
Change-Id: I5af4d9bb9f386707df37a6856805625c75cff7c0
2020-11-23 20:44:38 +01:00
Arian
fea051b9c7
davinci: audio: Drop audiosphere
Change-Id: I3263caea70c4b954e434bcf3498a4fdd7700fbdf
2020-11-23 20:44:38 +01:00
Arian
8ea8838e3e
davinci: Drop misound karaoke
Change-Id: I86c8c8d42050ea16cfe4a473358012c6abb5341a
2020-11-23 20:44:38 +01:00
Arian
27edb262ed
davinci: Drop audioconfigstore
Change-Id: Iadb796a9f6f5187994474ccba7acdc77f51b7e75
2020-11-23 20:44:38 +01:00
Arian
12f436ea0f
davinci: Drop graphite ipc
Change-Id: I544529d834616340d4da98f9af9456cd65b0cb91
2020-11-23 20:44:38 +01:00
Arian
d5591d6d37
davinci: Build audio HAL from source
* Disable ssrec and hdmipassthru since they depend on proprietary headers

Change-Id: I6abf4baf2e03aa9dc4ce52cbe758d976441cc7fc
2020-11-23 20:44:38 +01:00
Arian
dbb6f79eb3
davinci: audio: Merge static mixer_paths overlay into mixer_paths_idp
Change-Id: If09ffda8650e2e8a64c2bcba850038a690d4db63
2020-11-23 20:44:38 +01:00
Bruno Martins
e0dab7b3ec
davinci: audio: Nuke dirac and misoundfx effect
Change-Id: I5672e554a2b2b21fbadfe915b9a89cd2365f3864
Signed-off-by: Arian <arian.kulmer@web.de>
2020-11-23 20:44:38 +01:00
Angga Satya Putra
c77b652733
davinci: audio: Remove shoebox and hw_acc from audio effects
* libshoebox.so does not exist anymore
* HW_ACCELERATED has been disabled by default as stated in the HAL

E EffectsFactoryConfigLoader: Could not find library in effect directories: libshoebox.so
E EffectsFactoryConfigLoader: Error querying effect 7d1580bd-297f-4683-9239-e475b6d1d69f on lib offload_bundle
E EffectsFactoryConfigLoader: Could not find library shoebox to load effect shoebox
E EffectsFactoryConfigLoader: 3 errors during loading of configuration: /vendor/etc/audio_effects.xml

Change-Id: I2407c03728930995213f16ec0551e4194fbb7476
Signed-off-by: Arian <arian.kulmer@web.de>
2020-11-23 20:44:38 +01:00
Michael Bestas
2f4f2b5147
davinci: gps: Lower gps debug level
* Kill logcat spam

Change-Id: I20d1f698d3c2d1b56e79f6eb6c5c17069e43c60f
2020-11-23 20:44:38 +01:00
dianlujitao
094fe89a3f
davinci: gps: Fix non-ASCII character in gps.conf
Change-Id: Iea9c44c0fbad574cbc077feea3d9f1de83d7d99a
2020-11-23 20:44:38 +01:00
Arian
f88933946c
davinci: Import GPS configs from MIUI V12.0.1.0.QFJMIXM
Change-Id: Id3ec33eeb511081ebf2eb07324b167b3e58c11a2
2020-11-23 20:44:38 +01:00
dianlujitao
bf60c73d8e
davinci: Build GNSS HAL
* Remove unnecessary dependencies on liblbs_core.so
 * Hardcode vendor loc HIDL version to 3.0 to enable vendor HIDL when
   building w/o BSP.

Change-Id: I01f661f1d1e038737801f5a9db88e3388d470f74
2020-11-23 20:44:38 +01:00
Arian
4f4f8cd486
davinci: gps: Clean up
* Get rid of 1.0 and 1.1 hidl
* Get rid of target_specific_features.mk
* Clean up the top Android.mk
* Drop sample configs
* Drop sample target and board config

Change-Id: I7b45b940812a51306db76f6275ea43049fa62335
2020-11-23 20:44:38 +01:00
Arian
848723807d
davinci: gps: Import gnsspps from LA.UM.8.9.r1-03800-sm6150.0
Change-Id: Ib047a59a195cb6ead9438d74403cad7031804e6e
2020-11-23 20:44:37 +01:00
Arian
5230c34f83
davinci: gps: Import from LA.UM.8.9.r1-03800-sm6150.0
Change-Id: Idc1e896796742df928ef244bf003d24e87bfd3d7
2020-11-23 20:44:37 +01:00
Arian
cadbc6c7eb
davinci: Add xtra_root_cert for xtwifi-inet-agent
Change-Id: I17d268efe42a1e87c12122e1a1f9a97d9bb195c3
2020-11-23 20:44:37 +01:00
Wei Wang
2a8a880cdb
davinci: rootdir: Tune zram performance
-Set max_comp_streams to num of cores since upstream also moves this to
percpu.

Bug: 38249616
Test: boot and run zram-perf showing better performance
Change-Id: I0b92b246d773db85aa03d033b2cecee54347cbd1
2020-11-23 20:44:37 +01:00
Arian
7ff9df129e
davinci: rootdir: Update zram size from V12.0.1.0.QFJMIXM and tweak swappiness and allocstall threshold
Change-Id: I70a19d48918ad0fc0d7ae7e5919779636fdaa0d4
2020-11-23 20:43:15 +01:00
PIPIPIG233666
86032a20b5
davinci: fod: Add support for Xiaomi's touchfeature
Change-Id: I15a4a3d777d784abe04e88372647fc9abff78626
Signed-off-by: Arian <arian.kulmer@web.de>
2020-10-13 18:25:13 +02:00
Demon000
86826edb8d
davinci: fod: Set nit value on sysfs notification
Change-Id: I78069d10677c6704b0bb080ecf76ecbbfd0b2212
2020-10-13 18:25:13 +02:00
TheScarastic
e83427491a
davinci: fod: Add surfaceflinger extension lib
Change-Id: I51fb56c0a20e3cac83afb46ed6a6e2f967159d18
2020-10-13 18:25:13 +02:00
Demon000
95126a384e
davinci: fod: Switch to in-kernel handling of changes
Change-Id: I242a57b42bb455835bbc0777878a93bca6b986e7
2020-10-13 18:25:13 +02:00