aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dapm.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/soc-dapm.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/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 0fecbb44726b..61d7d85aa578 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -1402,11 +1402,11 @@ int snd_soc_dapm_set_bias_level(struct snd_soc_device *socdev,
1402 enum snd_soc_bias_level level) 1402 enum snd_soc_bias_level level)
1403{ 1403{
1404 struct snd_soc_codec *codec = socdev->codec; 1404 struct snd_soc_codec *codec = socdev->codec;
1405 struct snd_soc_machine *machine = socdev->machine; 1405 struct snd_soc_card *card = socdev->card;
1406 int ret = 0; 1406 int ret = 0;
1407 1407
1408 if (machine->set_bias_level) 1408 if (card->set_bias_level)
1409 ret = machine->set_bias_level(machine, level); 1409 ret = card->set_bias_level(card, level);
1410 if (ret == 0 && codec->set_bias_level) 1410 if (ret == 0 && codec->set_bias_level)
1411 ret = codec->set_bias_level(codec, level); 1411 ret = codec->set_bias_level(codec, level);
1412 1412