]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: Fix choppy sound because of unimplemented resume
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Wed, 10 Jun 2015 08:17:07 +0000 (17:17 +0900)
committerVinod Koul <vinod.koul@intel.com>
Fri, 12 Jun 2015 09:52:26 +0000 (15:22 +0530)
commit0382dc5c4f0e8cbc9f6a86cca23afec424238e4f
treefb0868cd72f188d5bc08ad3e495fd6c40a202e05
parentc1a7cbb5ed8a334486418d6396c9b555f8b52580
dmaengine: Fix choppy sound because of unimplemented resume

Some drivers implement only pause operation (no resuming). Example is
pl330 where pause is needed for getting residuum. pl330 does not support
resume operation, transfer must be stopped after pause.

However for slaves this is exposed always as "pause and resume" which
introduces subtle errors on Odroid U3 board (Exynos4412 with pl330).
After adding pause function to pl330 driver the audio playback
(utilizing DMA) gets choppy after some time (approximately 24 hours).

Fix this by exposing "cmd_pause" if and only if pause and resume are
implemented.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reported-by: gabriel@unseen.is
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: <stable@vger.kernel.org>
Fixes: f1ea0436360c ("dmaengine: pl330: add DMA_PAUSE feature")
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dmaengine.c