Stop PCM streams before attempting to close them
In order to break out from a data wait loop in the driver the stream state must be changed from "running". This is achieved by calling `pcm_stop` from the stream thread. Added a dedicated "I/O" thread to 'StreamAlsa' to be able to call `pcm_stop` while an I/O operation is running. The "I/O" thread is connected to the worker thread by means of a 'MonoPipe'. Bug: 364960013 Test: atest CtsMediaAudioTestCases Test: atest VtsHalAudioCoreTargetTest Change-Id: Ibb020d25f42df54baf46a37b50577cce294dc053
Loading
Please register or sign in to comment