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
This commit is contained in:
parent
fac52b4226
commit
eedaefc0f2
1 changed files with 1 additions and 1 deletions
|
@ -871,7 +871,7 @@ service vendor.audio-hal-2-0 /vendor/bin/hw/android.hardware.audio@2.0-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
|
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
|
ioprio rt 4
|
||||||
writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks
|
writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks
|
||||||
# audioflinger restarts itself when it loses connection with the hal
|
# audioflinger restarts itself when it loses connection with the hal
|
||||||
|
|
Loading…
Reference in a new issue