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

Commit c5e412ac authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by android-build-merger
Browse files

Merge "Correctly initialize A2DP Sink codecs if A2DP Source HW offload is enabled" am: 956f914b

am: 72d8d14f

Change-Id: I156a200e5d40f2bf046076fb2b7c53fd5315d45d
parents 2ec71db4 72d8d14f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -596,8 +596,10 @@ bool A2dpCodecs::init() {
    }

    // In offload mode, disable the codecs based on the property
    if (a2dp_offload_status && (offload_codec_support[i] != true))
    if ((codec_index < BTAV_A2DP_CODEC_INDEX_SOURCE_MAX) &&
        a2dp_offload_status && (offload_codec_support[i] != true)) {
      codec_priority = BTAV_A2DP_CODEC_PRIORITY_DISABLED;
    }

    A2dpCodecConfig* codec_config =
        A2dpCodecConfig::createCodec(codec_index, codec_priority);