aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2008-11-18 15:50:34 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2008-11-21 09:02:01 -0500
commit875065491fba8eb13219f16c36e79a6fb4e15c68 (patch)
treeb95327a466e6b79cb5d8a1d9be0f33697dd05db8 /include/sound/soc.h
parent9b0db7e7fd20d5a38844e9435f7d4246ea44978a (diff)
ASoC: Rename snd_soc_card to snd_soc_machine
One of the issues with the ASoC v1 API which has been addressed in the ASoC v2 work that Liam Girdwood has done is that the ALSA card provided by ASoC is distributed around the ASoC structures. For example, machine wide data such as the struct snd_card are maintained as part of the CODEC data structure, preventing the use of multiple codecs. This has been addressed by refactoring the data structures so that all the data for the ALSA card is contained in a single structure snd_soc_card which replaces the existing snd_soc_machine and snd_soc_device. Begin the process of backporting this by renaming struct snd_soc_machine to struct snd_soc_card, better reflecting its function and bringing it closer to standard ALSA terminology. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 077dfe4e51f0..3be17b3c650c 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -482,8 +482,8 @@ struct snd_soc_dai_link {
482 struct snd_pcm *pcm; 482 struct snd_pcm *pcm;
483}; 483};
484 484
485/* SoC machine */ 485/* SoC card */
486struct snd_soc_machine { 486struct snd_soc_card {
487 char *name; 487 char *name;
488 488
489 int (*probe)(struct platform_device *pdev); 489 int (*probe)(struct platform_device *pdev);
@@ -497,7 +497,7 @@ struct snd_soc_machine {
497 int (*resume_post)(struct platform_device *pdev); 497 int (*resume_post)(struct platform_device *pdev);
498 498
499 /* callbacks */ 499 /* callbacks */
500 int (*set_bias_level)(struct snd_soc_machine *, 500 int (*set_bias_level)(struct snd_soc_card *,
501 enum snd_soc_bias_level level); 501 enum snd_soc_bias_level level);
502 502
503 /* CPU <--> Codec DAI links */ 503 /* CPU <--> Codec DAI links */
@@ -508,7 +508,7 @@ struct snd_soc_machine {
508/* SoC Device - the audio subsystem */ 508/* SoC Device - the audio subsystem */
509struct snd_soc_device { 509struct snd_soc_device {
510 struct device *dev; 510 struct device *dev;
511 struct snd_soc_machine *machine; 511 struct snd_soc_card *card;
512 struct snd_soc_platform *platform; 512 struct snd_soc_platform *platform;
513 struct snd_soc_codec *codec; 513 struct snd_soc_codec *codec;
514 struct snd_soc_codec_device *codec_dev; 514 struct snd_soc_codec_device *codec_dev;