aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/davinci/davinci-i2s.c
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/davinci-i2s.c
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/davinci-i2s.c')
-rw-r--r--sound/soc/davinci/davinci-i2s.c8
1 files changed, 4 insertions, 4 deletions
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