+49
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
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