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

Commit fad84ac9 authored by Manish Dewangan's avatar Manish Dewangan Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: qdsp6v2: Do not reset backend pass-through mode



Backend pass-through mode is reset to LEGACY_PCM during routing close.
This results in opening of adm with non pass-through path type for
pass-through session if device switch is done during pass-through
session.
Fix this by avoid resetting Backend passthrough-mode.

Change-Id: Ia1ea10ce68ba04a72416827661b6fdc2abd48b3c
Signed-off-by: default avatarManish Dewangan <manish@codeaurora.org>
parent 7b110f3c
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -15659,10 +15659,6 @@ static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
	bedai->active = 0;
	bedai->sample_rate = 0;
	bedai->channel = 0;
	for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
		if (bedai->passthr_mode[i] != LISTEN)
			bedai->passthr_mode[i] = LEGACY_PCM;
	}
	mutex_unlock(&routing_lock);
	return 0;