All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: n810: Consistently pass the card DAPM context to n810_ext_control()
@ 2015-04-11  8:47 Lars-Peter Clausen
  2015-04-11  8:47 ` [PATCH 2/2] ASoC: n810: Automatically disconnect non-connected pins Lars-Peter Clausen
  2015-04-12 11:45 ` [PATCH 1/2] ASoC: n810: Consistently pass the card DAPM context to n810_ext_control() Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Lars-Peter Clausen @ 2015-04-11  8:47 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood
  Cc: Peter Ujfalusi, alsa-devel, Lars-Peter Clausen, Jarkko Nikula

Some callers of n810_ext_control() pass the card DAPM context and some pass
the CODEC DAPM context. Given that some of the widgets that are accessed in
the function are in the card's context, always passing it is the obvious
choice.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 sound/soc/omap/n810.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/omap/n810.c b/sound/soc/omap/n810.c
index 5d7f9ce..617eae3 100644
--- a/sound/soc/omap/n810.c
+++ b/sound/soc/omap/n810.c
@@ -98,12 +98,11 @@ static int n810_startup(struct snd_pcm_substream *substream)
 {
 	struct snd_pcm_runtime *runtime = substream->runtime;
 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
-	struct snd_soc_codec *codec = rtd->codec;
 
 	snd_pcm_hw_constraint_minmax(runtime,
 				     SNDRV_PCM_HW_PARAM_CHANNELS, 2, 2);
 
-	n810_ext_control(&codec->dapm);
+	n810_ext_control(&rtd->card->dapm);
 	return clk_prepare_enable(sys_clkout2);
 }
 
-- 
1.8.0

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

end of thread, other threads:[~2015-04-12 11:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-11  8:47 [PATCH 1/2] ASoC: n810: Consistently pass the card DAPM context to n810_ext_control() Lars-Peter Clausen
2015-04-11  8:47 ` [PATCH 2/2] ASoC: n810: Automatically disconnect non-connected pins Lars-Peter Clausen
2015-04-12  8:52   ` Jarkko Nikula
2015-04-12 11:45 ` [PATCH 1/2] ASoC: n810: Consistently pass the card DAPM context to n810_ext_control() 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.