audio: Do not use StreamSwitcher for StreamPrimary
Since use of StreamSwitcher causes the worker thread to be changed during connected device change, its use for the primary HAL streams must be avoided. The reason is that switching of the FMQ reader thread accompanied with simultaneous writes from two writers: one on the framework side, another on the HAL side sending the "exit" command, violates threading assumptions of blocking FMQ and causes spurious races that eventually make FMQ non-functional. Bug: 300130515 Bug: 368723297 Bug: 369272078 Bug: 369289912 Bug: 369964381 Test: atest VtsHalAudioCoreTargetTest Change-Id: I14dc6fc08ae9e8aaaf3cd80e96b20dd1df54f633
Loading
Please register or sign in to comment