4bf6899cc7
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 |
||
---|---|---|
.. | ||
include | ||
tests | ||
Android.bp | ||
EffectRangeSpecific.cpp | ||
StreamWorker.cpp | ||
TEST_MAPPING |