]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7b4b7b6ddddb914a42be6ad44d705b2fe47a1f5
tree4b5e2253b343ac32af21f7c5029f3457bdc50084
parent818e0adc16dd7d7dcb0ac4de6ae012e58b70ab28
ASoC: AMD: Always stop ch2 first

Commit 82bc84ad3271b ("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