aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorjassi brar <jassisinghbrar@gmail.com>2010-02-22 01:58:04 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-02-22 09:14:58 -0500
commitd273ebe77a780d3aba1f5b86615af3b0e87b76bf (patch)
treefd863113cd506960992495659e13aa1c7a4ef315 /include/sound
parent6c5f1fed49f96a0600aa9a97ac3faf972c33a341 (diff)
ASoC: Pass dai_link as argument to platform suspend and resume
Passing pointer to relevant dai_link provides easier reach to the ASoC tree in suspend/resume of snd_soc_platform. It also provides direct access to the dai at the other end of the dai_link. Signed-off-by: Jassi Brar <jassi.brar@samsung.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 5d234a8c2506..27a2ad9a6b8b 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -212,6 +212,7 @@ struct snd_soc_dai_mode;
212struct snd_soc_pcm_runtime; 212struct snd_soc_pcm_runtime;
213struct snd_soc_dai; 213struct snd_soc_dai;
214struct snd_soc_platform; 214struct snd_soc_platform;
215struct snd_soc_dai_link;
215struct snd_soc_codec; 216struct snd_soc_codec;
216struct soc_enum; 217struct soc_enum;
217struct snd_soc_ac97_ops; 218struct snd_soc_ac97_ops;
@@ -461,8 +462,8 @@ struct snd_soc_platform {
461 462
462 int (*probe)(struct platform_device *pdev); 463 int (*probe)(struct platform_device *pdev);
463 int (*remove)(struct platform_device *pdev); 464 int (*remove)(struct platform_device *pdev);
464 int (*suspend)(struct snd_soc_dai *dai); 465 int (*suspend)(struct snd_soc_dai_link *dai_link);
465 int (*resume)(struct snd_soc_dai *dai); 466 int (*resume)(struct snd_soc_dai_link *dai_link);
466 467
467 /* pcm creation and destruction */ 468 /* pcm creation and destruction */
468 int (*pcm_new)(struct snd_card *, struct snd_soc_dai *, 469 int (*pcm_new)(struct snd_card *, struct snd_soc_dai *,