aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/sound/soc.h6
-rw-r--r--sound/soc/atmel/atmel-pcm.c6
-rw-r--r--sound/soc/soc-core.c4
3 files changed, 6 insertions, 10 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 3ee608dce2f8..8ec63c02dc10 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -300,10 +300,8 @@ struct snd_soc_platform {
300 300
301 int (*probe)(struct platform_device *pdev); 301 int (*probe)(struct platform_device *pdev);
302 int (*remove)(struct platform_device *pdev); 302 int (*remove)(struct platform_device *pdev);
303 int (*suspend)(struct platform_device *pdev, 303 int (*suspend)(struct snd_soc_dai *dai);
304 struct snd_soc_dai *dai); 304 int (*resume)(struct snd_soc_dai *dai);
305 int (*resume)(struct platform_device *pdev,
306 struct snd_soc_dai *dai);
307 305
308 /* pcm creation and destruction */ 306 /* pcm creation and destruction */
309 int (*pcm_new)(struct snd_card *, struct snd_soc_dai *, 307 int (*pcm_new)(struct snd_card *, struct snd_soc_dai *,
diff --git a/sound/soc/atmel/atmel-pcm.c b/sound/soc/atmel/atmel-pcm.c
index 394412fb396f..8507aa1cd811 100644
--- a/sound/soc/atmel/atmel-pcm.c
+++ b/sound/soc/atmel/atmel-pcm.c
@@ -417,8 +417,7 @@ static void atmel_pcm_free_dma_buffers(struct snd_pcm *pcm)
417} 417}
418 418
419#ifdef CONFIG_PM 419#ifdef CONFIG_PM
420static int atmel_pcm_suspend(struct platform_device *pdev, 420static int atmel_pcm_suspend(struct snd_soc_dai *dai)
421 struct snd_soc_dai *dai)
422{ 421{
423 struct snd_pcm_runtime *runtime = dai->runtime; 422 struct snd_pcm_runtime *runtime = dai->runtime;
424 struct atmel_runtime_data *prtd; 423 struct atmel_runtime_data *prtd;
@@ -442,8 +441,7 @@ static int atmel_pcm_suspend(struct platform_device *pdev,
442 return 0; 441 return 0;
443} 442}
444 443
445static int atmel_pcm_resume(struct platform_device *pdev, 444static int atmel_pcm_resume(struct snd_soc_dai *dai)
446 struct snd_soc_dai *dai)
447{ 445{
448 struct snd_pcm_runtime *runtime = dai->runtime; 446 struct snd_pcm_runtime *runtime = dai->runtime;
449 struct atmel_runtime_data *prtd; 447 struct atmel_runtime_data *prtd;
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 34114398b914..f83852f11463 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -652,7 +652,7 @@ static int soc_suspend(struct platform_device *pdev, pm_message_t state)
652 if (cpu_dai->suspend && !cpu_dai->ac97_control) 652 if (cpu_dai->suspend && !cpu_dai->ac97_control)
653 cpu_dai->suspend(pdev, cpu_dai); 653 cpu_dai->suspend(pdev, cpu_dai);
654 if (platform->suspend) 654 if (platform->suspend)
655 platform->suspend(pdev, cpu_dai); 655 platform->suspend(cpu_dai);
656 } 656 }
657 657
658 /* close any waiting streams and save state */ 658 /* close any waiting streams and save state */
@@ -741,7 +741,7 @@ static void soc_resume_deferred(struct work_struct *work)
741 if (cpu_dai->resume && !cpu_dai->ac97_control) 741 if (cpu_dai->resume && !cpu_dai->ac97_control)
742 cpu_dai->resume(pdev, cpu_dai); 742 cpu_dai->resume(pdev, cpu_dai);
743 if (platform->resume) 743 if (platform->resume)
744 platform->resume(pdev, cpu_dai); 744 platform->resume(cpu_dai);
745 } 745 }
746 746
747 if (card->resume_post) 747 if (card->resume_post)