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

Commit 356df1fe authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: Update BT sample rate for BT input device"

parents f2651901 3c9fb7fa
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -300,10 +300,12 @@ int enable_snd_device(struct audio_device *adev,
     * control in use-case does not work because rate update takes place after
     * AFE port open due to the limitation of mixer control order execution.
     */
    if (snd_device == SND_DEVICE_OUT_BT_SCO) {
    if ((snd_device == SND_DEVICE_OUT_BT_SCO) ||
        (snd_device == SND_DEVICE_IN_BT_SCO_MIC)) {
        audio_route_apply_path(adev->audio_route, BT_SCO_SAMPLE_RATE);
        audio_route_update_mixer(adev->audio_route);
    } else if (snd_device == SND_DEVICE_OUT_BT_SCO_WB) {
    } else if ((snd_device == SND_DEVICE_OUT_BT_SCO_WB) ||
               (snd_device == SND_DEVICE_IN_BT_SCO_MIC_WB)) {
        audio_route_apply_path(adev->audio_route, BT_SCO_WB_SAMPLE_RATE);
        audio_route_update_mixer(adev->audio_route);
    }