From aa91dc149facde1d65739c56d52fda63c02d12d2 Mon Sep 17 00:00:00 2001 From: Manish Dewangan Date: Sat, 19 Aug 2017 16:54:06 +0530 Subject: 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: Manish Dewangan --- sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c b/sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c index 9e2e8b37ec10..7326e658c947 100644 --- a/sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c +++ b/sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c @@ -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; -- cgit v1.2.3