LeAudio: Make device inactive if Media is not available
When remote device makes MEDIA context unavailable, Bluetooth stack will not allow to create the Le Audio stream to the device. Since Audio Framework cannot yet choose audio device based on the context type, whenever Bluetooth detects that Audio Framework tries to open multiple times a stream which context is not allowed on the remote side, the LeAudio device will become inactive and stream will be redirected to another active audio device. When MEDIA context will become available again for this device, the LeAudio headset will be set as active device again. Note, that if while Media context is unavailable for Device A, and another LeAudio devive (Device B) will become active, the Device A will not becaume Active when Media context type will become available again. Note: Feature is available only when flag is set: $> adb shell setprop persist.device_config.aconfig_flags.bluetooth.com.\ android.bluetooth.flags.leaudio_enable_health_based_actions true Bug: 295546903 Test: atest LeAudioServiceTest Test: atest bluetooth_le_audio_client_test Tag; #feature Change-Id: Ida06877093c0aebadc169d20d287bce0e6b71061
Loading
Please register or sign in to comment