Commit Graph

252 Commits

Author SHA1 Message Date
xSylla
c74a5a4f8f sm7250-common: sepolicy: Drop Motor hal
*There are no devices on lito that use motor

Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
9b33d47fff sm7250-common: Drop M4DEFS
Change-Id: I43c99687e099d029d99a807bb5384151601c9d36
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
274205fbfa sm7250-common: fod: We don't use wakelock anymore
Change-Id: I805488ef50d5753e070df8efdcf0e2293ef06279
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
53f39f7889 sm7250-common: Kill touchfeature
Change-Id: Iea8dbe1a69906627ffdabca70ecea624435fc53e
2021-12-01 13:02:03 +01:00
Bruno Martins
51a9e88374 sm7250-common: Drop TARGET_QTI_USB_SUPPORTS_AUDIO_ACCESSORY
It is no longer necessary as per the latest QTI USB HAL update
(LA.UM.9.12.r1-11500-SMxx50.0).

Change-Id: I3caf226de247ac45bdcb9b35ab3a4c5b959dc1dd
2021-12-01 13:02:03 +01:00
Bruno Martins
22b9e2fa86 sm7250-common: Unset BOARD_VNDK_VERSION
PRODUCT_USE_VNDK will be true in Android-P or later launching devices
and consequently BOARD_VNDK_VERSION will be set to 'current'.

Change-Id: Iaed3eb4875c00742903627d63b4f2968e356781b
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
84f14b1b39 sm7250-common: Enable TARGET_USES_FOD_ZPOS for FOD devices
Change-Id: Iaf830b7fe46ce42e413aeb9df3e85680735751e8
2021-12-01 13:02:03 +01:00
Demon000
d420784581 sm7250-common: fod: set nit value on sysfs notification
Change-Id: I78069d10677c6704b0bb080ecf76ecbbfd0b2212
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
ea2450e8c5 sm7250-common: fod: Kill touchfeature hooks
Change-Id: Ic935e9165a25f1cfd30002c3df893db1d73ef0d9
2021-12-01 13:02:03 +01:00
Vincent Vidal
423e16f202 sm7250-common: fod: Use FOD_PRESSED_LAYER_ZORDER instead of magic number
Change-Id: I62205bb29c610baaabd1647826f5285c4f639ae7
2021-12-01 13:02:03 +01:00
TheScarastic
29765ee81b sm7250-common: fod: Prepare for in kernel dim and hbm
Change-Id: Id92963ff70a379e02897596b6719a0f3dab37ab2
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
0af33e2d34 Revert "sm8250-common: sepolicy: Bring back displayfeature policies"
This reverts commit 2fd2065970.

Change-Id: If2117ae70378a4e3a4c9ace1cfbe1cf6f36f7ecd
2021-12-01 13:02:03 +01:00
TheScarastic
7eaae54a2b Revert "sm8250-common: Add FODService"
This reverts commit 06f816fd6b.

Change-Id: I75216f8439bdf2fa23b478889e6800014e08226a
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
3025a7063d Revert "sm8250-common: fod: Readd displayfeature hook"
This reverts commit 2a540b832e.

Change-Id: I24e9af15781093533767aa17abfdbb2752f3c160
2021-12-01 13:02:03 +01:00
xSylla
2daeb3ea42 sm7250-common: Update public libraries from monet V12.5.1.0.RJIMIXM
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
568d3785e7 sm7250-common: lights: Import changes from sm8150-common
Change-Id: Ie33f4a9eeecf4632b8eb941d96870db2ae4860ac
2021-12-01 13:02:03 +01:00
doc HD
9b1964a51e sm7250-common: sepolicy: Allow system server to read Fast Charging status
Change-Id: I379dd8f0f49b7f9eee06067bd41e773e8f5e933d
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
xSylla
9041b534f9 sm7250-common: Add back audio.feature props into vendor.prop 2021-12-01 13:02:03 +01:00
mikairyuu
dc8a8fbbbb sm7250-common: fod: Remove "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
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
257c3ebaf4 sm7250-common: Add a minimal framework compatibility matrix
* Made with https://gist.github.com/SebaUbuntu/ec053a00a9988eaea091fb1cc1f19324

Change-Id: I180d19e7939ee0c3e9f1aeb04a854f8aaf444235
2021-12-01 13:02:03 +01:00
Alexander Koskovich
0e69772f7b sm7250-common: Disable the usage of ConfigStore.
* As per commit 11a113a67e ("Add disable_configstore").

[SebaUbuntu] Remove manifest entry as well

Change-Id: I5482989a8a96227a3e2a5317eacf613c641bfa8e
2021-12-01 13:02:03 +01:00
Albert I
b457289c98 sm7250-common: Move Goodix fingerprint extension to FOD VINTF fragment
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I41f5b7a927f6fa41a40baf27b458a162ef81a231
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
00fc4934cf sm7250-common: Readd 32bit SCVE and VPP blobs
* Needed for some hardware accelerated codecs

Change-Id: Id0f9ec8541f24b3aad2f80a9bcb2c0d4e3343cf5
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
88b57a99f0 sm7250-common: libqti-perfd-client: Move to C
* Why bothering with C++ mangling when we can just build it as a standard C library?

Change-Id: I45ea977edf7ea7fab6fece76f3049654a8d24c5d
2021-12-01 13:02:03 +01:00
Chenyang Zhong
25e8b87a42 sm7250-common: libqti-perfd-client: return a dummy value
Return a positive integer for perf lock acquire and release so
that Goodix/FPC fingerprint sensor blobs will not complain.

Goodix:
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_acquire: Failed to acquire perf lock, err: 0
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_release: Perf lock release error 0

FPC:
E fpc_tac : fpc_perf_lock_acquire: Incorrect params, Failed to acquire perf lock, err
E fpc_tac : fpc_perf_lock_release: Perf lock release error 0

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: I861672e9a738c2204755d802670f4b28b662f286
2021-12-01 13:02:03 +01:00
Bruno Martins
53fe0183cd sm7250-common: libqti-perfd-client: Remove namespace declaration
It's pointless when using extern "C".

Change-Id: Ibdf9f06a70aa3a75687b33781c78cf2172bb334d
2021-12-01 13:02:03 +01:00
Lucchetto
ddf88c391f sm7250-common: Create dummy libqti-perfd-client
* proprietary perfd blobs can finally be nuked without breaking goodix
* we could even map the functions to use libperfmgr powerhints in the future

Change-Id: I124652f3041761966a3e3bd97c757fecc39cc5fb
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
96a5110ad5 sm7250-common: Stop building vendor.qti.hardware.perf lib
* We dropped QTI perf stack

Change-Id: Ie71344aa05888adb7ad76ad66693547fc50a0025
2021-12-01 13:02:03 +01:00
xSylla
16c47a1821 sm7250-common: Adapt powerhint for Xiaomi SM7250 2021-12-01 13:02:03 +01:00
KakatkarAkshay
70090e239a sm7250-common: Import powerhint.json from android-11.0.0_r32
Change-Id: I552870c130ceaac4d20322acf6d1da22ad5017ec
2021-12-01 13:02:03 +01:00
Bruno Martins
eb9b493f49 sm7250-common: Drop I/O prefetcher
This depends on the already removed QTI perf stack.

Change-Id: I06b9a57f868e77bbcbb77c3970aec723404689f4
2021-12-01 13:02:03 +01:00
Wei Wang
8654b374e5 sm7250-common: Remove QTI perfd
Bug: 69270928
Test: Build and boot device and test camera
Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
01ff578960 sm7250-common: Declare BOARD_VENDOR
* Needed for xiaomi-perfmgr power AIDL guards

Change-Id: Idbb48e0f9b01090a456ad5d3f2d51f4dfab55672
2021-12-01 13:02:03 +01:00
Bruno Martins
74161382a4 sm7250-common: Migrate to Xiaomi power AIDL HAL
Change-Id: I42170d51a517170b58d532addd9c38496e43457c
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
32753ad28c sm7250-common: Build custom lights AIDL
Change-Id: Id7d8c2c5c141dba8006eb6e800dcd8777e1441d6
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
44ef4a8cdd sm7250-common: Kill custom liblights
Change-Id: If4118d490de290780c9f3a46c65f178c6206fa88
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
b1b0b7af2b sm7250-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-12-01 13:02:03 +01:00
SebaUbuntu
5372c713af sm7250-common: lights: Rebrand for Xiaomi SM7250
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
7a4119089d sm7250-common: Pull in AOSP lights AIDL
* From ee34a8ce6e

Change-Id: Id83b242a850119c83f1b7b2d9b7a74928a7d5e67
2021-12-01 13:02:03 +01:00
Ramisky
8537acbf6c sm7250-common: Add offline charging LED indicator
* Write to node to turn on LED in offline charging mode

Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
Sebastiano Barezzi
d9255f9034 sm7250-common: Move excluded-input-devices.xml to vibrator folder
Change-Id: I6f384c556e124052b3695a87f225207dae7c8089
2021-12-01 13:02:03 +01:00
Sebaubuntu
831d645c5a sm7250-common: vibrator: Add aw8624_haptic to FF haptic devices check
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
Sebaubuntu
104f3d6f68 sm7250-common: vibrator: Rebrand to Xiaomi SM7250
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
Ramii Ahmed
0a32aa3c26 sm7250-common: Import QTI vibrator AIDL
Change-Id: I03254bee9089713ea29ab258cac152120272b2ea
2021-12-01 13:02:03 +01:00
Alexander Koskovich
761c97ed15 sm7250-common: Remove virtual framebuffer.
* It's largely for testing purposes and it consumes
   a large amount of memory. If your hardware doesn't
   have graphics then it can be useful, which isn't the
   case for shipped devices.

Change-Id: I2348718ad3afba846498572161fa7e83dd8b7ce9
Co-Authored-By: Sebastiano Barezzi <barezzisebastiano@gmail.com>
2021-12-01 13:02:03 +01:00
Ramii Ahmed
cb0635442e sm7250-common: remove stereo channel mask from voip rx
seem to cause audio distortion and echo with apps like telegram and it's clients

Change-Id: I3468972fd530f59f74126a13d1b2c8a48fdf8c88
2021-12-01 13:02:03 +01:00
Albert I
d9163ec85c sm7250-common: audio: Remove effects that won't load
E EffectsFactoryConfigLoader: Error querying effect 7d1580bd-297f-4683-9239-e475b6d1d69f on lib offload_bundle

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Idb472d70c26baacc90f493280c3c00f15ad6946c
2021-12-01 13:02:03 +01:00
xSylla
fabc0767fc sm7250-common: Update audio configs from monet V12.5.1.0.RJIMIXM 2021-12-01 13:02:03 +01:00
xSylla
8f78d7822d sm7250-common: Update media configs from monet V12.5.1.0.RJIMIXM
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00
xSylla
510f17aa71 sm7250-common: Update WiFi configs from monet V12.5.1.0.RJIMIXM
Signed-off-by: xSylla <syllamodder@gmail.com>
2021-12-01 13:02:03 +01:00