sdm660-common: rootdir: Optimize for Spatial Audio

Add CAP_SYS_NICE.
Allow util_clamp_min for Spatializer Effect worker thread. - done in hardware/interface/audio
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
Change-Id: I59ea99e8a1720f61954747f6c29e14cfea9a0f56
Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
Andy Hung 2022-12-01 13:46:55 -08:00 committed by pix106
parent 0bcf3c794d
commit dc669fe301

View file

@ -767,7 +767,7 @@ service vendor.audio-hal /vendor/bin/hw/android.hardware.audio.service
user audioserver
# 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
capabilities BLOCK_SUSPEND
capabilities BLOCK_SUSPEND SYS_NICE
ioprio rt 4
task_profiles ProcessCapacityHigh HighPerformance
socket audio_hw_socket seqpacket 0666 system system