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

Commit 4828f4ca authored by Samyak Jain's avatar Samyak Jain
Browse files

a2dp: Reset decoder during device disconnect

During disconnection of LDAC ABR device, decoder config
is not getting reset.

is_abr_enabled is set to false in close_a2dp_output before
decoder is reset.

First reset decoder and then call close_a2dp_output.

Change-Id: If852dde4ae03e3db3b8f6bbd39ce5009cf9eda44
parent 2cddc0e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1864,9 +1864,9 @@ void audio_extn_a2dp_set_parameters(struct str_parms *parms)
         val = atoi(value);
         if (audio_is_a2dp_out_device(val)) {
             ALOGV("Received device dis- connect request");
             close_a2dp_output();
             reset_a2dp_enc_config_params();
             reset_a2dp_dec_config_params();
             close_a2dp_output();
             a2dp_reset_backend_cfg();
         }
         goto param_handled;