Skip to content
Snippets Groups Projects
Commit e91740a5 authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

Allow hal_audio to set scheduling policy for its threads

Audio HAL server needs to set SCHED_FIFO scheduling policy
for its threads that communicate with FastMixer threads of
AudioFlinger that use the same scheduler.

Bug: 30222631
Change-Id: I405a69d097a6bfed455e3483365b27c4004e1063
parent 5f25239c
No related branches found
No related tags found
No related merge requests found
hwbinder_use(hal_audio) hwbinder_use(hal_audio)
binder_use(hal_audio)
binder_call(hal_audio, audioserver) binder_call(hal_audio, audioserver)
binder_call(hal_audio, system_server)
allow hal_audio ion_device:chr_file r_file_perms; allow hal_audio ion_device:chr_file r_file_perms;
...@@ -15,6 +17,8 @@ r_dir_file(hal_audio, proc) ...@@ -15,6 +17,8 @@ r_dir_file(hal_audio, proc)
allow hal_audio audio_device:dir r_dir_perms; allow hal_audio audio_device:dir r_dir_perms;
allow hal_audio audio_device:chr_file rw_file_perms; allow hal_audio audio_device:chr_file rw_file_perms;
allow hal_audio scheduling_policy_service:service_manager find;
# Needed on some devices for playing audio on paired BT device, # Needed on some devices for playing audio on paired BT device,
# but seems appropriate for all devices. # but seems appropriate for all devices.
unix_socket_connect(hal_audio, bluetooth, bluetooth) unix_socket_connect(hal_audio, bluetooth, bluetooth)
......
...@@ -91,6 +91,7 @@ allow system_server { appdomain ephemeral_app }:process { sigkill signal }; ...@@ -91,6 +91,7 @@ allow system_server { appdomain ephemeral_app }:process { sigkill signal };
# Set scheduling info for apps. # Set scheduling info for apps.
allow system_server { appdomain ephemeral_app }:process { getsched setsched }; allow system_server { appdomain ephemeral_app }:process { getsched setsched };
allow system_server audioserver:process { getsched setsched }; allow system_server audioserver:process { getsched setsched };
allow system_server hal_audio:process { getsched setsched };
allow system_server cameraserver:process { getsched setsched }; allow system_server cameraserver:process { getsched setsched };
allow system_server mediaserver:process { getsched setsched }; allow system_server mediaserver:process { getsched setsched };
allow system_server bootanim:process { getsched setsched }; allow system_server bootanim:process { getsched setsched };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment