aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/davinci
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 /sound/soc/davinci
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 'sound/soc/davinci')
-rw-r--r--sound/soc/davinci/davinci-evm.c4
-rw-r--r--sound/soc/davinci/davinci-i2s.c8
-rw-r--r--sound/soc/davinci/davinci-sffsdr.c4
3 files changed, 8 insertions, 8 deletions
diff --git a/sound/soc/davinci/davinci-evm.c b/sound/soc/davinci/davinci-evm.c
index 9e6062cd6b59..2ce34d44b15c 100644
--- a/sound/soc/davinci/davinci-evm.c
+++ b/sound/soc/davinci/davinci-evm.c
@@ -128,7 +128,7 @@ static struct snd_soc_dai_link evm_dai = {
128}; 128};
129 129
130/* davinci-evm audio machine driver */ 130/* davinci-evm audio machine driver */
131static struct snd_soc_machine snd_soc_machine_evm = { 131static struct snd_soc_card snd_soc_card_evm = {
132 .name = "DaVinci EVM", 132 .name = "DaVinci EVM",
133 .dai_link = &evm_dai, 133 .dai_link = &evm_dai,
134 .num_links = 1, 134 .num_links = 1,
@@ -142,7 +142,7 @@ static struct aic3x_setup_data evm_aic3x_setup = {
142 142
143/* evm audio subsystem */ 143/* evm audio subsystem */
144static struct snd_soc_device evm_snd_devdata = { 144static struct snd_soc_device evm_snd_devdata = {
145 .machine = &snd_soc_machine_evm, 145 .card = &snd_soc_card_evm,
146 .platform = &davinci_soc_platform, 146 .platform = &davinci_soc_platform,
147 .codec_dev = &soc_codec_dev_aic3x, 147 .codec_dev = &soc_codec_dev_aic3x,
148 .codec_data = &evm_aic3x_setup, 148 .codec_data = &evm_aic3x_setup,
diff --git a/sound/soc/davinci/davinci-i2s.c b/sound/soc/davinci/davinci-i2s.c
index 11c20d0b7bcc..95df51e803b4 100644
--- a/sound/soc/davinci/davinci-i2s.c
+++ b/sound/soc/davinci/davinci-i2s.c
@@ -375,8 +375,8 @@ static int davinci_i2s_probe(struct platform_device *pdev,
375 struct snd_soc_dai *dai) 375 struct snd_soc_dai *dai)
376{ 376{
377 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 377 struct snd_soc_device *socdev = platform_get_drvdata(pdev);
378 struct snd_soc_machine *machine = socdev->machine; 378 struct snd_soc_card *card = socdev->card;
379 struct snd_soc_dai *cpu_dai = machine->dai_link[pdev->id].cpu_dai; 379 struct snd_soc_dai *cpu_dai = card->dai_link[pdev->id].cpu_dai;
380 struct davinci_mcbsp_dev *dev; 380 struct davinci_mcbsp_dev *dev;
381 struct resource *mem, *ioarea; 381 struct resource *mem, *ioarea;
382 struct evm_snd_platform_data *pdata; 382 struct evm_snd_platform_data *pdata;
@@ -437,8 +437,8 @@ static void davinci_i2s_remove(struct platform_device *pdev,
437 struct snd_soc_dai *dai) 437 struct snd_soc_dai *dai)
438{ 438{
439 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 439 struct snd_soc_device *socdev = platform_get_drvdata(pdev);
440 struct snd_soc_machine *machine = socdev->machine; 440 struct snd_soc_card *card = socdev->card;
441 struct snd_soc_dai *cpu_dai = machine->dai_link[pdev->id].cpu_dai; 441 struct snd_soc_dai *cpu_dai = card->dai_link[pdev->id].cpu_dai;
442 struct davinci_mcbsp_dev *dev = cpu_dai->private_data; 442 struct davinci_mcbsp_dev *dev = cpu_dai->private_data;
443 struct resource *mem; 443 struct resource *mem;
444 444
diff --git a/sound/soc/davinci/davinci-sffsdr.c b/sound/soc/davinci/davinci-sffsdr.c
index 69a8a769f4d8..fa38f9cd3506 100644
--- a/sound/soc/davinci/davinci-sffsdr.c
+++ b/sound/soc/davinci/davinci-sffsdr.c
@@ -73,7 +73,7 @@ static struct snd_soc_dai_link sffsdr_dai = {
73}; 73};
74 74
75/* davinci-sffsdr audio machine driver */ 75/* davinci-sffsdr audio machine driver */
76static struct snd_soc_machine snd_soc_machine_sffsdr = { 76static struct snd_soc_card snd_soc_sffsdr = {
77 .name = "DaVinci SFFSDR", 77 .name = "DaVinci SFFSDR",
78 .dai_link = &sffsdr_dai, 78 .dai_link = &sffsdr_dai,
79 .num_links = 1, 79 .num_links = 1,
@@ -89,7 +89,7 @@ static struct pcm3008_setup_data sffsdr_pcm3008_setup = {
89 89
90/* sffsdr audio subsystem */ 90/* sffsdr audio subsystem */
91static struct snd_soc_device sffsdr_snd_devdata = { 91static struct snd_soc_device sffsdr_snd_devdata = {
92 .machine = &snd_soc_machine_sffsdr, 92 .card = &snd_soc_sffsdr,
93 .platform = &davinci_soc_platform, 93 .platform = &davinci_soc_platform,
94 .codec_dev = &soc_codec_dev_pcm3008, 94 .codec_dev = &soc_codec_dev_pcm3008,
95 .codec_data = &sffsdr_pcm3008_setup, 95 .codec_data = &sffsdr_pcm3008_setup,