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

Commit 4a1fad64 authored by kunleiz's avatar kunleiz
Browse files

hal: reset backend config when close a2dp

Reset backend config when close a2dp to avoid
wrong sample rate is set to BT_SCO during call.

CRs-Fixed: 2187253
Change-Id: I1866b8637326d2daa2638e20c92b464fd385613d
parent 939c563a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1325,8 +1325,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");
             reset_a2dp_enc_config_params();
             close_a2dp_output();
             reset_a2dp_enc_config_params();
             a2dp_reset_backend_cfg();
         }
         goto param_handled;
     }