From: Tushar Behera Date: Mon, 19 May 2014 09:23:53 +0000 (+0530) Subject: ALSA: pcm_dmaengine: Add check during device suspend X-Git-Tag: omap-for-v3.16/fixes-against-rc1~129^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02fb05a598e9393382f55132a36aff84f4d76ad5;p=pandora-kernel.git 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 Acked-by: Lars-Peter Clausen Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed