diff options
author | Patty <plhuang@google.com> | 2022-02-10 10:07:17 +0800 |
---|---|---|
committer | Patty <plhuang@google.com> | 2022-02-10 10:07:17 +0800 |
commit | 03cbe7182dd677219014733a086d9a0b8f99be7c (patch) | |
tree | 5f174bab2fc4c69b85ae12c1ed29a6c48002600a /bluetooth/audio/utils/aidl_session | |
parent | 630637627f1d41acc6e96c9de6506a8dd12c2ecb (diff) |
Correct the offload capability and update comment(AIDL)
- 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: Id3ea1e96a6b4fd7a209a015fb5c475465e300cdb
Diffstat (limited to 'bluetooth/audio/utils/aidl_session')
-rw-r--r-- | bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp b/bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp index 516ebe8d7a..b857fb8cf5 100644 --- a/bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp +++ b/bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp @@ -132,9 +132,13 @@ static AudioLocation monoAudio = AudioLocation::UNKNOWN; // Stores the supported setting of audio location, connected device, and the // channel count for each device std::vector<std::tuple<AudioLocation, uint8_t, uint8_t>> - 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)}; template <class T> bool BluetoothAudioCodecs::ContainedInVector( |