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

Skip to content
Commit 4f2aade2 authored by Satya Krishna Pindiproli's avatar Satya Krishna Pindiproli Committed by Gerrit - the friendly Code Review server
Browse files

hal: fix usecase selection in adev_open_output_stream

During an active multichannel WFD session, YouTube
streaming stutters and audio is not routed to headset
when it is plugged in at the source or to the speaker
when the session is paused at the sink.

Multichannel playback usecase gets selected for YouTube
streaming when it is started during a WFD session. When
a headset is plugged in or the session is paused from the sink,
as there are no default mixer controls for multi-channel-playback,
there is an error when they are set.

Fix the issue by not selecting multi-channel-playback usecase
if DIRECT_PCM flag is present when the output is opened. This
ensures that compress-offload-playback2 usecase gets selected
and as there are valid mixer controls for speaker and headset for
this usecase, audio routes to the appropriate device as expected
when there is a device switch.

CRs-Fixed: 961105
Change-Id: I0bb638a4ac3f219d0a161dbfccb3aa540910dfc2
parent e61f451b
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