]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: pcm_dmaengine: Don't synchronize DMA channel when DMA is paused
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 17 Jul 2024 06:44:53 +0000 (14:44 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 17 Jul 2024 08:39:47 +0000 (10:39 +0200)
commit88e98af9f4b5b0d60c1fe7f7f2701b5467691e75
treef6302240d1513d2f0c3f60752baf0445d702e190
parent97b10a77b150df664bb521ae217dd6bceb40d5d3
ALSA: pcm_dmaengine: Don't synchronize DMA channel when DMA is paused

When suspended, the DMA channel may enter PAUSE state if dmaengine_pause()
is supported by DMA.
At this state, dmaengine_synchronize() should not be called, otherwise
the DMA channel can't be resumed successfully.

Fixes: e8343410ddf0 ("ALSA: dmaengine: Synchronize dma channel after drop()")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/1721198693-27636-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_dmaengine.c