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

Commit 25780e48 authored by Preetam Singh Ranawat's avatar Preetam Singh Ranawat
Browse files

hal : Fix voice call tx mute issue on BT

 -voice call tx mute is observed in stress test as decoder config
  is not reset and leading to mute in tx.
 -this can happen in two scenarios:
  a. LDAC ABR + Audio Server restart + voice call over BT
  b. voice call with SWB speech codec and 2nd call with NB/WB codec.

 -always reset decoder config on a2dp suspend without checking
  for ABR use case.

Change-Id: I72be864f05cab6650a09190939d068e919a10a36
parent 29deabae
Loading
Loading
Loading
Loading

hal/audio_extn/a2dp.c

100755 → 100644
+11 −13
Original line number Diff line number Diff line
@@ -2604,7 +2604,6 @@ static int reset_a2dp_source_dec_config_params()
    struct abr_dec_cfg_t dummy_reset_cfg;
    int ret = 0;

    if (a2dp.abr_config.is_abr_enabled) {
    ctl_dec_data = mixer_get_ctl_by_name(a2dp.adev->mixer, MIXER_SOURCE_DEC_CONFIG_BLOCK);
    if (!ctl_dec_data) {
        ALOGE("%s: ERROR A2DP decoder config mixer control not identifed", __func__);
@@ -2617,7 +2616,6 @@ static int reset_a2dp_source_dec_config_params()
        ALOGE("%s: Failed to set dummy decoder config", __func__);
        return ret;
    }
    }

    return ret;
}