mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sm6150-common
synced 2026-01-27 12:07:36 +00:00
sm6150-common: rootdir: Optimize for Spatial Audio
Add CAP_SYS_NICE. Allow util_clamp_min for Spatializer Effect worker thread. Reduce glitches caused by core migration. Reduce power consumption as Spatializer Effect is DSP compute bound. This change only affects Spatial Audio Effect processing. Test: instrumented Test: adb shell 'uclampset -a -p $(pgrep -of android.hardware.audio.service)' Test: adb shell cat "/proc/$(adb shell pgrep -of android.hardware.audio.service)/status" Test: adb shell 'ps -Tl -p $(pgrep -of android.hardware.audio.service)' Bug: 181148259 Bug: 260918856 Bug: 261228892 Bug: 261686532 Bug: 262803152 Merged-In: I59ea99e8a1720f61954747f6c29e14cfea9a0f56 Change-Id: I59ea99e8a1720f61954747f6c29e14cfea9a0f56 Change-Id: I21697423e8c20b34040c5a6641126918b0d75bb5 Signed-off-by: therealmharc <therealmharc@gmail.com>
This commit is contained in:
@@ -292,7 +292,7 @@ service vendor.audio-hal /vendor/bin/hw/android.hardware.audio.service
|
|||||||
user audioserver
|
user audioserver
|
||||||
# media gid needed for /dev/fm (radio) and for /data/misc/media (tee)
|
# media gid needed for /dev/fm (radio) and for /data/misc/media (tee)
|
||||||
group audio camera drmrpc inet media mediadrm net_bt net_bt_admin net_bw_acct oem_2901 wakelock context_hub
|
group audio camera drmrpc inet media mediadrm net_bt net_bt_admin net_bw_acct oem_2901 wakelock context_hub
|
||||||
capabilities BLOCK_SUSPEND
|
capabilities BLOCK_SUSPEND SYS_NICE
|
||||||
# setting RLIMIT_RTPRIO allows binder RT priority inheritance
|
# setting RLIMIT_RTPRIO allows binder RT priority inheritance
|
||||||
rlimit rtprio 10 10
|
rlimit rtprio 10 10
|
||||||
ioprio rt 4
|
ioprio rt 4
|
||||||
|
|||||||
Reference in New Issue
Block a user