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

Commit 72d8d14f 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

Change-Id: I46796070c29b454f35c9e24b8a5cc76b57d70eee
parents 183764d6 956f914b
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);