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

Skip to content
Commit e63b6fec authored by Zhou Song's avatar Zhou Song
Browse files

hal: check a2dp audio device to mute stream when suspended

When a2dp is suspended and stream is going to be resumed,
in this case, snd device may not be a2dp, so mute is bypassed
and switching to speaker can lead audio leaking to speaker.
Also, for concurrent output streams, if one of them is
switched to speaker, when checking the next one, need
to check the audio device to confirm if it's a2dp or not,
otherwise the next one to be checked will not perform device
switch.

Change-Id: Ic45a395897c3d717f301aa64eb24d4668d452934
parent 8e938cfb
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