From d12b55a1649942a9aa21ca8d3852f2d5bb510acb Mon Sep 17 00:00:00 2001 From: Huang Chao Date: Fri, 13 Jun 2014 14:11:11 +0800 Subject: [PATCH] ASoC: samsung: dma: Add pause/resume support for pcm stream information This patch expands the sound pcm hardware information set, which makes dma driver support audio stream pause/resume when playback music, and triggering the push/release commands respectively. Change-Id: I2f89c13afd335c964d144e9ba1b9d101ceb14a0d Signed-off-by: Huang Chao --- sound/soc/samsung/dma.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/samsung/dma.c b/sound/soc/samsung/dma.c index b0bdf51..bf3d802 100644 --- a/sound/soc/samsung/dma.c +++ b/sound/soc/samsung/dma.c @@ -34,7 +34,9 @@ static const struct snd_pcm_hardware dma_hardware = { .info = SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP | - SNDRV_PCM_INFO_MMAP_VALID, + SNDRV_PCM_INFO_MMAP_VALID | + SNDRV_PCM_INFO_PAUSE | + SNDRV_PCM_INFO_RESUME, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U16_LE | SNDRV_PCM_FMTBIT_U8 | -- 2.7.4