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

Commit 02a0b7f4 authored by Manisha Agarwal's avatar Manisha Agarwal
Browse files

hal: Set correct mono mode for TWS+

Mono mode is reset during encoder configuration and wrong payload
value passes to ADSP.

After encoder configuration set tws mono mode value as sent by A2DP
during playback start.

CRs-Fixed: 2386942
Change-Id: I40f49addfa0f9dfceae9af2546512d0cca02fb99
parent a5ec6113
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1623,7 +1623,6 @@ static int update_aptx_dsp_config_v2(struct aptx_enc_cfg_t *aptx_dsp_cfg,
            else {
               a2dp.is_tws_mono_mode_on = true;
               ALOGD("Update tws for mono_mode_on: %d",a2dp.is_tws_mono_mode_on);
               audio_a2dp_update_tws_channel_mode();
            }
            break;
    }
@@ -2213,6 +2212,7 @@ int a2dp_start_playback()
    if (a2dp.a2dp_source_started) {
        a2dp.a2dp_source_total_active_session_requests++;
        a2dp_check_and_set_scrambler();
        audio_a2dp_update_tws_channel_mode();
        a2dp_set_backend_cfg(SOURCE);
        if (a2dp.abr_config.is_abr_enabled)
            start_abr();