From c8d52a1f562831195a6c9db662a6d80d992930d8 Mon Sep 17 00:00:00 2001 From: Ramprasad Katkam Date: Fri, 31 Aug 2018 02:30:00 +0530 Subject: [PATCH] soc: swr-mstr: fix noise issue with mono speaker Fix noise issue with mono speaker by properly disabling the previous port config. Change-Id: I55fde87fcea5c8a7f05ff82a0d8967bc7688882b Signed-off-by: Ramprasad Katkam --- soc/swr-mstr-ctrl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soc/swr-mstr-ctrl.c b/soc/swr-mstr-ctrl.c index a9d755b89442..5c2fcdbcd089 100644 --- a/soc/swr-mstr-ctrl.c +++ b/soc/swr-mstr-ctrl.c @@ -725,7 +725,7 @@ static void swrm_cleanup_disabled_port_reqs(struct swr_master *master) continue; /* remove new ch req's*/ - port_req->req_ch = port_req->ch_en; + port_req->ch_en = port_req->req_ch; /* If no streams enabled on port, remove the port req */ if (port_req->ch_en == 0) { @@ -734,7 +734,7 @@ static void swrm_cleanup_disabled_port_reqs(struct swr_master *master) } } /* remove new ch req's on mport*/ - mport->req_ch = mport->ch_en; + mport->ch_en = mport->req_ch; if (!(mport->ch_en)) { mport->port_en = false;