diff options
author | Huang Chao <chao7.huang@samsung.com> | 2014-06-30 15:45:06 +0800 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2014-07-03 09:54:41 +0900 |
commit | 946cdeac8a24c126e76e8c7bf61cae1edfe9b1ba (patch) | |
tree | 06ade7e00b51dffa2ffe7f59f93a78fca00fcf12 /sound | |
parent | a9a17260b028918fb86e73f19094d64f684e866b (diff) | |
download | linux-3.10-946cdeac8a24c126e76e8c7bf61cae1edfe9b1ba.tar.gz linux-3.10-946cdeac8a24c126e76e8c7bf61cae1edfe9b1ba.tar.bz2 linux-3.10-946cdeac8a24c126e76e8c7bf61cae1edfe9b1ba.zip |
ASoC: samsung: i2s: Add sound dmaengine playback/capture DAI DMA data
This patch adds the standard alsa dmaengine configuration dai data,
which can make the dma slave channel runtime data be configured by
generic sound dmaengine slave config callback. This dmaengine dai
configuration data mainly contain dma address, width and maxburst.
Change-Id: Ief0688913ef89faafb90a1cf72c8a0977f3cb688
Signed-off-by: Huang Chao <chao7.huang@samsung.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/samsung/i2s.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index 33121dd2aba..77fa46e4841 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c @@ -22,6 +22,7 @@ #include <sound/soc.h> #include <sound/pcm_params.h> +#include <sound/dmaengine_pcm.h> #include <mach/dma.h> @@ -88,6 +89,8 @@ struct i2s_dai { /* Driver for this DAI */ struct snd_soc_dai_driver i2s_dai_drv; /* DMA parameters */ + struct snd_dmaengine_dai_dma_data snd_dma_playback; + struct snd_dmaengine_dai_dma_data snd_dma_capture; struct s3c_dma_params dma_playback; struct s3c_dma_params dma_capture; struct s3c_dma_params idma_playback; |