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

Commit 956f914b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Correctly initialize A2DP Sink codecs if A2DP Source HW offload is enabled"

parents 92e5bd28 c197ac26
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);