diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-11-18 15:50:34 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-11-21 09:02:01 -0500 |
commit | 875065491fba8eb13219f16c36e79a6fb4e15c68 (patch) | |
tree | b95327a466e6b79cb5d8a1d9be0f33697dd05db8 /sound/soc/omap/n810.c | |
parent | 9b0db7e7fd20d5a38844e9435f7d4246ea44978a (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/omap/n810.c')
-rw-r--r-- | sound/soc/omap/n810.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/omap/n810.c b/sound/soc/omap/n810.c index fae3ad36e0bf..d216b4f9e14e 100644 --- a/sound/soc/omap/n810.c +++ b/sound/soc/omap/n810.c | |||
@@ -282,7 +282,7 @@ static struct snd_soc_dai_link n810_dai = { | |||
282 | }; | 282 | }; |
283 | 283 | ||
284 | /* Audio machine driver */ | 284 | /* Audio machine driver */ |
285 | static struct snd_soc_machine snd_soc_machine_n810 = { | 285 | static struct snd_soc_card snd_soc_n810 = { |
286 | .name = "N810", | 286 | .name = "N810", |
287 | .dai_link = &n810_dai, | 287 | .dai_link = &n810_dai, |
288 | .num_links = 1, | 288 | .num_links = 1, |
@@ -298,7 +298,7 @@ static struct aic3x_setup_data n810_aic33_setup = { | |||
298 | 298 | ||
299 | /* Audio subsystem */ | 299 | /* Audio subsystem */ |
300 | static struct snd_soc_device n810_snd_devdata = { | 300 | static struct snd_soc_device n810_snd_devdata = { |
301 | .machine = &snd_soc_machine_n810, | 301 | .card = &snd_soc_n810, |
302 | .platform = &omap_soc_platform, | 302 | .platform = &omap_soc_platform, |
303 | .codec_dev = &soc_codec_dev_aic3x, | 303 | .codec_dev = &soc_codec_dev_aic3x, |
304 | .codec_data = &n810_aic33_setup, | 304 | .codec_data = &n810_aic33_setup, |