summaryrefslogtreecommitdiff
path: root/bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2022-08-10 02:10:27 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-08-10 02:10:27 +0000
commitf3663bf92585d80edd910491e336f5c4518b15a8 (patch)
tree83750f6bbee4d81e1566249db392e7e9ffad7f9d /bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp
parentc9d82cd7968e5522f1d80c57b3ad6b02d257de09 (diff)
parent039e85a385270d57fbdb85c189a445ac84f40713 (diff)
Merge "le_audio_offload: Support two sources for conversational" into tm-qpr-dev
Diffstat (limited to 'bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp')
-rw-r--r--bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp b/bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp
index d5e85b8e93..036d6cd60e 100644
--- a/bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp
+++ b/bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp
@@ -491,11 +491,18 @@ BluetoothAudioCodecs::GetLeAudioOffloadCodecCapabilities(
.broadcastCapability = kInvalidBroadcastCapability});
// Adds the capability for the case that encode and decode exist at the
- // same time
+ // same time(force one active device for decode)
kDefaultOffloadLeAudioCapabilities.push_back(
{.unicastEncodeCapability = lc3Capability,
.unicastDecodeCapability = lc3MonoDecodeCapability,
.broadcastCapability = kInvalidBroadcastCapability});
+
+ // Adds the capability for the case that encode and decode exist at the
+ // same time
+ kDefaultOffloadLeAudioCapabilities.push_back(
+ {.unicastEncodeCapability = lc3Capability,
+ .unicastDecodeCapability = lc3Capability,
+ .broadcastCapability = kInvalidBroadcastCapability});
}
}
}