From 652f4b389f9e496466f3d36c4a7d71f6c84c0d06 Mon Sep 17 00:00:00 2001 From: Ben Romberger Date: Thu, 27 Apr 2017 13:15:23 -0700 Subject: [PATCH] ASoC: msm: qdsp6v2: Clear pass-through mode on routing close On close of the routing driver clear the pass-through mode flag of the backend dai. Change-Id: Ie09d687bf418d77e8442da6da7ced3cc3788a5da Signed-off-by: Ben Romberger --- sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c b/sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c index f461f360d88d..79c099732ba2 100644 --- a/sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c +++ b/sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c @@ -14116,6 +14116,7 @@ static int msm_pcm_routing_close(struct snd_pcm_substream *substream) bedai->active = 0; bedai->sample_rate = 0; bedai->channel = 0; + bedai->passthr_mode = LEGACY_PCM; mutex_unlock(&routing_lock); return 0;