273 Commits

Author SHA1 Message Date
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
Sebastiano Barezzi
2e09c7a281
sm6250-common: audio: Remove misoundfx
Change-Id: I0a93dbfced55d851d3a7e5b57c1ff9a251777094
2021-09-09 18:46:15 +02:00
Akash
218c05d2c0
sm6250-common: audio: Fix mic issues in apps like WhatsApp
* Also clean up FM Tuner from original commit as it breaks wired headphones

Change-Id: I311b484e07e41bf69ab43b78e4a9abe883730435
2021-09-09 18:46:15 +02:00
justinweng
98bc6d7dd7
sm6250-common: audio: Sync audio feature from coral
1. enforce 48KHz sampling rate at COPP for audio recording.
2. resize offload buffer to reduce power consumption.
3. enforce 24 bit width for offload playback and apply app_type 69940

Bug: 147027029
Test: build passed

Change-Id: Ie692746f4588b5706cbab7eddf5b6b7b8766a181
Signed-off-by: justinweng <justinweng@google.com>
2021-09-09 18:46:15 +02:00
Jasmine Cha
21171a2f2d
sm6250-common: audio: Add hotword input for hotword mic concurrency
Bug: 126595113
Bug: 129733664
Bug: 133123985
Bug: 130316160

Test:
 (ST: sound trigger, VO: VoIP, PH: phone call,
  NR: media recording, PL: playback music)
 ST->VO (MO/MT),  ST->PH (MO/MT)
 ST->NR->PH (MO/MT), ST->NR->VO (MO/MT)
 ST->PL->PH (MO/MT), ST->PL->VO (MO/MT)
 ST->NR->PL->PH (MO/MT),  ST->NR->PL->VO (MO/MT)

Change-Id: I11513994c7a34364de38e00fc8ff999efe3dbb6c
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2021-09-09 18:46:14 +02:00
Weiyin Jiang
32a9e4666b
sm6250-common: audio: Add compress recording configurations
Add compress recording configurations

CRs-Fixed: 2764160
Change-Id: I8e8b1f89d7f28d997342c5946d0a35111e941ec1
2021-09-09 18:46:14 +02:00
Jasmine Cha
53b4166dd7
sm6250-common: audio: Correct routing order for voip output
Routing primary output before voip_rx output will cause unexpected
RX/TX path suddenly and unmuted voice stream during when system
plays touch sound and switches path between handset and handsfree.

Bug: 152292858
Test: manual test in VoIP
Test: Regression test for VoIP(b/153276370) - pass

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ia60802ec887f0dfeaa0f93d151ba2f2c50e0d41d
2021-09-09 18:46:14 +02:00
justinweng
ecc89ae0ad
sm6250-common: audio: Offload 24 bits playback supports mp3/aac format
compress_offload_24 supports mp3/aac format

Bug: 132425237
Test: mp3 playback

Change-Id: I5742db45908f9d600cab0fef62badf447fc5c585
Signed-off-by: justinweng <justinweng@google.com>
2021-09-09 18:46:14 +02:00
justinweng
2c4a51ef79
sm6250-common: audio: Update audio_io_policy for VoIP
Add VoIP Tx app type config for pcm and low-latency captures.

Bug: 133297310
Test: make a voip call

Change-Id: I5dd67167b7568fd08a7ae979b50417f2627dc7d9
Signed-off-by: justinweng <justinweng@google.com>
2021-09-09 18:46:13 +02:00
LuK1337
ca7fafff4c
sm6250-common: audio: Don't advertise vorbis offloading support
* Doesn't work at all.

Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
2021-09-09 18:46:13 +02:00
Jyotiraditya Panda
e74d103786
sm6250-common: audio: Adjust volume curves
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
Change-Id: I9612cc657df01b62f49fc0d29758a288e72b05a8
2021-09-09 18:46:13 +02:00
Jyotiraditya Panda
838ee943b3
sm6250-common: Import cleaned-up stock audio configs changes
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: I9946e215c4aba9e090c013b75e0a33af39423edc
2021-09-09 18:46:13 +02:00
Jyotiraditya Panda
1e92dc621b
sm6250-common: Import audio configs from LA.UM.9.1.r1-09600-SMxxx0.0
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
Change-Id: Icf78da31480320a6a101d44d841ca128c0aa1a47
2021-09-09 18:46:12 +02:00
Bruno Martins
3f85485d2d
sm6250-common: Build opensource soundtrigger HAL
Change-Id: I956d53a67841a9e1e296de6b73f08ef2efac7470
2021-09-09 18:46:12 +02:00
Sebastiano Barezzi
7723d44913
sm6250-common: Build audio stack
Change-Id: Id1e28604c0c83093e309656a2059c517084984f5
2021-09-09 18:46:12 +02:00
Bruno Martins
351b5c52aa
sm6250-common: Define Soong namespace
Change-Id: Ibea0e8fe5dbc26d8953a9735f0b38cf087805b76
2021-09-09 18:46:11 +02:00
Rick Yiu
b0f0c415a1
sm6250-common: rootdir: Apply runtime blkio settings
Bug: 126796415
Test: settings are as expected
Change-Id: I5d90c0baad52cd027d948701c4962226b9b619a5
2021-09-09 18:46:11 +02:00
Kyle Lin
743e44b443
sm6250-common: rootdir: Fine tune the read_ahead size
sync ag/6911752,ag/9342439
fine tune the read_ahead size for boot time

Bug: 137150088
Bug: 139640385
Bug: 143448664

Test: boot to home and boot time measurement
Change-Id: If7929c51222e325a019532ce0d16045a52778165
Signed-off-by: Kyle Lin <kylelin@google.com>
Signed-off-by: Ocean Chen <oceanchen@google.com>
2021-09-09 18:46:11 +02:00
Wei Wang
d35ff1caca
sm6250-common: rootdir: Boot time tuning
RD1A.200703.001
dmesg_action_sys.boot_completed_first_timestamp_avg : 14745.3
With CL
dmesg_action_sys.boot_completed_first_timestamp_avg : 13993.7

Bug: 143857500
Bug: 161478668
Test: build and boottime test
Tested-by: Lisa Liu <liulisa@google.com>
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Ib8f31d39501b4747f0c268d2dd87e814bcc7843b
2021-09-09 18:46:11 +02:00
Kyle Lin
1d7a13366a
sm6250-common: rootdir: Setup runtime cpusets
Because the arch is similiar with SDM670, we aling the setting with
bonito.

Bug: 142552311
Test: build , munaual check the settings
Change-Id: Ie4d4cd252cbe5cdaf733a8db09117808eb0ec27c
2021-09-09 18:46:10 +02:00
Jaegeuk Kim
117ae7fbf6
sm6250-common: Get back to default from long-standing VM tweaks
This patch removed the old writeout policy tune which was never touched since
2009. In the meantime, most of Android devices are equipped with over 4GB DRAM
and very fast flash storages like UFS, which becomes more like desktop or
servers in 2009. So, it'd be worth to go back to use the default kernel configs.

Bug: 136483670
Bug: 137190999
Bug: 152936751
Test: check value output
Change-Id: I1ebbf9f1f27a921103db51e96a50aadd6ec0dde8
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: Martin Liu <liumartin@google.com>
2021-09-09 18:46:10 +02:00
Brock5555
2abc0a364d
sm6250-common: rootdir: Enable qcrild & data services on boot
Fixes lag on getting network service after boot.

Change-Id: I0f7cd9df2a103070b3569a610cc391c54f6e3048
2021-09-09 18:46:10 +02:00
Volodymyr Zhdanov
de4430798e
sm6250-common: rootdir: Override hwcomposer service
* CAF ¯\_(ツ)_/¯
* See https://source.codeaurora.org/quic/la/platform/hardware/interfaces/commit/?id=73a427f95e231a46c2274d51abfec21bd2d316f1

Change-Id: Iae755d16e5d5f70d372112bcbbac8e71d8df1124
2021-09-09 18:46:10 +02:00
Volodymyr Zhdanov
b6f59d3316
sm6250-common: rootdir: Don't enable a2dp offload from rootdir
* this breaks a2dp toggle

Change-Id: I20335149e99a48c7ff8219f94d7a6280e49d7f58
2021-09-09 18:46:09 +02:00
Volodymyr Zhdanov
836bc2c0a3
sm6250-common: rootdir: Remove service for unused wigignpt
Change-Id: I08c9e6e30aee9b606982e10b0a78515475cd3597
2021-09-09 18:46:09 +02:00