]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm_dmaengine: Add check during device suspend
authorTushar Behera <tushar.behera@linaro.org>
Mon, 19 May 2014 09:23:53 +0000 (14:53 +0530)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 May 2014 09:31:24 +0000 (11:31 +0200)
commita1930862b7acac6c4cfe67b1c31a35358fd5b4bb
tree0283125bda8f59641d339c480256b0322607205d
parent9495ba043ce17d559a382e3ca7f6ef65856bfb3b
ALSA: pcm_dmaengine: Add check during device suspend

Currently snd_dmaengine_pcm_trigger() calls dmaengine_pause()
unconditinally during device suspend. In case where DMA controller
doesn't support PAUSE/RESUME functionality, this call is not able
to stop the DMA controller. In this scenario, audio playback doesn't
resume after device resume.

Calling dmaengine_pause/dmaengine_terminate_all conditionally fixes
the issue.

It has been tested with audio playback on Samsung platform having
PL330 DMA controller which doesn't support PAUSE/RESUME.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_dmaengine.c