+16
−2
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
For playback usecases routing change, audio HAL disables sound device if existing sound device does not match derived sound device and enables the derived sound device. It does not check whether existing sound device is a combination multiple devices and if one of those devices matches with the derived sound device. With scenarios like ringtone over speaker-and-bt-a2dp followed by a2dp playback, we disable and re-enable bt-a2dp. This is unneeded if a2dp backend is already active. Handle such scenarios by disabling only devices that do not match the derived sound device. CRs-Fixed: 2319384 Change-Id: I171fbead85746a2a34632f7580f56ef40505665c