ASoC: amd: Fix simultaneous playback and capture
authorAkshu Agrawal <akshu.agrawal@amd.com>
Tue, 28 Jan 2020 10:30:22 +0000 (16:00 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 29 Jan 2020 17:48:47 +0000 (17:48 +0000)
commit67e69e1d46becd934a03489c38fc42bb2510c1c6
tree6b6a4d436230d5e48c94c443de53d8b4c7231b1b
parent98ff5c262f27aafee077a4c096f71a8566e9e948
ASoC: amd: Fix simultaneous playback and capture

Stopping of one stream is killing the other stream when they
are running simultaneously. This is because, IER register is
cleared which disables I2S and overrides any other block enables.

Clearing IER register only when all streams on a channel are disabled,
fixes the issue.

Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>
Link: https://lore.kernel.org/r/20200128103029.128841-1-akshu.agrawal@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/raven/acp3x-i2s.c