aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/spear
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-04-17 09:24:35 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-04-17 09:24:35 -0400
commit753e23ea588d353da9d0a2672828336453607265 (patch)
treea0eb4875ecde41725fe890e27f52d69812031ea1 /sound/soc/spear
parentc999836d37c6c1125e856f68877ae13952baa61a (diff)
parent41ef2d5678d83af030125550329b6ae8b74618fa (diff)
Merge tag 'v3.9-rc7' into asoc-dma
Linux 3.9-rc7
Diffstat (limited to 'sound/soc/spear')
-rw-r--r--sound/soc/spear/spear_pcm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/soc/spear/spear_pcm.c b/sound/soc/spear/spear_pcm.c
index ba66a3f370a3..d653763f83b7 100644
--- a/sound/soc/spear/spear_pcm.c
+++ b/sound/soc/spear/spear_pcm.c
@@ -136,9 +136,9 @@ static void spear_pcm_free(struct snd_pcm *pcm)
136 136
137static u64 spear_pcm_dmamask = DMA_BIT_MASK(32); 137static u64 spear_pcm_dmamask = DMA_BIT_MASK(32);
138 138
139static int spear_pcm_new(struct snd_card *card, 139static int spear_pcm_new(struct snd_soc_pcm_runtime *rtd)
140 struct snd_soc_dai *dai, struct snd_pcm *pcm)
141{ 140{
141 struct snd_card *card = rtd->card->snd_card;
142 int ret; 142 int ret;
143 143
144 if (!card->dev->dma_mask) 144 if (!card->dev->dma_mask)
@@ -146,16 +146,16 @@ static int spear_pcm_new(struct snd_card *card,
146 if (!card->dev->coherent_dma_mask) 146 if (!card->dev->coherent_dma_mask)
147 card->dev->coherent_dma_mask = DMA_BIT_MASK(32); 147 card->dev->coherent_dma_mask = DMA_BIT_MASK(32);
148 148
149 if (dai->driver->playback.channels_min) { 149 if (rtd->cpu_dai->driver->playback.channels_min) {
150 ret = spear_pcm_preallocate_dma_buffer(pcm, 150 ret = spear_pcm_preallocate_dma_buffer(rtd->pcm,
151 SNDRV_PCM_STREAM_PLAYBACK, 151 SNDRV_PCM_STREAM_PLAYBACK,
152 spear_pcm_hardware.buffer_bytes_max); 152 spear_pcm_hardware.buffer_bytes_max);
153 if (ret) 153 if (ret)
154 return ret; 154 return ret;
155 } 155 }
156 156
157 if (dai->driver->capture.channels_min) { 157 if (rtd->cpu_dai->driver->capture.channels_min) {
158 ret = spear_pcm_preallocate_dma_buffer(pcm, 158 ret = spear_pcm_preallocate_dma_buffer(rtd->pcm,
159 SNDRV_PCM_STREAM_CAPTURE, 159 SNDRV_PCM_STREAM_CAPTURE,
160 spear_pcm_hardware.buffer_bytes_max); 160 spear_pcm_hardware.buffer_bytes_max);
161 if (ret) 161 if (ret)