frameworks/av: Fix ANR during voice call recording when call ends
- While doing voice call recording, when the call ends ANR observed - When the call is disconnected, audio HAL receives -1 from driver and audio HAL propagates this error to AudioFlinger. But AudioFlinger is not sending error status to audio source to stop recording. Because of this audiorecord thread keeps on waiting for buffers which is resulting in ANR. - To avoid indefinite wait, a timeout of 1 sec is set for buffer in audioSource and after timeout, -ETIMEDOUT is returned to recorder thread. Change-Id: Ifffa1a33a796c83ac819681b2bf4158c8a16f6ce
Loading
Please register or sign in to comment