* [PATCH] ASoC: omap-twl4030: Use card DAPM context to access widgets
@ 2015-04-27 10:15 Lars-Peter Clausen
2015-05-06 17:54 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Lars-Peter Clausen @ 2015-04-27 10:15 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood
Cc: Peter Ujfalusi, alsa-devel, Lars-Peter Clausen, Jyri Sarha
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(-)
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;
--
1.8.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: omap-twl4030: Use card DAPM context to access widgets
2015-04-27 10:15 [PATCH] ASoC: omap-twl4030: Use card DAPM context to access widgets Lars-Peter Clausen
@ 2015-05-06 17:54 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2015-05-06 17:54 UTC (permalink / raw)
To: Lars-Peter Clausen; +Cc: Peter Ujfalusi, alsa-devel, Liam Girdwood, Jyri Sarha
[-- Attachment #1.1: Type: text/plain, Size: 199 bytes --]
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.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-06 17:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-27 10:15 [PATCH] ASoC: omap-twl4030: Use card DAPM context to access widgets Lars-Peter Clausen
2015-05-06 17:54 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.