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

Skip to content
Commit e4d123ad authored by Jaideep Sharma's avatar Jaideep Sharma Committed by Eric Laurent
Browse files

audiopolicy: Wrong device selection for music during concurrency.



Music playback is switching from proxy device to speaker when more than
one touch tone/notification streams are started after music and one of
the low latency streams is stopped.

Consider low latency streams playing on speaker and music playing
on WiFi display (proxy device).

When the first low latency output is stopped, getNewOutputDevices checks
for a product strategy from the list. STRATEGY_SONIFICATION comes prior to
STRATEGY_MEDIA in the list of product strategies. If an ALARM or
ENFORCED_AUDIBLE stream is supported by the product strategy, devices are
returned for STRATEGY_SONIFICATION without checking whether the stream is
associated to the output descriptor for which we are querying devices.

As a solution, we check if ALARM or ENFORCED_AUDIBLE streams are active
on the queried output descriptor and return devices accordingly.

Bug: 137907302
Test: manual audio smoke tests.

authored-by: default avatarManisha Agarwal <maniagar@codeaurora.org>
Change-Id: I49ea4d01290b4a611df281681c0db9fe3f7957fc
parent 89b5b85f
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