147 Commits

Author SHA1 Message Date
Wei Wang
bf49e93908
sm6250-common: Remove QTI perfd
Bug: 69270928
Test: Build and boot device and test camera
Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4
2021-09-09 18:46:26 +02:00
Bruno Martins
0e4b40db0a
sm6250-common: power: Scan input devices for eligible DT2W node
It is no longer a surprise for anyone to see Xiaomi shipping the same
device with different displays and different displays usually mean
different touchscreen drivers.

The current double tap handling in the power HAL only takes into
account one specific node, meant to be set in the device tree.
However, if the touchscreen was registered as a different input device
it would cause the feature to be broken. Address the issue by iterating
through the input devices in order to find one supported touchscreen
input to be used.

Co-authored-by: LuK1337 <priv.luk@gmail.com>
Change-Id: I2f7fb4a8b0c9cd1a16d6c2b93602d285a191f170
2021-09-09 18:46:25 +02:00
Alexander Winkowski
b0d272f935
sm6250-common: powerhint: Avoid boosting to max freq
The maximum frequency isn't effective from power consumption terms on
both clusters [1]. Replace maximum frequencies with lower ones to save some power.

[1] https://github.com/kdrag0n/freqbench/tree/96d72eac/results/sm7125/main

Change-Id: I6336bfce0dae8f578704c0bd9644c2829389762f
2021-09-09 18:46:25 +02:00
Alexander Winkowski
38ab3fe971
sm6250-common: powerhint: Lower schedtune boost
Current value seems too aggressive. Reduce it by half.

Change-Id: I15104852ae49a4beb6e51d0d72bb61ea1af2c462
2021-09-09 18:46:25 +02:00
Alexander Winkowski
1fcfac2e39
sm6250-common: powerhint: Adapt for atoll
Change-Id: If9c6a7a93044ecfd535c1942f24447c019443edd
2021-09-09 18:46:25 +02:00
Alexander Winkowski
03c4e952a4
sm6250-common: powerhint: Remove EnergyAware node
* Google removed this node in redbull.

Change-Id: Iaba137fdb02dddfad7815b7cb3a0701962a06832
2021-09-09 18:46:25 +02:00
Alexander Winkowski
899c6d2994
sm6250-common: powerhint: Remove unused parts
Change-Id: I1448516636befbb7080067d3a2dbfc12874c3d6a
2021-09-09 18:46:24 +02:00
Jesse Chan
567b683d8d
sm6250-common: powerhint: Remove Google-specific camera hints
Change-Id: I999e9d4f342f2202a87e92a7289c1dae48c565d0
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
2021-09-09 18:46:24 +02:00
Alexander Winkowski
0e84b1766f
sm6250-common: powerhint: Don't restrict CPU idle levels
The difference in wakeup latencies isn't so significant, let CPU cores enter
deeper idle states to save some power.

Change-Id: I9b24adc356bf35bbdc0bda6e0eee982b4daf1350
2021-09-09 18:46:24 +02:00
Alexander Winkowski
a41b14b1bd
sm6250-common: Import powerhint.json
* From sunfish-user 11 RQ3A.210705.001 7380771 release-keys

Change-Id: I09399706d007a0e3de89945bd9fe269bd7fa78e3
2021-09-09 18:46:24 +02:00
Alexander Winkowski
ab8029bdc2
sm6250-common: Build Xiaomi power AIDL HAL
Change-Id: I0e10f0b36598b8cbf25ee2dc08b8a4eced95c2ed
2021-09-09 18:46:23 +02:00
Sebastiano Barezzi
ee63dc6ded
sm6250-common: Copy AOSP permissions
Change-Id: Ifdacc41cd114e451fe2c98abce9be8f640a961a4
2021-09-09 18:46:23 +02:00
Sebastiano Barezzi
b992036dac
sm6250-common: Build OMX stack
Change-Id: Ib4ac3f9989e9e8c37d9a707cef3e2f5652843122
2021-09-09 18:46:23 +02:00
Albert I
d46af7f230
sm6250-common: Enable Codec2 input surface
* may improve performance with Codec2 decoding

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I222b1651daa0cfe51eb2d595897d2289f00dcf8c
2021-09-09 18:46:23 +02:00
Albert I
c45471638a
sm6250-common: Import QTI Codec2 HAL and switch to Codec2 by default
* Provides hardware-accelerated Codec2 decoding for most codecs

Signed-off-by: Albert I <kras@raphielgang.org>
[dereference23: Kang blobs from mojito]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Iefd3185390091a11adbd2497c8281f72c98e100e
2021-09-09 18:46:23 +02:00
Volodymyr Zhdanov
f7efd5302f
sm6250-common: Copy Google media configs from frameworks/av
[dereference23: Copy c2 configs]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Ic67bd609e5b1e4559fecfded914b4c6d61ab4fc9
2021-09-09 18:46:22 +02:00
Alexander Winkowski
707fe664af
sm6250-common: Import media configs
* From curtana-user 11 RKQ1.200826.002 V12.0.5.0.RJWINXM release-keys

Change-Id: If10e2e0610740e24e344bfbca20ac34063ade616
2021-09-09 18:46:22 +02:00
Sebastiano Barezzi
c0e75aa346
sm6250-common: Build media libs
Change-Id: I90dec4db678088cbea8c209cea80b3d001ca79ac
2021-09-09 18:46:22 +02:00
Albert I
e313f8855a
sm6250-common: Set up display color compositions
* Switch to "Adaptive" mode and Display P3 color by default

* Use default color mode for Natural and Boosted

* Enable QDCM combined mode and disable factory mode

* Drop LiveDisplay's color mode support as it conflicts with AOSP display
  color adjustment

* Rest of configuration is kanged off Pixel's overlay

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Ib26033fe00a6cc1e8c7d8f93da417516e31a52e3
2021-09-09 18:46:22 +02:00
Sebastiano Barezzi
346597a773
sm6250-common: Build LiveDisplay HIDL
Change-Id: I6b767fe2269b679438c8fc0c49ceef9110a96a23
2021-09-09 18:46:22 +02:00
Sebastiano Barezzi
3e5d95cd3b
sm6250-common: lights: Wire it up
* Heavily inspired by CAF liblights
* Also properly implemented white LED support
* Added chowns where needed (AOSP init.rc already sets some)

Change-Id: Ib9ff8accb163563e19d754f581805bde586d30a9
2021-09-09 18:46:21 +02:00
Sebastiano Barezzi
b4e037ad8e
sm6250-common: lights: Rebrand to Xiaomi SM6250
Change-Id: I3c2ec7f68b0d845ea15277e396194409f8ebe216
2021-09-09 18:46:21 +02:00
Sebastiano Barezzi
c755af1f0d
sm6250-common: Pull in AOSP lights AIDL
* From ee34a8ce6e

Change-Id: Id83b242a850119c83f1b7b2d9b7a74928a7d5e67
2021-09-09 18:46:21 +02:00
Volodymyr Zhdanov
3ccb8d04dd
sm6250-common: Build IR HAL from source
Change-Id: I619157582ece00d6fb7adef00182347211716706
2021-09-09 18:46:21 +02:00
Sebastiano Barezzi
278e6e50e7
sm6250-common: Build IPACM libs
Change-Id: Idd968a3ea54f1f7fda1e3579bdbce95b96349d3a
2021-09-09 18:46:20 +02:00
Bruno Martins
6c8fa8c7bc
sm6250-common: Add device input configs and keylayouts
And disable buttons.

Change-Id: If4c7d64f473d97e28652a6c7333be9f20c84b190
2021-09-09 18:46:20 +02:00
Christian Oder
97feddb671
sm6250-common: Add basic permission file for HotwordEnrollment
Change-Id: I2986ba3599fe65a8da27649d98d70cd548257aa8
2021-09-09 18:46:20 +02:00
Sebastiano Barezzi
955090199f
sm6250-common: Build libhwbinder
* Some libs use it

Change-Id: Ic40f730a4d498725459785b8c33ef7f5e8d0b13b
2021-09-09 18:46:20 +02:00
Sebastiano Barezzi
25560e511b
sm6250-common: Build android.hidl.base@1.0
Change-Id: I5457ebbadd95e4c43af4f4dd2e1a1413a241d865
2021-09-09 18:46:20 +02:00
Sebastiano Barezzi
2fffef342c
sm6250-common: Build health HIDL
Change-Id: I89c431c7ac87fe878537375cd811606d68f4bb1d
2021-09-09 18:46:19 +02:00
Sebastiano Barezzi
6fae12a724
sm6250-common: Build FM libs
Change-Id: If5d73c3a142f44f3b9af69dbe287c362117c254e
2021-09-09 18:46:19 +02:00
Volodymyr Zhdanov
3559a3e6e2
sm6250-common: Build our fingeprint service
Change-Id: I8bd2a730e3fe4ef6b981094a54a2a608ca9113d7
2021-09-09 18:46:19 +02:00
Jake Weinstein
530479f6b4
sm6250-common: biometrics: Revert "fpc: keep fpc in system-background"
While Google found that fingerprint HAL is insensitive to
increased CPU throughput, we have not found that to be the
case. Allowing more CPUs makes fingerprint unlock up to
2x faster in some tests.

SM8250 device with fingerprint on display:
- Before: 3128ms
- After: 944ms

SDM845 device with fingerprint on the power button:
- Before: 1146ms
- After: 688ms

This reverts commit d0fdb4431d26e4f257b8867f67ffd9b4a9818d9e.

Change-Id: I7a28d82caee2b8503b974a8226b29240eb072ceb
2021-09-09 18:46:19 +02:00
Pig
3e95dcb3f0
sm6250-common: biometrics: Clean up duplicated includes
* Move all includes to header.

Change-Id: I36b26dcf16c8b51958129707242cafa712a17bf1
2021-09-09 18:46:19 +02:00
LuK1337
591cc0827d
sm6250-common: biometrics: Don't set ro.boot.fpsensor
* It's useless.

Change-Id: I29357c1fbbd7752f3631d9b7f1ce63b61bb41cd0
2021-09-09 18:46:18 +02:00
LuK1337
3bc2b1bd13
sm6250-common: biometrics: Brackets should be here
Change-Id: I8093287b3f4e1b1d0c3deff384a1cb5e6e17dbff
2021-09-09 18:46:18 +02:00
Volodymyr Zhdanov
d93a5f853e
sm6250-common: biometrics: Rebrand to Xiaomi SM6250
Change-Id: Ia70786f28372e49cc3dc3d25fedbbe3a1562b5a7
2021-09-09 18:46:18 +02:00
Volodymyr Zhdanov
bde1db3cda
sm6250-common: Import fingeprint service from Xiaomi MSM8998 tree
Change-Id: I70b4a84bf2b1ec86daf38968b652d3f4b652d0cf
2021-09-09 18:46:18 +02:00
Demon000
1055cc7da4
sm6250-common: Build fastbootd
Change-Id: I1056d3ed331c1590dce00f980bc78c6a5e23a799
2021-09-09 18:46:18 +02:00
Sebastiano Barezzi
f0c75277aa
sm6250-common: Build DRM HIDL
Change-Id: I51a46b9dd23b4de19708ad8ffbfba7f939230238
2021-09-09 18:46:17 +02:00
Volodymyr Zhdanov
f42bea25a7
sm6250-common: Disable configstore
* it's finally deprecated in R
* ship disable_configstore because we have API level 29

Change-Id: Iea053348cdabc82a550333b8acf15054290efcd9
2021-09-09 18:46:17 +02:00
Sebastiano Barezzi
e0a9f12805
sm6250-common: Build display stack
Change-Id: I42bdf9aad5f6619469c5e11487b92b1837dd252d
2021-09-09 18:46:17 +02:00
Ryan Mitchell
8b18ceac19
sm6250-common: Use component-override to configure Bluetooth
Runtime Resource Overlays (RROs) can no longer change the value of
resources in manifest when read during PackagerParser.

This change uses component-override to enable the service by default.

Remove usages of profile_supported_* from overlays as they no
longer configure the enable state of Bluetooth components.

Bug: 135048762
Test: adb shell pm query-services \
      com.android.bluetooth/.avrcpcontroller.AvrcpControllerService
      adb shell pm query-services \
      com.android.bluetooth/.hid.HidDeviceService
      adb shell pm query-services \
      com.android.bluetooth/.sap.SapService

Change-Id: I284d254a921b14d1533745611a083f4b5a27d9dc
2021-09-09 18:46:17 +02:00
PIPIPIG233666
1dd5cac91d
sm6250-common: Disable UBWC
Change-Id: If28a6bce43640b854a66b51944575a892da6bdbc
2021-09-09 18:46:16 +02:00
Sebastiano Barezzi
d0046db961
sm6250-common: Build camera libs
Change-Id: I9b5d730c54018614c8e28a946a1d234663339b0c
2021-09-09 18:46:16 +02:00
Sebastiano Barezzi
e600ae99f8
sm6250-common: audio: Remove QTI BT A2DP routes
* They conflict with AOSP ones

Change-Id: If8e2bc1b0f44aad66ac0d86b983d90d9d85a01b8
2021-09-09 18:46:16 +02:00
dianlujitao
ff0b9f08be
sm6250-common: Enable AOSP bluetooth audio HAL v2
Change-Id: I4d12752ae5fb2829d6612647c8740c84967f5434
2021-09-09 18:46:16 +02:00
Sebastiano Barezzi
c9751304db
sm6250-common: Commonize bluetooth config
Change-Id: I44a7841dfef8fe399d242c0de8475bda9f11664a
2021-09-09 18:46:16 +02:00
Sebastiano Barezzi
946e762319
sm6250-common: Build bluetooth libs
Change-Id: I999905b2b7a0f7fe8f808e88c7ab428f1d50b263
2021-09-09 18:46:15 +02:00
Volodymyr Zhdanov
1df35a84e5
sm6250-common: Copy audiopolicy configs from frameworks/av
Change-Id: If6f654269381e689edb8e242dcb89abef78990eb
2021-09-09 18:46:15 +02:00