Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c504b70c authored by Shashi Kumar's avatar Shashi Kumar Committed by Steve Kondik
Browse files

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
parent c886e502
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment