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:
Manisha Agarwal <maniagar@codeaurora.org>
Change-Id: I49ea4d01290b4a611df281681c0db9fe3f7957fc
Loading
Please register or sign in to comment