]> git.baikalelectronics.ru Git - kernel.git/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)
committerMark Brown <broonie@kernel.org>
Mon, 10 Sep 2018 11:20:52 +0000 (12:20 +0100)
commita697e1a5f8ddf6ae918d346ec7f89f167c608e05
tree40d1b5d7a8266516c8bf0eb7feae21a72ae98913
parent6e5132bc4517acb7ebfacf24d208ea5b3e1de4b0
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