audio: applyStreamVolumes when return by unsupported device
If the A2DP device does not support voip rx output, and clearDevicesRoleForStrategy is earlier than stopoutput stream 0, voip rx output stream 0 will be muted because clearDevicesRoleForStrategy->checkForDeviceAndOutputChanges->checkOutputForAllStrategies->checkOutputForAttributes->setStrategyMute uses newDevices.types(), and AudioOutputDescriptor::setVolume will detect whether the device (A2DP) is supported.
In addition, in setOutputDevices, unsupported device is returned and setting the same device will not trigger volume operations.
Bug: 401614536
Test: Connect a Bluetooth headset to make VOIP calls.
Flag: EXEMPT bug fix
Change-Id: I51abe7620dcd11b68d621cac1a8d019b100491c9
Signed-off-by:
chenxin20 <chenxin20@xiaomi.com>
Loading
Please register or sign in to comment