platform_hardware_interfaces/audio/aidl/common
Mikhail Naganov 4bf6899cc7 audio: Ensure proper priority and scheduler for service threads
Change audio worker threads priority to ..._URGENT_AUDIO to match
the coupled thread in the audio flinger.

Set SCHED_FIFO scheduler for FAST threads (also to match AF fast
mixer/capture threads). In order to enable that, grand SYS_NICE
capability to the HAL service process and provide "getTid"
function in the StreamWorker class. For testing, add a "FAST"
output to the "stub" module in the HAL configuration.

Bug: 286914845
Test: atest libaudioaidlcommon_test
Test: atest VtsHalAudioCoreTargetTest
Test: adb shell ps -A -T -o PID,TID,NI,PCY,PRI,RTPRIO,SCHED,CMD
      for the HAL service process during VTS test. For regular
      "reader"/"writer" threads should see 'NI 19, PRI 38',
      for FAST "writer" should see 'NI -19, PRI 43, RTPRIO 3, SCH 1'
Change-Id: Iab7e21ebc139ff11cf9b7f4a1645960db8dadd43
2023-08-07 18:15:19 -07:00
..
include audio: Ensure proper priority and scheduler for service threads 2023-08-07 18:15:19 -07:00
tests audio: Ensure proper priority and scheduler for service threads 2023-08-07 18:15:19 -07:00
Android.bp Add utils for checking range limits of effect config params 2023-03-28 20:28:04 +05:30
EffectRangeSpecific.cpp Add utils for checking range limits of effect config params 2023-03-28 20:28:04 +05:30
StreamWorker.cpp audio: Ensure proper priority and scheduler for service threads 2023-08-07 18:15:19 -07:00
TEST_MAPPING audio: Add StreamWorker to aidl/common 2022-08-26 02:41:58 +00:00