diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2014-04-16 08:46:15 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-18 13:00:35 -0400 |
commit | 3fe856b3127744ce30d4369ba760459b6ac9f820 (patch) | |
tree | 3d099dc29aa2ae004d937cbedc3f849ef284c45f /sound/soc/omap/omap-mcbsp.c | |
parent | 335b06515eda252b36aa9063596f740a903c1e35 (diff) |
ASoC: omap-mcbsp: Assign the dai DMA data at earlier time
Assign the dai dma data at dai driver probe time, not in startup.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/omap/omap-mcbsp.c')
-rw-r--r-- | sound/soc/omap/omap-mcbsp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c index 6c19bba23570..4525190d5599 100644 --- a/sound/soc/omap/omap-mcbsp.c +++ b/sound/soc/omap/omap-mcbsp.c | |||
@@ -149,9 +149,6 @@ static int omap_mcbsp_dai_startup(struct snd_pcm_substream *substream, | |||
149 | SNDRV_PCM_HW_PARAM_PERIOD_SIZE, 2); | 149 | SNDRV_PCM_HW_PARAM_PERIOD_SIZE, 2); |
150 | } | 150 | } |
151 | 151 | ||
152 | snd_soc_dai_set_dma_data(cpu_dai, substream, | ||
153 | &mcbsp->dma_data[substream->stream]); | ||
154 | |||
155 | return err; | 152 | return err; |
156 | } | 153 | } |
157 | 154 | ||
@@ -559,6 +556,10 @@ static int omap_mcbsp_probe(struct snd_soc_dai *dai) | |||
559 | 556 | ||
560 | pm_runtime_enable(mcbsp->dev); | 557 | pm_runtime_enable(mcbsp->dev); |
561 | 558 | ||
559 | snd_soc_dai_init_dma_data(dai, | ||
560 | &mcbsp->dma_data[SNDRV_PCM_STREAM_PLAYBACK], | ||
561 | &mcbsp->dma_data[SNDRV_PCM_STREAM_CAPTURE]); | ||
562 | |||
562 | return 0; | 563 | return 0; |
563 | } | 564 | } |
564 | 565 | ||