ASoC: AMD: Always stop ch2 first
authorDaniel Kurtz <djkurtz@chromium.org>
Mon, 2 Jul 2018 21:19:50 +0000 (15:19 -0600)
committerMark Brown <broonie@kernel.org>
Tue, 3 Jul 2018 15:14:28 +0000 (16:14 +0100)
commit30896d3619bd80486a3f8a75d62ea3b58fc61ad5
tree4b5e2253b343ac32af21f7c5029f3457bdc50084
parente0431de301cbb8e3915261dfff4d0b072738de69
ASoC: AMD: Always stop ch2 first

Commit 6b116dfb4633a ("ASoC: AMD: make channel 1 dma as circular") made
both channels circular, so this comment and logic no longer applies.  Always
stop ch2 (the channel closest to the output) before ch1.  This ensures
that the downstream circular DMA channel does not continue to play/capture
repeated samples after the upstream circular DMA channel has already
stopped.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp-pcm-dma.c