]> git.hungrycats.org Git - linux/commit
ASoC: AMD: Ensure reset bit is cleared before configuring
authorAkshu Agrawal <akshu.agrawal@amd.com>
Mon, 10 Sep 2018 08:06:30 +0000 (13:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Oct 2018 07:18:14 +0000 (09:18 +0200)
commitd0200873bc9c1bf193e126665a69e709d93bc987
tree5e039c59ba222d734146f7363225b96634907b48
parent5d1a5a5eed92811ed0d28708e06fbec5143645d1
ASoC: AMD: Ensure reset bit is cleared before configuring

[ Upstream commit 2a665dba016d5493c7d826fec82b0cb643b30d42 ]

HW register descriptions says:
"DMA Channel Reset...Software must confirm that this bit is
cleared before reprogramming any of the channel configuration registers."
There could be cases where dma stop errored out leaving dma channel
in reset state. We need to ensure that before the start of another dma,
channel is out of the reset state.

Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/amd/acp-pcm-dma.c