diff options
author | Mark Brown <broonie@linaro.org> | 2013-10-17 16:13:19 -0400 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 09:57:36 -0400 |
commit | aaa63024bca773a671815b04bcad3145097a8a7c (patch) | |
tree | 5d0548e362e701f6b2f1aba7975a67e8ce243dd8 | |
parent | 50663f64fdc60c9f03600af6954514b474e0eb53 (diff) |
ASoC: dai: Provide interface for setting DMA data at probe time
Allow DMA data to be set at probe time for devices that can do that,
avoiding the need to do it every time we start a stream and supporting
non-DT dmaengine users using the helpers.
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit ecfc0c04f236f1e2a95094792ec10cf27be39f7c)
Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com>
-rw-r--r-- | include/sound/soc-dai.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index cf22dd84e93a..e026fcf99bb5 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h | |||
@@ -282,6 +282,13 @@ static inline void snd_soc_dai_set_dma_data(struct snd_soc_dai *dai, | |||
282 | dai->capture_dma_data = data; | 282 | dai->capture_dma_data = data; |
283 | } | 283 | } |
284 | 284 | ||
285 | static inline void snd_soc_dai_init_dma_data(struct snd_soc_dai *dai, | ||
286 | void *playback, void *capture) | ||
287 | { | ||
288 | dai->playback_dma_data = playback; | ||
289 | dai->capture_dma_data = capture; | ||
290 | } | ||
291 | |||
285 | static inline void snd_soc_dai_set_drvdata(struct snd_soc_dai *dai, | 292 | static inline void snd_soc_dai_set_drvdata(struct snd_soc_dai *dai, |
286 | void *data) | 293 | void *data) |
287 | { | 294 | { |