diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-04-03 13:04:07 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-04-08 21:10:01 +0100 |
commit | 14e954f5ddc56c0dc9c32fadf188f44f5855e0fa (patch) | |
tree | 1da4a9d1eb43f97b03ca4eff40a7471a7b6b2d48 /sound/soc/tegra | |
parent | c67a443b11d96f35f8514283334c50302253f2b4 (diff) | |
download | op-kernel-dev-14e954f5ddc56c0dc9c32fadf188f44f5855e0fa.zip op-kernel-dev-14e954f5ddc56c0dc9c32fadf188f44f5855e0fa.tar.gz |
ASoC: tegra_wm8903: Use card DAPM context to access widgets
The dapm field of the snd_soc_codec struct will eventually be removed
(replaced with the DAPM context from the component embedded inside the
CODEC). Replace its usage with the card's DAPM context. The idea is that
DAPM is hierarchical and with the card at the root it is possible to access
widgets from other contexts through the card context.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/tegra')
-rw-r--r-- | sound/soc/tegra/tegra_wm8903.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/tegra/tegra_wm8903.c b/sound/soc/tegra/tegra_wm8903.c index 4a95b70..2160400 100644 --- a/sound/soc/tegra/tegra_wm8903.c +++ b/sound/soc/tegra/tegra_wm8903.c @@ -171,7 +171,6 @@ static int tegra_wm8903_init(struct snd_soc_pcm_runtime *rtd) { struct snd_soc_dai *codec_dai = rtd->codec_dai; struct snd_soc_codec *codec = codec_dai->codec; - struct snd_soc_dapm_context *dapm = &codec->dapm; struct snd_soc_card *card = rtd->card; struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); @@ -193,7 +192,7 @@ static int tegra_wm8903_init(struct snd_soc_pcm_runtime *rtd) wm8903_mic_detect(codec, &tegra_wm8903_mic_jack, SND_JACK_MICROPHONE, 0); - snd_soc_dapm_force_enable_pin(dapm, "MICBIAS"); + snd_soc_dapm_force_enable_pin(&card->dapm, "MICBIAS"); return 0; } |