diff options
Diffstat (limited to 'sound/soc/pxa/pxa2xx-ac97.c')
-rw-r--r-- | sound/soc/pxa/pxa2xx-ac97.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sound/soc/pxa/pxa2xx-ac97.c b/sound/soc/pxa/pxa2xx-ac97.c index 97ec2d90547c..059af815ea0c 100644 --- a/sound/soc/pxa/pxa2xx-ac97.c +++ b/sound/soc/pxa/pxa2xx-ac97.c | |||
@@ -283,7 +283,7 @@ static struct pxa2xx_pcm_dma_params pxa2xx_ac97_pcm_mic_mono_in = { | |||
283 | 283 | ||
284 | #ifdef CONFIG_PM | 284 | #ifdef CONFIG_PM |
285 | static int pxa2xx_ac97_suspend(struct platform_device *pdev, | 285 | static int pxa2xx_ac97_suspend(struct platform_device *pdev, |
286 | struct snd_soc_cpu_dai *dai) | 286 | struct snd_soc_dai *dai) |
287 | { | 287 | { |
288 | GCR |= GCR_ACLINK_OFF; | 288 | GCR |= GCR_ACLINK_OFF; |
289 | clk_disable(ac97_clk); | 289 | clk_disable(ac97_clk); |
@@ -291,7 +291,7 @@ static int pxa2xx_ac97_suspend(struct platform_device *pdev, | |||
291 | } | 291 | } |
292 | 292 | ||
293 | static int pxa2xx_ac97_resume(struct platform_device *pdev, | 293 | static int pxa2xx_ac97_resume(struct platform_device *pdev, |
294 | struct snd_soc_cpu_dai *dai) | 294 | struct snd_soc_dai *dai) |
295 | { | 295 | { |
296 | pxa_gpio_mode(GPIO31_SYNC_AC97_MD); | 296 | pxa_gpio_mode(GPIO31_SYNC_AC97_MD); |
297 | pxa_gpio_mode(GPIO30_SDATA_OUT_AC97_MD); | 297 | pxa_gpio_mode(GPIO30_SDATA_OUT_AC97_MD); |
@@ -310,7 +310,8 @@ static int pxa2xx_ac97_resume(struct platform_device *pdev, | |||
310 | #define pxa2xx_ac97_resume NULL | 310 | #define pxa2xx_ac97_resume NULL |
311 | #endif | 311 | #endif |
312 | 312 | ||
313 | static int pxa2xx_ac97_probe(struct platform_device *pdev) | 313 | static int pxa2xx_ac97_probe(struct platform_device *pdev, |
314 | struct snd_soc_dai *dai) | ||
314 | { | 315 | { |
315 | int ret; | 316 | int ret; |
316 | 317 | ||
@@ -355,7 +356,8 @@ static int pxa2xx_ac97_probe(struct platform_device *pdev) | |||
355 | return ret; | 356 | return ret; |
356 | } | 357 | } |
357 | 358 | ||
358 | static void pxa2xx_ac97_remove(struct platform_device *pdev) | 359 | static void pxa2xx_ac97_remove(struct platform_device *pdev, |
360 | struct snd_soc_dai *dai) | ||
359 | { | 361 | { |
360 | GCR |= GCR_ACLINK_OFF; | 362 | GCR |= GCR_ACLINK_OFF; |
361 | free_irq(IRQ_AC97, NULL); | 363 | free_irq(IRQ_AC97, NULL); |
@@ -372,7 +374,7 @@ static int pxa2xx_ac97_hw_params(struct snd_pcm_substream *substream, | |||
372 | struct snd_pcm_hw_params *params) | 374 | struct snd_pcm_hw_params *params) |
373 | { | 375 | { |
374 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 376 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
375 | struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; | 377 | struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai; |
376 | 378 | ||
377 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) | 379 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) |
378 | cpu_dai->dma_data = &pxa2xx_ac97_pcm_stereo_out; | 380 | cpu_dai->dma_data = &pxa2xx_ac97_pcm_stereo_out; |
@@ -386,7 +388,7 @@ static int pxa2xx_ac97_hw_aux_params(struct snd_pcm_substream *substream, | |||
386 | struct snd_pcm_hw_params *params) | 388 | struct snd_pcm_hw_params *params) |
387 | { | 389 | { |
388 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 390 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
389 | struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; | 391 | struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai; |
390 | 392 | ||
391 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) | 393 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) |
392 | cpu_dai->dma_data = &pxa2xx_ac97_pcm_aux_mono_out; | 394 | cpu_dai->dma_data = &pxa2xx_ac97_pcm_aux_mono_out; |
@@ -400,7 +402,7 @@ static int pxa2xx_ac97_hw_mic_params(struct snd_pcm_substream *substream, | |||
400 | struct snd_pcm_hw_params *params) | 402 | struct snd_pcm_hw_params *params) |
401 | { | 403 | { |
402 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 404 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
403 | struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; | 405 | struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai; |
404 | 406 | ||
405 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) | 407 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) |
406 | return -ENODEV; | 408 | return -ENODEV; |
@@ -418,7 +420,7 @@ static int pxa2xx_ac97_hw_mic_params(struct snd_pcm_substream *substream, | |||
418 | * There is only 1 physical AC97 interface for pxa2xx, but it | 420 | * There is only 1 physical AC97 interface for pxa2xx, but it |
419 | * has extra fifo's that can be used for aux DACs and ADCs. | 421 | * has extra fifo's that can be used for aux DACs and ADCs. |
420 | */ | 422 | */ |
421 | struct snd_soc_cpu_dai pxa_ac97_dai[] = { | 423 | struct snd_soc_dai pxa_ac97_dai[] = { |
422 | { | 424 | { |
423 | .name = "pxa2xx-ac97", | 425 | .name = "pxa2xx-ac97", |
424 | .id = 0, | 426 | .id = 0, |