All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] ASoC: 88pm860x: Replace w->codec snd_soc_dapm_to_codec(w->dapm)
@ 2015-01-10 14:44 Lars-Peter Clausen
  2015-01-10 14:44 ` [PATCH 2/5] ASoC: ak4671: " Lars-Peter Clausen
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Lars-Peter Clausen @ 2015-01-10 14:44 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood
  Cc: Fabio Estevam, Vinod Koul, alsa-devel, Lars-Peter Clausen,
	Support Opensource

The codec field of the snd_soc_widget struct is eventually going to be
removed, use snd_soc_dapm_to_codec(w->dapm) instead.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 sound/soc/codecs/88pm860x-codec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/88pm860x-codec.c b/sound/soc/codecs/88pm860x-codec.c
index a2bf27f..a0f2653 100644
--- a/sound/soc/codecs/88pm860x-codec.c
+++ b/sound/soc/codecs/88pm860x-codec.c
@@ -386,7 +386,7 @@ static int snd_soc_put_volsw_2r_out(struct snd_kcontrol *kcontrol,
 static int pm860x_rsync_event(struct snd_soc_dapm_widget *w,
 			      struct snd_kcontrol *kcontrol, int event)
 {
-	struct snd_soc_codec *codec = w->codec;
+	struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
 
 	/*
 	 * In order to avoid current on the load, mute power-on and power-off
@@ -403,7 +403,7 @@ static int pm860x_rsync_event(struct snd_soc_dapm_widget *w,
 static int pm860x_dac_event(struct snd_soc_dapm_widget *w,
 			    struct snd_kcontrol *kcontrol, int event)
 {
-	struct snd_soc_codec *codec = w->codec;
+	struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
 	unsigned int dac = 0;
 	int data;
 
-- 
1.8.0

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

end of thread, other threads:[~2015-01-14 19:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-10 14:44 [PATCH 1/5] ASoC: 88pm860x: Replace w->codec snd_soc_dapm_to_codec(w->dapm) Lars-Peter Clausen
2015-01-10 14:44 ` [PATCH 2/5] ASoC: ak4671: " Lars-Peter Clausen
2015-01-10 14:44 ` [PATCH 3/5] ASoC: da732x: " Lars-Peter Clausen
2015-01-13 15:39   ` Opensource [Adam Thomson]
2015-01-10 14:44 ` [PATCH 4/5] ASoC: sgtl5000: " Lars-Peter Clausen
2015-01-10 14:44 ` [PATCH 5/5] ASoC: sn95031: " Lars-Peter Clausen
2015-01-13 15:14   ` Vinod Koul
2015-01-14 19:51 ` [PATCH 1/5] ASoC: 88pm860x: " 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.