diff mbox series

ASoC: mmp-sspa: clear transmit phase bit for non-stereo formats

Message ID 20201106145905.365903-1-bkylerussell@gmail.com
State Accepted
Commit b88b31f4fa0abcd698045362d4aefcddc50cba59
Headers show
Series ASoC: mmp-sspa: clear transmit phase bit for non-stereo formats | expand

Commit Message

Kyle Russell Nov. 6, 2020, 2:59 p.m. UTC
The transmit phase register value is never cleared during hw params.
So once hw params sets this bit to handle a two channel format, it
remains configured for dual-phase, which is not desirable for mono
playback.

Signed-off-by: Kyle Russell <bkylerussell@gmail.com>
---
 sound/soc/pxa/mmp-sspa.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/sound/soc/pxa/mmp-sspa.c b/sound/soc/pxa/mmp-sspa.c
index 4255851c71c1..52d4d8ace1c3 100644
--- a/sound/soc/pxa/mmp-sspa.c
+++ b/sound/soc/pxa/mmp-sspa.c
@@ -239,6 +239,7 @@  static int mmp_sspa_hw_params(struct snd_pcm_substream *substream,
 		return -EINVAL;
 	}
 
+	sspa_ctrl &= ~SSPA_CTL_XPH;
 	if (dev->of_node || params_channels(params) == 2)
 		sspa_ctrl |= SSPA_CTL_XPH;