diff options
| author | Cheney Ni <cheneyni@google.com> | 2020-01-10 02:32:54 +0800 |
|---|---|---|
| committer | Cheney Ni <cheneyni@google.com> | 2020-01-14 11:10:16 +0800 |
| commit | fe5e2dd8cd2db9cc587eb7450ae02a9abe41716b (patch) | |
| tree | c05f9d7aba07ac6308c20c476a65286d1531214e /core/java | |
| parent | 510d7bf4e7c7aff07be49266aa92058014f27e89 (diff) | |
A2DP: Check AAC bitrate mode by its CodecSpecific1
Bug: 112325138
Test: manual
Change-Id: Ib00dd08df98f16a5d52df52d395bf1cb4aaf914c
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/bluetooth/BluetoothCodecConfig.java | 3 |
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; |
