OSDN Git Service

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)
committerMark Brown <broonie@kernel.org>
Mon, 10 Sep 2018 11:20:52 +0000 (12:20 +0100)
commit2a665dba016d5493c7d826fec82b0cb643b30d42
tree40d1b5d7a8266516c8bf0eb7feae21a72ae98913
parent6c92d5a2744e27619a8fcc9d74b91ee9f1cdebd1
ASoC: AMD: Ensure reset bit is cleared before configuring

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>
sound/soc/amd/acp-pcm-dma.c