Commit Graph

317 Commits

Author SHA1 Message Date
Arian
358b4e7a2b
Revert "davinci: parts: Try to take the motor back on boot when opened"
This reverts commit b4dca743ea.
2020-11-28 18:12:03 +01:00
Arian
c98553ca6e
davinci: Add clang-format configuration
Change-Id: I125056c23d0e4ed74b2b96f13842c39a39de7b45
2020-11-28 18:12:03 +01:00
Volodymyr Zhdanov
b41622fbac
davinci: rootdir: Don't configure zram in init.qcom.post_boot.sh
* let it use the size which is set in fstab

Change-Id: Ie84d0674a643e637d5ef894399d76ede25d00eeb
2020-11-28 18:12:03 +01:00
Arian
d017391602
davinci: power: We only have goodix screen's
Change-Id: Ifca047e768ff338f7d9432ca78bd75141583c272
2020-11-28 18:12:03 +01:00
Arian
91911144f8
davinci: sepolicy: Drop unused fingerprint sepolicy rules
Change-Id: I5dd29315c94d971eb5162bd1ed24f2fecf3de305
2020-11-28 18:12:03 +01:00
Arian
7b875c6270
davinci: Add 32-bit perf stack and drop unused libskewknob
* Our audio HAL want's to use it

Change-Id: I2146369cacbb4f5a342781842bf34ce93db551f0
2020-11-28 18:12:03 +01:00
Arian
e4426a8806
davinci: init: Cleanup unused includes
Change-Id: Ib713665e84bdfb3e41e6d54618308b32cfba8f1b
2020-11-28 18:12:03 +01:00
Arian
d55ed606b2
davinci: tfa98xx: Cleanup audio_amplifier
* Drop unnecessary shared libraries and c includes
* Replace libhardware c include with libhardware_headers
* Drop unused includes and commented code
* Refactor is_speaker to a bool
* Alphabetize share libraries and speaker devices
* Replace hard-coded sm6150 with $(TARGET_BOARD_PLATFORM)
* Drop unnecessary optional tag

Change-Id: I067e0dae75021cd677892d3b83fbe922fef245f5
2020-11-28 18:12:03 +01:00
PIPIPIG233666
fdf5278aba
davinci: Add audio amplifier for TFA amp feedback
* Fixes broken stereo channel seperation.

* Logic and original code by Smosia, slightly rewritten and moved to audio amplifier HAL by Pig.

Co-authored-by: Smosia <stasenko_nv@nrcki.ru>
Signed-off-by: Arian <arian.kulmer@web.de>
Change-Id: I369555a9fcb06065177636b436d2e006c7a0b07d
2020-11-28 18:12:03 +01:00
Arian
ba52828323
davinci: overlay: Enable STATE_DOZE_SUSPEND
Change-Id: I30af14b78bd0a1a18ec1511b574ea9944f160175
2020-11-28 18:12:03 +01:00
SVB
b40d5db28f
davinci: rootdir: Allow all filesystems for USB-OTG
Change-Id: Ie9cef57485c337c39bae559a71582b4c66127d85
2020-11-28 18:12:03 +01:00
yankarinRG
88e69626ee
davinci: overlay: Update path defining rounded corners
Change-Id: I82669e8c10aab56d1a5ecc1b410435aa3a82e256
2020-11-28 18:12:02 +01:00
yankarinRG
53abf93216
davinci: overlay: Update window corner radius adjustment
to take software rounded corners into account

Change-Id: I056cb5f03ce065465e46dfe6db74094d43d6499b
2020-11-28 18:12:02 +01:00
yankarinRG
bfd3451ff5
davinci: overlay: Adjust window rounded corners
to make sure they will completely cover the display

Signed-off-by: Marco Rizzo <marco.rizzo.00@outlook.com>
Change-Id: I5ff1a727545c383692b02dabdbcf8810b70df1a1
2020-11-28 18:12:02 +01:00
yankarinRG
0b15b7fb4e
davinci: overlay: Add proper keyguard/statusbar configs for rounded corners
- on keyguard, added start padding to carrier text to account for the rounded corners
- on keyguard, added end padding to right system icons when multi user switch is not showing
- on keyguard, added end padding to multi user switch

Change-Id: I7c73c538c08b746f3d0f21b2d22586134a87353d
2020-11-28 18:12:02 +01:00
Ethan Chen
450d2ccbf7
davinci: rootdir: Move services to system-background cgroup
Change-Id: Id80f6369f943fc5fc1145cc6f13bddb2fe2b76e8
2020-11-28 18:12:02 +01:00
Tim Murray
4a9fbc3467
davinci: rootdir: Add restricted cpuset
bug: 78197570
Test: CTS

Change-Id: I6aaac2f3ce9ba886143e3667df2ca044c7f3d3f0
2020-11-28 18:12:02 +01:00
Arian
f5bcf08199
davinci: rootdir: Use stock cpusets from init.davinci.rc
Change-Id: I91d4e504635445a2dea6f7f3835d80f46cbc942a
2020-11-28 18:12:02 +01:00
Vincent Vidal
acd719db2d
davinci: fod: Use FOD_PRESSED_LAYER_ZORDER instead of magic number
Change-Id: I93d8519ca43db307abdf958354920da10776aa80
2020-11-28 18:12:02 +01:00
Vincent Vidal
e080227d40
davinci: fod: Include generated_kernel_headers to build libfod_extension
Change-Id: I7357fc3dca9882af3d57074e69f9fb22bc9eaa99
2020-11-28 18:12:02 +01:00
Arian
ae4d15e750
davinci: sepolicy: Label panel_info sysfs node
Change-Id: I4cda61bd146effa1e1be4e24219048089dec3d62
2020-11-28 18:12:02 +01:00
Marco Rizzo
20e302fbcf
davinci: overlay: Tune vibration levels
Change-Id: I6936b97837d0e9296503b7da01073daf9a9b00dd
2020-11-28 18:12:02 +01:00
Arian
08b5a000c0
davinci: light: Add lights HAL manifest as vintf fragment
Change-Id: I97f0c6bfb25bea8b7418c9494c981e7e2602c79f
2020-11-28 18:12:02 +01:00
Arian
9900e7e4dd
davinci: Fix Android.bp formatting
Change-Id: Id9b1deb6188b7af6170453d7f863bd54f8d360f9
2020-11-28 18:12:02 +01:00
Arian
e68fa0e063
davinci: sepolicy: Label new LED paths
Change-Id: Ibbb21ac80ddfa1d7c65968130493632ee47bd30c
2020-11-28 18:12:02 +01:00
Arian
53b4be9757
davinci: light: Adjust for new led labels in kernel
Change-Id: I1fca124501ad6a220013572587c55d5f26488dad
2020-11-28 18:12:02 +01:00
Arian
5c58f2e504
davinci: parts: Adjust for new led labels in kernel
Change-Id: I8ce322f58d2af6fee20f1a9eda91e68b0ec59b05
2020-11-28 18:12:02 +01:00
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