diff options
author | Manish Dewangan <manish@codeaurora.org> | 2017-08-19 16:54:06 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-08-20 21:05:13 -0700 |
commit | aa91dc149facde1d65739c56d52fda63c02d12d2 (patch) | |
tree | 9d90baca6da32961fa296acf987260a0f9c7f628 | |
parent | 953cc18d9ebd0c316be97612de4c2113f53f001c (diff) |
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 <manish@codeaurora.org>
-rw-r--r-- | sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c | 4 |
1 files changed, 0 insertions, 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; |