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

Skip to content
Commit 28abfc17 authored by Aniket Kumar Lata's avatar Aniket Kumar Lata Committed by Gerrit - the friendly Code Review server
Browse files

hal: standby offload stream on receiving cmd error

OffloadThread invalidates tracks when it receives error notification
from async callback thread which will close current output and
reopen a new one.

If there are concurrent usecases active on the same device when the
error occurs it is possible some state maintained in the HAL won't
get reset(e.g previous sound device won't get disabled and reenabled)

Fix this by putting stream on standby and in effect disabling devices
as soon as cmd error is received instead of waiting for closeOutput
from AudioTrack to standby the stream.

CRs-Fixed: 2131661
Change-Id: I7f9d59a0a4f70f048b06553252da3ba15d7e9d79
parent 34cadac4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment