All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] ASoC: lowland: Use card DAPM context to access widgets
@ 2015-05-03 17:27 Lars-Peter Clausen
  2015-05-03 17:27 ` [PATCH 2/5] ASoC: smdk_wm8994: " Lars-Peter Clausen
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Lars-Peter Clausen @ 2015-05-03 17:27 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood
  Cc: Sangbeom Kim, Charles Keepax, patches, alsa-devel, Lars-Peter Clausen

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>
---
 sound/soc/samsung/lowland.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/samsung/lowland.c b/sound/soc/samsung/lowland.c
index 5f15609..0d0f582 100644
--- a/sound/soc/samsung/lowland.c
+++ b/sound/soc/samsung/lowland.c
@@ -72,7 +72,7 @@ static int lowland_wm9081_init(struct snd_soc_pcm_runtime *rtd)
 {
 	struct snd_soc_codec *codec = rtd->codec;
 
-	snd_soc_dapm_nc_pin(&codec->dapm, "LINEOUT");
+	snd_soc_dapm_nc_pin(&rtd->card->dapm, "LINEOUT");
 
 	/* At any time the WM9081 is active it will have this clock */
 	return snd_soc_codec_set_sysclk(codec, WM9081_SYSCLK_MCLK, 0,
-- 
1.8.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-05-04 13:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-03 17:27 [PATCH 1/5] ASoC: lowland: Use card DAPM context to access widgets Lars-Peter Clausen
2015-05-03 17:27 ` [PATCH 2/5] ASoC: smdk_wm8994: " Lars-Peter Clausen
2015-05-03 17:27 ` [PATCH 3/5] ASoC: smartq: Remove unnecessary snd_soc_dapm_disable_pin() Lars-Peter Clausen
2015-05-03 17:27 ` [PATCH 4/5] ASoC: smartq: Use card DAPM context to access widgets Lars-Peter Clausen
2015-05-03 17:27 ` [PATCH 5/5] ASoC: speyside: Use snd_soc_codec_get_dapm() Lars-Peter Clausen
2015-05-04  8:07   ` Charles Keepax
2015-05-04  8:07 ` [PATCH 1/5] ASoC: lowland: Use card DAPM context to access widgets Charles Keepax
2015-05-04 11:55 ` 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.