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

Commit 5083e583 authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioService: remove SA state sync between BT profiles

Remove the synchronization of Spatial Audio Settings (SA enabled,
head tracking available/enabled) between Bluetooth A2DP and LE profiles
for the same headset. It is not helpful for the user,
does not match the BT headset market realility and was implemented with bugs.

Bug: 365014132
Flag: EXEMPT bug fix
Test: repro steps in bug with dual mode Bluetooth headset
Change-Id: I6b013f73c4f18f7bb000203d1561306226c88cea
parent aad11054
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -385,11 +385,6 @@ public class AudioDeviceInventory {
                    || !updatedDevice.getDeviceAddress().equals(ads.getDeviceAddress())) {
                continue;
            }
            if (mDeviceBroker.isSADevice(updatedDevice) == mDeviceBroker.isSADevice(ads)) {
                ads.setHasHeadTracker(updatedDevice.hasHeadTracker());
                ads.setHeadTrackerEnabled(updatedDevice.isHeadTrackerEnabled());
                ads.setSAEnabled(updatedDevice.isSAEnabled());
            }
            ads.setAudioDeviceCategory(updatedDevice.getAudioDeviceCategory());

            mDeviceBroker.postUpdatedAdiDeviceState(ads, false /*initSA*/);
+0 −3
Original line number Diff line number Diff line
@@ -10040,9 +10040,6 @@ public class AudioService extends IAudioService.Stub
                case MSG_INIT_SPATIALIZER:
                    onInitSpatializer();
                    // the device inventory can only be synchronized after the
                    // spatializer has been initialized
                    mDeviceBroker.postSynchronizeAdiDevicesInInventory(null);
                    mAudioEventWakeLock.release();
                    break;