diff options
author | Huang Chao <chao7.huang@samsung.com> | 2014-06-13 14:11:11 +0800 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:59:50 +0900 |
commit | 10917ffe7f4142ad66b8f6c0f4ff66a52cd577ff (patch) | |
tree | cfde241f90c5f990b99b945c86e21f1331b68cb8 /sound | |
parent | 421a8cb2f97f33f56d0019cf201f7b04f1fb1589 (diff) | |
download | linux-3.10-10917ffe7f4142ad66b8f6c0f4ff66a52cd577ff.tar.gz linux-3.10-10917ffe7f4142ad66b8f6c0f4ff66a52cd577ff.tar.bz2 linux-3.10-10917ffe7f4142ad66b8f6c0f4ff66a52cd577ff.zip |
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 <chao7.huang@samsung.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/samsung/dma.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/samsung/dma.c b/sound/soc/samsung/dma.c index b0bdf515735..bf3d80234ed 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 | |