summaryrefslogtreecommitdiff
path: root/core/java/android/bluetooth/BluetoothCodecConfig.java
diff options
context:
space:
mode:
authorCheney Ni <cheneyni@google.com>2020-01-10 02:32:54 +0800
committerCheney Ni <cheneyni@google.com>2020-01-14 11:10:16 +0800
commitfe5e2dd8cd2db9cc587eb7450ae02a9abe41716b (patch)
treec05f9d7aba07ac6308c20c476a65286d1531214e /core/java/android/bluetooth/BluetoothCodecConfig.java
parent510d7bf4e7c7aff07be49266aa92058014f27e89 (diff)
A2DP: Check AAC bitrate mode by its CodecSpecific1
Bug: 112325138 Test: manual Change-Id: Ib00dd08df98f16a5d52df52d395bf1cb4aaf914c
Diffstat (limited to 'core/java/android/bluetooth/BluetoothCodecConfig.java')
-rw-r--r--core/java/android/bluetooth/BluetoothCodecConfig.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/bluetooth/BluetoothCodecConfig.java b/core/java/android/bluetooth/BluetoothCodecConfig.java
index 08d0797997b5..33cb75ed0766 100644
--- a/core/java/android/bluetooth/BluetoothCodecConfig.java
+++ b/core/java/android/bluetooth/BluetoothCodecConfig.java
@@ -616,8 +616,9 @@ public final class BluetoothCodecConfig implements Parcelable {
if (other == null && mCodecType != other.mCodecType) {
return false;
}
- // Currently we only care about the LDAC Playback Quality at CodecSpecific1
+ // Currently we only care about the AAC VBR and LDAC Playback Quality at CodecSpecific1
switch (mCodecType) {
+ case SOURCE_CODEC_TYPE_AAC:
case SOURCE_CODEC_TYPE_LDAC:
if (mCodecSpecific1 != other.mCodecSpecific1) {
return false;