]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: davinci-mcasp: Only disable inactive serializer
authorVishal Thanki <vishalthanki@gmail.com>
Fri, 11 May 2018 12:33:37 +0000 (14:33 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 17 May 2018 06:46:22 +0000 (15:46 +0900)
commit17b82680875e57d322f4492ebadafeb62f44f55d
treefe11bc6137c5601005918e2cc2b67b2aff35d940
parent1a9527ac6dbf5d02b0380f71c6c4d86b5a5e08e4
ASoC: davinci-mcasp: Only disable inactive serializer

As a side effect of the following commit, the active TX
serializer may get disabled which may result in distorted
audio output.

ASoC: davinci-mcasp: Add support for multichannel playback
(a3e6de299ad2a4e1e95948d2eeed50f8940d8695)

For example, if a 4 channel I2S playback with two TX serializers
is activated. Later on, if a recording of 2 channels, with only 1 RX
serializer is started, which will also disable one of the TX
serializer because max_active_serializers is only calculated for
RX (recording) stream. This patch fixes this issue.

Signed-off-by: Vishal Thanki <vishalthanki@gmail.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/davinci/davinci-mcasp.c