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

Commit 67c42711 authored by Vidyakumar Athota's avatar Vidyakumar Athota
Browse files

hal: apply bt-sco-wb samplerate mixer

- BTSCO WB sample rate mixer control applied after AFE port opened.
  This results sample rate mismatch and voice call over BT SCO WB
  does not work
- Fix by apply the mixer control before AFE port opened

Change-Id: I7efa0db9a24d307780bde03032313ad1f454d6ac
parent af56045d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1312,6 +1312,11 @@ int platform_set_parameters(void *platform, struct str_parms *parms)
    if (ret >= 0) {
        str_parms_del(parms, AUDIO_PARAMETER_KEY_BTSCO);
        my_data->btsco_sample_rate = val;
        if (val == SAMPLE_RATE_16KHZ) {
            audio_route_apply_path(my_data->adev->audio_route,
                                   "bt-sco-wb-samplerate");
            audio_route_update_mixer(my_data->adev->audio_route);
        }
    }

    ret = str_parms_get_int(parms, AUDIO_PARAMETER_KEY_SLOWTALK, &val);