aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/atmel/sam9g20_wm8731.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/atmel/sam9g20_wm8731.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/atmel/sam9g20_wm8731.c')
-rw-r--r--sound/soc/atmel/sam9g20_wm8731.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c
index 710addcc66b3..fdc1d0206e0b 100644
--- a/sound/soc/atmel/sam9g20_wm8731.c
+++ b/sound/soc/atmel/sam9g20_wm8731.c
@@ -242,7 +242,7 @@ static struct snd_soc_dai_link at91sam9g20ek_dai = {
242 .ops = &at91sam9g20ek_ops, 242 .ops = &at91sam9g20ek_ops,
243}; 243};
244 244
245static struct snd_soc_machine snd_soc_machine_at91sam9g20ek = { 245static struct snd_soc_card snd_soc_at91sam9g20ek = {
246 .name = "WM8731", 246 .name = "WM8731",
247 .dai_link = &at91sam9g20ek_dai, 247 .dai_link = &at91sam9g20ek_dai,
248 .num_links = 1, 248 .num_links = 1,
@@ -254,7 +254,7 @@ static struct wm8731_setup_data at91sam9g20ek_wm8731_setup = {
254}; 254};
255 255
256static struct snd_soc_device at91sam9g20ek_snd_devdata = { 256static struct snd_soc_device at91sam9g20ek_snd_devdata = {
257 .machine = &snd_soc_machine_at91sam9g20ek, 257 .card = &snd_soc_at91sam9g20ek,
258 .platform = &atmel_soc_platform, 258 .platform = &atmel_soc_platform,
259 .codec_dev = &soc_codec_dev_wm8731, 259 .codec_dev = &soc_codec_dev_wm8731,
260 .codec_data = &at91sam9g20ek_wm8731_setup, 260 .codec_data = &at91sam9g20ek_wm8731_setup,