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

Commit 7cf0f012 authored by Vineeta Srivastava's avatar Vineeta Srivastava Committed by Android (Google) Code Review
Browse files

Merge "audio: Change to perform voice calibration before update audio route"

parents 2b7f8554 170731f2
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -1014,13 +1014,6 @@ static int select_devices(struct audio_device *adev,
        enable_snd_device(adev, in_snd_device, false);
    }

    audio_route_update_mixer(adev->audio_route);

    usecase->in_snd_device = in_snd_device;
    usecase->out_snd_device = out_snd_device;

    enable_audio_route(adev, usecase, true);

    if (usecase->type == VOICE_CALL && adev->csd_client) {
        if (adev->csd_enable_device == NULL) {
            ALOGE("%s: dlsym error for csd_client_enable_device",
@@ -1056,6 +1049,13 @@ static int select_devices(struct audio_device *adev,
        }
    }

    audio_route_update_mixer(adev->audio_route);

    usecase->in_snd_device = in_snd_device;
    usecase->out_snd_device = out_snd_device;

    enable_audio_route(adev, usecase, true);

    return status;
}