From eedaefc0f2679daf95b7df1ade07a4da45799fbe Mon Sep 17 00:00:00 2001 From: Sidipotu Ashok Date: Mon, 3 Dec 2018 14:49:38 +0530 Subject: [PATCH] init: Define SYS_NICE caps for android.hardware.audio@2.0-service. - Grant SYS_NICE capabilities to audio HAL processes as sound trigger HAL threads need to run at real time priority as well as use the CPU affinity, for far field voice. CRs-Fixed: 2359951 Change-Id: Ie0da744978609c750e92aec2c6001ace1868ad31 --- 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 bb5db758..0a9abffe 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -871,7 +871,7 @@ service vendor.audio-hal-2-0 /vendor/bin/hw/android.hardware.audio@2.0-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 writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks # audioflinger restarts itself when it loses connection with the hal