Skip to contentSkip to conversation

ASoC: omap-twl4030: Use card DAPM context to access widgets

PATCH Applied Lars-Peter Clausen 2 participants 2 messages Apr 27, 2015 – May 6, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 sound/soc/omap/omap-twl4030.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/omap/omap-twl4030.c +1 -2
index 3673ada..7431314 100644
@@ -159,9 +159,8 @@ static inline void twl4030_disconnect_pin(struct snd_soc_dapm_context *dapm,
 
 static int omap_twl4030_init(struct snd_soc_pcm_runtime *rtd)
 {
-	struct snd_soc_codec *codec = rtd->codec;
 	struct snd_soc_card *card = rtd->card;
-	struct snd_soc_dapm_context *dapm = &codec->dapm;
+	struct snd_soc_dapm_context *dapm = &card->dapm;
 	struct omap_tw4030_pdata *pdata = dev_get_platdata(card->dev);
 	struct omap_twl4030 *priv = snd_soc_card_get_drvdata(card);
 	int ret = 0;
Signature · 1 line
1.8.0
maintainer Applied
#1 lore raw
Quoted 2 lines · Lars-Peter Clausen

Use the card DAPM context instead of the CODEC DAPM context since only card level widgets are accessed here.

Applied, thanks.