Commit graph

142 commits

Author SHA1 Message Date
Chenyang Zhong
77fa9fca99 sdm660-common: displayconfig: Add brightness ramp rate
Android 12 allows the brightness ramp rate to be changed separately
for fast/slow and increase/decrease in float. Once loaded,
DisplayDeviceConfig has higher priority than the integer config
values in frameworks. The format definition is in [1].

The value can be found in boot logs by grepping DisplayDeviceInfo.
On android 11, boot log reports the 19xxxxx value of the second
variant. On android 12, boot log reports the 46xxxxx value of the
first variant.

The xml file can be put in either product or vendor.

[1] frameworks/base/services/core/xsd/display-device-config/display-device-config.xsd

[clarencelol: Adjust accordingly based on brightness minimum and nits in overlay]
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:35 +01:00
clarencelol
0538dd9791 sdm660-common: Update media codecs
* Retune some fps values based on CAF
* Removed some unused decoder
* From LA.UM.8.2.r1-07400-sdm660.0
* Build some media extensions
* Added some media codecs from google

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
clarencelol
b380d6f268 sdm660-common: Cleanup
* clean some duplicates,deprecated and not uses anymore
* build vendor.qti.hardware.btconfigstore@1.0 from source

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-02-16 20:58:05 +01:00
Shalini Manjunatha
9392f28e5b sdm660-common: audio: New attribute in sound trigger xml to know support for second stage detection
-> Introducing new attribute to know if second stage detection
supported on given target
-> By default it is supported on all targets
-> Define only on those targets with value false where no support

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-02-16 20:58:05 +01:00
Dhananjay Kumar
299f9f9098 sdm660-common: audio: Remove surround recording support from audio policy config xml
Remove surround sound recording support from audio policy config xml
as its resulting in CTS failure due to mismatch in channel index support
for record usecase.

Change-Id: Idf50b3f2e71c4209720e79c0248ce74bc1a0edf2
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:34 +01:00
clarencelol
d397ab7a8b sdm660-common: configs: Update config.fs from LA.UM.9.2.1.r1-08700-sdm660.0
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Edwin Moquete
df54499694 sdm660-common: Update config.fs from LA.UM.9.2.1.r1-06300-sdm660.0
Signed-off-by: Anush02198 <Anush.4376@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Edwin Moquete
8071e94bcf sdm660-common: vibrator: Add excluded-input-devices.xml
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
shivatejapeddi
cf5fe98a53 sdm660-common: Copy Modified libprocessgroup configs to vendor
* Schedtune paths are depreceated from Android S and updated to utilclamp
as our kernel doesnt support utilclamp, these configs are modified to fix lags and stutters
since power hal and perf stack are still dependent on schedtune

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
pix106
6f56141b37 Revert "sdm660-common: Ship copy of API 28 cgroups/task_profiles.json in vendor"
This reverts commit 533bb382b291ce5e0f97283852a2b6e809332fc1.
2021-12-31 07:51:33 +01:00
Chenyang Zhong
d979f6a671 sdm660-common: Ship copy of API 28 cgroups/task_profiles.json in vendor
Google's prebuilt cgroups.json and task_profiles.json for products
launched with previous API levels only covers
ro.product.first_api_level >= 28. [1]

Xiaomi sdm660 devices were launched with Nougat/Nougat MR1/Oreo (API levels 24-26), so schedtune and
task groups are completely broken. Since the system also checks
/vendor/etc for vendor profiles, make a copy of cgroups_28.json
and task_profiles_28.json and ship them to /vendor/etc. Profiles
for previous API levels are all the same anyway.

Test: boot and check /dev/stune/

[1] system/core/libprocessgroup/profiles/

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: Jarl-Penguin <jarlpenguin@outlook.com>
Signed-off-by: SakilMondal <mondalsakil@gmail.com>
Change-Id: I8e54ae2d79034f54447616d79294573bf74ed6e1
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Eric Laurent
2a501289b6 sdm660-common: audio: add offload gapless support flag
Add flag AUDIO_OUTPUT_FLAG_GAPLESS_OFFLOAD to explicitely indicate support
for gapless transitions for offload output profiles in audio policy
configuration file.

Bug: 158191844
Test: atest AudioTrackOffloadTest
Change-Id: Iafee0cbc0a67fa12d2f0751b58ef7fa301ba45e4
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
llololo
64403ca404 sdm660-common: audio: Add new flag name to compress offload case
Add AUDIO_OUTPUT_FLAG_GAPLESS_OFFLOAD to compress offload case.

Bug: 188113788
Test: Play compress offload music and check app type from logcat
Change-Id: If31a50ffafb43cb350c84fcc60774af116f30ff8
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Mikhail Naganov
51f1cc24b2 sdm660-common: Switch audio HAL to V7
Updated audio policy manager configuration files to comply
with the changes in the XML schema.

Bug: 142480271
Test: atest VtsHalAudioV7_0TargetTest
Test: atest VtsHalAudioEffectV7_0TargetTest
[Ratoriku: Adapt to xiaomi sdm660]

Change-Id: I55d3728c809d27e58d5d496a1c7d637050dde53a
Signed-off-by: raiyanbinmohsin <raiyanbinmohsinshishir@gmail.com>
Signed-off-by: Martin Štrobl <recordyletsplays@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
orges
63db93d56b sdm660-common: Add display config file
* DisplayPowerController[0]: Screen brightness nits configuration is unavailable; falling back
 * DisplayDeviceConfig: requesting nits when no mapping exists.

Signed-off-by: orges <me@orgesified.ml>
Change-Id: I1716319bb17b9236d07d44a2a7fa3c7640c54ddf
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
clarencelol
ebd421dc9a sdm660-common: Aosp-ify bluetooth
* Nullified remaining QTI Bluetooth remnants
* Remove some props
* Using usb audio hal from source

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Akash
9a013e05df sdm660-common: prop: Fix mic issues on apps like Whatsapp
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:32:12 +01:00
Pavan Kumar M
7cb46e947b sdm660-common: configs: Remove com.qualcomm.qti.presenceappSub2 from whitelist
PresenceAppSub2 is no longer used, so remove it from whitelist

Change-Id: Ib865ae3d86a8f7018a5f8ff2aa78226f00f9640b
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
Michael Bestas
6dfe4bff76 sdm660-common: Enable HidDeviceService
* Turns out component-overrides doesn't handle the case where
  a feature is enabled in config.xml but disabled in overrides.
  Explicitly disabling HidDeviceService causes bluetooth to
  time out while turning on and stuck in a crash loop.

Change-Id: Idcb678d03c5dc872942fd0fda9aabcbb5f5c9a55
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
Marc Bourgoin
8d82dc6df0 sdm660-common: Drop QCOM WFD
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
Ayishwarya Narasimhan
8d115e0b2b
sdm660-common: config.fs: Add mapping for imsdaemon
Change-Id: I62629d99e0ace3e5cfa0bdef925e919ddd2ebe12
2021-06-07 09:21:11 +06:00
Edwin Moquete
40763b62dc
sdm660-common: Update thermal config & sensor names for 4.19 2021-06-07 09:21:10 +06:00
Sunil Ravi
a299229253
sdm660-common: wifi: Disable TDLS offchannel
- TDLS off-channel feature is needed only for certification.
- Disable the feature in production builds.

Test: Basic wifi sanity test.
Change-Id: I4bef76edb8663835953e45274805c5e15dfea808
2021-05-18 05:04:04 +06:00
OdSazib
53c3064ba1
sdm660-common: audio: Update audio configs and enable soundtrigger 2021-05-15 07:20:19 +06:00
OdSazib
a4f0adc11d
sdm660-common: Remove duplicate wowlan_triggers config 2021-05-15 06:03:01 +06:00
Jabiyeff
1607e1fe49
sdm660-common: Import AdaptLaunch and some other perf
* From LA.UM.8.6.2.r1-08600-89xx.0

Test: Better app launching time

Signed-off-by: Jabiyeff <cebiyevanar@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-04-18 21:59:36 +06:00
Adarsh-MR
04dd705288
sdm660-common: configs: wifi: Update hostapd configs path
* softap now expects hostapd configs in /data/vendor/wifi/hostapd
  during hotspot turn on, qsap_sdk copies these configs to
  /data/vendor/wifi/hostapd/

Change-Id: I632a29483cb7b2f5e8d768680afb911fa5f4f357
Signed-off-by: Adarsh-MR <adarshmr1998@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-04-10 14:29:00 +06:00
OdSazib
ef00e5f20b
sdm660-common: DeviceSettings: Import in-app Dirac
- Improve code with reference and split gain category

This reverts commits
- 471da74
- de7135d
- f6c011d

All credit goes to Stylog, this is just revert commits with few improvement

Co-authored-by: clarencelol <clarencekuiek@icloud.com>
2021-04-10 02:24:09 +06:00
OdSazib
c7d2cbca99
Revert "sdm660-common: import Hotword Enrollment blobs"
- Useless stuffs which don't work at all

This reverts commit f77adb24dd.
2021-04-03 18:22:51 +06:00
etahamad
f6c011d64d
sdm660-common: audio: Add standalone Dirac support 2021-04-02 01:16:05 +06:00
Alex Naidis
5d3d10b559
sdm660-common: wlan: Smarter decisions on whether to use a 2Ghz or 5Ghz AP.
- Implement a smarter system on whether to connect to the provided 2Ghz or 5Ghz network.

Change-Id: Idd41e3d9a5e2bde3ea9b4873dffc4274d1530324
2021-03-31 19:32:40 +06:00
Sultanxda
1de18d5fec
sm660-common: wlan: Relax WiFi re-association RSSI thresholds.
Change-Id: I72bc937d1b9863d61dc96d2ad2ee81f365a3c903
2021-03-31 19:32:40 +06:00
LuK1337
e063a9201c
sm660-common: wlan: Enable DFS channel scanning in P2P search.
- Fixes P2P when connected to 5GHz access point.

Change-Id: Ie94aa06e9b6be9345688a1e10caa9a62b180eb30
2021-03-31 19:32:40 +06:00
Akash
a8fc4e3fd4
sdm660-common: audio: Fix mic issues in apps like WhatsApp 2021-03-31 07:32:26 +06:00
Edwin Moquete
a86212ccb8
sdm660-common: Allow com.qualcomm.location to run in the background 2021-03-22 18:30:00 +06:00
Subhajeet Muhuri
276e5e9077
sdm660-common: Loosen up charging thermal throttling thresholds
Change-Id: I9edc3bda9b1892f77158d01e13d1fa114355088a
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
2021-03-17 12:23:04 +06:00
OdSazib
4580d94c55
sdm660-common: Roll back to wayne-thermal
* jasmine thermal leads to:
 - 50% reduction in Geekbench scores for multi-core
 - Problem with rapid charging for higher ambient temperature

These wayne-configs fix the above issues
2021-03-17 12:22:56 +06:00
Panchajanya1999
45193a430f
sdm660-common: wifi: Disable WLAN Firmware loggings
firmware loggings are not at all necessary for general development.

Change-Id: I111943a641670ea052f68148103e377771297d77
2021-03-17 01:28:56 +06:00
sbwml
2f202d0906
sdm660-common: component-override: Enable hfpclient support 2021-03-02 23:47:30 +06:00
Surabhi Vishnoi
e865b037e8
sdm660-common: Add wowlan_triggers to wpa_supplicant conf
Add 'wowlan_triggers=magic_pkt' to wpa_supplicant_overlay.conf. With
this, wpa_supplicant will tell the linux kernel that the wifi driver
is wowlan capable, and will wakeup the host when a magic packet is
received. Most importantly, the kernel will no longer disconnect wifi
connections before suspending wifi.

CRs-Fixed: 2615975
Change-Id: I3226943940046ad98e4ab410897d4fdcb457ee5a
2021-03-02 23:43:22 +06:00
Subhajeet Muhuri
9bcab6d776
sdm660-common: loosen up charging thermal throttling thresholds
* Taken from lavender

Change-Id: I9edc3bda9b1892f77158d01e13d1fa114355088a
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-02-19 17:17:09 +06:00
Subhajeet Muhuri
86fd0cbdb2
sdm660-common: Commonize thermal-engine-config from device (2/1) 2021-02-19 17:17:09 +06:00
Dyneteve
c0ae317e6f
sdm660-common: Add 2 instance support for record_24
Change-Id: I365ccae65cdf74aaa176b19de23ecd4400efa16e
2021-02-10 09:05:28 +06:00
Michael Lenskiy
00956a4e88
sdm660-common: audio: Add fast input profile for the record concurrency
If two recording apps both select the primary input with
fast flag, second app will fail to start because the hal
doesn't support two inputs with the same use case if input
can't be reused since of the limit of primary input's max
open count.

Add the dedicated profile for “low-latency-record” to make
the first input can be reused if possible.

CRs-Fixed: 2550228
Change-Id: I233bd3eaf614b195df0a41402747f496d3a56b44
2021-02-09 20:53:35 +06:00
Michael Lenskiy
673245c359
sdm660-common: audio:Add hotword input for hotword mic concurrency 2021-02-09 20:53:35 +06:00
Chenyang Zhong
f77adb24dd
sdm660-common: import Hotword Enrollment blobs
Co-authored-by: IMMANUEL44 <immanuelr44@gmail.com>
2021-02-09 20:53:35 +06:00
SakilMondal
e5222049af
sdm660-common: Drop non-functional soundtrigger
* Fixes google assistant voice match in android 11
2021-02-09 20:53:21 +06:00
OdSazib
a72ff0a685
sdm660-common: configs: Retune media_codecs_performance
* From from LA.UM.9.2.r1-02000-SDMxx0.0
2021-02-05 23:18:27 +06:00
Michael Bestas
c16a25e536
sdm660-common: Remove unused entries from config.fs
Change-Id: Id4bc301454f9ac675a296a1c74581211789711fc
2021-01-27 13:13:51 +06:00
OdSazib
18c3503642
sdm660-common: Move telephony and fm packages to /system_ext
Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
2021-01-22 07:24:22 +06:00