Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe5e2dd8 authored by Cheney Ni's avatar Cheney Ni
Browse files

A2DP: Check AAC bitrate mode by its CodecSpecific1

Bug: 112325138
Test: manual
Change-Id: Ib00dd08df98f16a5d52df52d395bf1cb4aaf914c
parent 510d7bf4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;