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

Commit 12906812 authored by Aniket Kumar Lata's avatar Aniket Kumar Lata Committed by android-build-merger
Browse files

Merge "hal: Reset slimbus backend config on A2DP disconnect" into pi-dev

am: 75da01e5

Change-Id: I753eca96e32babf815378e7da46d06f4dfb9142a
parents 39d48df7 75da01e5
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -748,8 +748,6 @@ static int close_a2dp_output()
        if (a2dp.audio_stream_close() == false)
            ALOGE("%s: failed close A2DP control path from Bluetooth IPC library", __func__);
    }
    if (a2dp.abr_config.is_abr_enabled && a2dp.abr_config.abr_started)
        stop_abr();
    a2dp_common_init();
    a2dp.enc_sampling_rate = 0;
    a2dp.enc_channels = 0;
@@ -1559,8 +1557,7 @@ int audio_extn_a2dp_set_parameters(struct str_parms *parms, bool *reconfig)
         val = atoi(value);
         if (audio_is_a2dp_out_device(val)) {
             ALOGV("%s: Received device disconnect request", __func__);
             reset_a2dp_enc_config_params();
             reset_a2dp_dec_config_params();
             reset_a2dp_config();
             close_a2dp_output();
         }
         goto param_handled;