diff mbox

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

Message ID 1430129702-16408-1-git-send-email-lars@metafoo.de (mailing list archive)
State Accepted
Commit a9843112b49af71f98c3953625555517f4a748bd
Headers show

Commit Message

Lars-Peter Clausen April 27, 2015, 10:15 a.m. UTC
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>
---
 sound/soc/omap/omap-twl4030.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Mark Brown May 6, 2015, 5:54 p.m. UTC | #1
On Mon, Apr 27, 2015 at 12:15:02PM +0200, Lars-Peter Clausen wrote:
> Use the card DAPM context instead of the CODEC DAPM context since only card
> level widgets are accessed here.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/omap/omap-twl4030.c b/sound/soc/omap/omap-twl4030.c
index 3673ada..7431314 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,
 
 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;