From 62f2cf5b45a69a6f81306c97faf69652e1c93f39 Mon Sep 17 00:00:00 2001 From: Patty Date: Fri, 7 Jan 2022 18:09:30 +0800 Subject: [PATCH] Correct the offload capability and update comment - Add some comments to describe the supported scenario - Correct the config from mono to stereo, when only one device is connected, mono only need one audio channel, for stereo case, support 2 audio channels. Tag: #feature Bug: 203535499 Bug: 150670922 Test: make build Change-Id: I6dacca8965f48ed58506b63f8d3939afb6f5b1b6 --- .../session/BluetoothAudioSupportedCodecsDB_2_2.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bluetooth/audio/utils/session/BluetoothAudioSupportedCodecsDB_2_2.cpp b/bluetooth/audio/utils/session/BluetoothAudioSupportedCodecsDB_2_2.cpp index 34cfd7efb7..84e0486f4c 100644 --- a/bluetooth/audio/utils/session/BluetoothAudioSupportedCodecsDB_2_2.cpp +++ b/bluetooth/audio/utils/session/BluetoothAudioSupportedCodecsDB_2_2.cpp @@ -73,9 +73,13 @@ static AudioLocation monoAudio = AudioLocation::UNKNOWN; // Stores the supported setting of audio location, connected device, and the // channel count for each device std::vector> - supportedDeviceSetting = {std::make_tuple(stereoAudio, 2, 1), - std::make_tuple(monoAudio, 1, 2), - std::make_tuple(monoAudio, 1, 1)}; + supportedDeviceSetting = { + // Stereo, two connected device, one for L one for R + std::make_tuple(stereoAudio, 2, 1), + // Stereo, one connected device for both L and R + std::make_tuple(stereoAudio, 1, 2), + // Mono + std::make_tuple(monoAudio, 1, 1)}; bool IsOffloadLeAudioConfigurationValid( const ::android::hardware::bluetooth::audio::V2_1::SessionType&