ASoC: atmel-i2s: Fix usage of capture and playback at the same time
authorCodrin Ciubotariu <codrin.ciubotariu@microchip.com>
Fri, 18 Jun 2021 15:07:41 +0000 (18:07 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 21 Jun 2021 12:00:48 +0000 (13:00 +0100)
commit3b7961a326f8a7e03f54a19f02fedae8d488b80f
tree86b6bc2f4a5313cf3992c9392e84fa9670d103f1
parent489a830a25e1730aebf7ff53430c170db9a1771b
ASoC: atmel-i2s: Fix usage of capture and playback at the same time

For both capture and playback streams to work at the same time, only the
needed values from a register need to be updated. Also, clocks should be
enabled only when the first stream is started and stopped when there is no
running stream.

Fixes: b543e467d1a9 ("ASoC: atmel-i2s: add driver for the new Atmel I2S controller")
Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Link: https://lore.kernel.org/r/20210618150741.401739-2-codrin.ciubotariu@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/atmel-i2s.c