]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: ti: davinci-mcasp: Fix clk PDIR handling for i2s master mode
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 25 Jul 2019 08:34:23 +0000 (11:34 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 26 Jul 2019 12:09:09 +0000 (13:09 +0100)
commit76eb6444c96df40722e2694e42d0491819693df0
tree211576006c6214dc3f415b23f2fa1c85f8c3e18f
parent462fbc8c4da6aa88e00d0c4f801bda57a313bfa7
ASoC: ti: davinci-mcasp: Fix clk PDIR handling for i2s master mode

When running McASP as master capture alone will not record any audio unless
a parallel playback stream is running. As soon as the playback stops the
captured data is going to be silent again.

In McASP master mode we need to set the PDIR for the clock pins and fix
the mcasp_set_axr_pdir() to skip the bits in the PDIR registers above
AMUTE.

This went unnoticed as most of the boards uses McASP as slave and neither
of these issues are visible (audible) in those setups.

Fixes: 009f23bae361 ("ASoC: davinci-mcasp: Update PDIR (pin direction) register handling")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20190725083423.7321-1-peter.ujfalusi@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ti/davinci-mcasp.c