AudioDeviceBroker: Extend createBtDeviceInfo with LE_AUDIO_BROADCAST

Bug: 150670922
Tag: #feature
Sponsor: jpawlowski@
Test: build

Change-Id: I389ce1fb8f6a763e991a00f3bebfac0648086722
This commit is contained in:
Grzegorz Kołodziejczyk
2021-12-16 14:40:11 +00:00
committed by Łukasz Rymanowski
parent eca6ae398d
commit 59afd5ccf7

View File

@@ -656,6 +656,9 @@ import java.util.concurrent.atomic.AtomicBoolean;
audioDevice = AudioSystem.DEVICE_IN_BLE_HEADSET;
}
break;
case BluetoothProfile.LE_AUDIO_BROADCAST:
audioDevice = AudioSystem.DEVICE_OUT_BLE_BROADCAST;
break;
default: throw new IllegalArgumentException("Invalid profile " + d.mInfo.getProfile());
}
return new BtDeviceInfo(d, device, state, audioDevice, codec);