diff options
Diffstat (limited to 'sound/soc/davinci/davinci-i2s.c')
-rw-r--r-- | sound/soc/davinci/davinci-i2s.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/sound/soc/davinci/davinci-i2s.c b/sound/soc/davinci/davinci-i2s.c index c421774b33ee..5ebf1ff71c4c 100644 --- a/sound/soc/davinci/davinci-i2s.c +++ b/sound/soc/davinci/davinci-i2s.c | |||
@@ -147,7 +147,7 @@ static void davinci_mcbsp_stop(struct snd_pcm_substream *substream) | |||
147 | static int davinci_i2s_startup(struct snd_pcm_substream *substream) | 147 | static int davinci_i2s_startup(struct snd_pcm_substream *substream) |
148 | { | 148 | { |
149 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 149 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
150 | struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; | 150 | struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai; |
151 | struct davinci_mcbsp_dev *dev = rtd->dai->cpu_dai->private_data; | 151 | struct davinci_mcbsp_dev *dev = rtd->dai->cpu_dai->private_data; |
152 | 152 | ||
153 | cpu_dai->dma_data = dev->dma_params[substream->stream]; | 153 | cpu_dai->dma_data = dev->dma_params[substream->stream]; |
@@ -155,7 +155,7 @@ static int davinci_i2s_startup(struct snd_pcm_substream *substream) | |||
155 | return 0; | 155 | return 0; |
156 | } | 156 | } |
157 | 157 | ||
158 | static int davinci_i2s_set_dai_fmt(struct snd_soc_cpu_dai *cpu_dai, | 158 | static int davinci_i2s_set_dai_fmt(struct snd_soc_dai *cpu_dai, |
159 | unsigned int fmt) | 159 | unsigned int fmt) |
160 | { | 160 | { |
161 | struct davinci_mcbsp_dev *dev = cpu_dai->private_data; | 161 | struct davinci_mcbsp_dev *dev = cpu_dai->private_data; |
@@ -295,11 +295,12 @@ static int davinci_i2s_trigger(struct snd_pcm_substream *substream, int cmd) | |||
295 | return ret; | 295 | return ret; |
296 | } | 296 | } |
297 | 297 | ||
298 | static int davinci_i2s_probe(struct platform_device *pdev) | 298 | static int davinci_i2s_probe(struct platform_device *pdev, |
299 | struct snd_soc_dai *dai) | ||
299 | { | 300 | { |
300 | struct snd_soc_device *socdev = platform_get_drvdata(pdev); | 301 | struct snd_soc_device *socdev = platform_get_drvdata(pdev); |
301 | struct snd_soc_machine *machine = socdev->machine; | 302 | struct snd_soc_machine *machine = socdev->machine; |
302 | struct snd_soc_cpu_dai *cpu_dai = machine->dai_link[pdev->id].cpu_dai; | 303 | struct snd_soc_dai *cpu_dai = machine->dai_link[pdev->id].cpu_dai; |
303 | struct davinci_mcbsp_dev *dev; | 304 | struct davinci_mcbsp_dev *dev; |
304 | struct resource *mem, *ioarea; | 305 | struct resource *mem, *ioarea; |
305 | struct evm_snd_platform_data *pdata; | 306 | struct evm_snd_platform_data *pdata; |
@@ -356,11 +357,12 @@ err_release_region: | |||
356 | return ret; | 357 | return ret; |
357 | } | 358 | } |
358 | 359 | ||
359 | static void davinci_i2s_remove(struct platform_device *pdev) | 360 | static void davinci_i2s_remove(struct platform_device *pdev, |
361 | struct snd_soc_dai *dai) | ||
360 | { | 362 | { |
361 | struct snd_soc_device *socdev = platform_get_drvdata(pdev); | 363 | struct snd_soc_device *socdev = platform_get_drvdata(pdev); |
362 | struct snd_soc_machine *machine = socdev->machine; | 364 | struct snd_soc_machine *machine = socdev->machine; |
363 | struct snd_soc_cpu_dai *cpu_dai = machine->dai_link[pdev->id].cpu_dai; | 365 | struct snd_soc_dai *cpu_dai = machine->dai_link[pdev->id].cpu_dai; |
364 | struct davinci_mcbsp_dev *dev = cpu_dai->private_data; | 366 | struct davinci_mcbsp_dev *dev = cpu_dai->private_data; |
365 | struct resource *mem; | 367 | struct resource *mem; |
366 | 368 | ||
@@ -376,7 +378,7 @@ static void davinci_i2s_remove(struct platform_device *pdev) | |||
376 | 378 | ||
377 | #define DAVINCI_I2S_RATES SNDRV_PCM_RATE_8000_96000 | 379 | #define DAVINCI_I2S_RATES SNDRV_PCM_RATE_8000_96000 |
378 | 380 | ||
379 | struct snd_soc_cpu_dai davinci_i2s_dai = { | 381 | struct snd_soc_dai davinci_i2s_dai = { |
380 | .name = "davinci-i2s", | 382 | .name = "davinci-i2s", |
381 | .id = 0, | 383 | .id = 0, |
382 | .type = SND_SOC_DAI_I2S, | 384 | .type = SND_SOC_DAI_I2S, |