From dc669fe301a283f5816d2403e905a50945a397b5 Mon Sep 17 00:00:00 2001 From: Andy Hung Date: Thu, 1 Dec 2022 13:46:55 -0800 Subject: [PATCH] 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 --- rootdir/etc/init.qcom.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index dca6a33c..d51e2646 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -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