]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 13 Aug 2021 07:46:22 +0000 (09:46 +0200)
commitb1b07c6f79a08252a532f22b2289d147f8ae9cbb
treec8accd451cefb5644b6df7ea9869ea951ccd63c9
parent21fe39fb88f014c5260f50986743eff531c0dd90
ASoC: atmel-i2s: Fix usage of capture and playback at the same time

BugLink: https://bugs.launchpad.net/bugs/1938199
[ Upstream commit 3b7961a326f8a7e03f54a19f02fedae8d488b80f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
sound/soc/atmel/atmel-i2s.c