A2DP: Check AAC bitrate mode by its CodecSpecific1

Bug: 112325138
Test: manual
Change-Id: Ib00dd08df98f16a5d52df52d395bf1cb4aaf914c
This commit is contained in:
Cheney Ni
2020-01-10 02:32:54 +08:00
parent 510d7bf4e7
commit fe5e2dd8cd

View File

@@ -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;