From 9e949d228f101118550895a92eefcefd60f96281 Mon Sep 17 00:00:00 2001 From: Manoj Kumar N D Date: Mon, 14 Nov 2022 19:14:09 +0530 Subject: [PATCH] asoc : send chanel mixer while rerouting sound device Channel mixer has to sent while the sound devices are rerouted as capture/playback prepare will not be called during rerouting. Change-Id: I8473d89c7aff9f5f2a1dd2f3f4a8fa5d387b2429 Signed-off-by: Manoj Kumar N D --- asoc/msm-pcm-routing-auto.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/asoc/msm-pcm-routing-auto.c b/asoc/msm-pcm-routing-auto.c index f8e15f51fc24..10e94d74f8f9 100644 --- a/asoc/msm-pcm-routing-auto.c +++ b/asoc/msm-pcm-routing-auto.c @@ -32338,6 +32338,9 @@ static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream) (fdai->passthr_mode == LEGACY_PCM)) msm_pcm_routing_cfg_pp(port_id, copp_idx, topology, channels); + if(msm_pcm_routing_channel_mixer(i, fdai->perf_mode,fdai->strm_id, session_type)){ + pr_err("%s: failed to send channel mixer \n", __func__); + } } }