diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-04-27 06:15:02 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-05-06 13:53:58 -0400 |
commit | a9843112b49af71f98c3953625555517f4a748bd (patch) | |
tree | fc97a42e135129b33eed794612b9dd52f20a8083 | |
parent | b787f68c36d49bb1d9236f403813641efa74a031 (diff) |
ASoC: omap-twl4030: Use card DAPM context to access widgets
Use the card DAPM context instead of the CODEC DAPM context since only card
level widgets are accessed here.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/omap/omap-twl4030.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/omap/omap-twl4030.c b/sound/soc/omap/omap-twl4030.c index 3673ada43bfb..743131473056 100644 --- a/sound/soc/omap/omap-twl4030.c +++ b/sound/soc/omap/omap-twl4030.c | |||
@@ -159,9 +159,8 @@ static inline void twl4030_disconnect_pin(struct snd_soc_dapm_context *dapm, | |||
159 | 159 | ||
160 | static int omap_twl4030_init(struct snd_soc_pcm_runtime *rtd) | 160 | static int omap_twl4030_init(struct snd_soc_pcm_runtime *rtd) |
161 | { | 161 | { |
162 | struct snd_soc_codec *codec = rtd->codec; | ||
163 | struct snd_soc_card *card = rtd->card; | 162 | struct snd_soc_card *card = rtd->card; |
164 | struct snd_soc_dapm_context *dapm = &codec->dapm; | 163 | struct snd_soc_dapm_context *dapm = &card->dapm; |
165 | struct omap_tw4030_pdata *pdata = dev_get_platdata(card->dev); | 164 | struct omap_tw4030_pdata *pdata = dev_get_platdata(card->dev); |
166 | struct omap_twl4030 *priv = snd_soc_card_get_drvdata(card); | 165 | struct omap_twl4030 *priv = snd_soc_card_get_drvdata(card); |
167 | int ret = 0; | 166 | int ret = 0; |