[alsa-devel] [PATCH 2/2] ASoC: Fix WM9712 mixer_event DAPM widget function type

Jarkko Nikula jarkko.nikula at nokia.com
Thu Feb 28 10:53:10 CET 2008

Add kcontrol argument to function since the API was changed by the commit

Signed-off-by: Jarkko Nikula <jarkko.nikula at nokia.com>
 sound/soc/codecs/wm9712.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c
index 590baea..524f745 100644
--- a/sound/soc/codecs/wm9712.c
+++ b/sound/soc/codecs/wm9712.c
@@ -176,7 +176,8 @@ static int wm9712_add_controls(struct snd_soc_codec *codec)
  * the codec only has a single control that is shared by both channels.
  * This makes it impossible to determine the audio path.
-static int mixer_event (struct snd_soc_dapm_widget *w, int event)
+static int mixer_event(struct snd_soc_dapm_widget *w,
+	struct snd_kcontrol *k, int event)
 	u16 l, r, beep, line, phone, mic, pcm, aux;

More information about the Alsa-devel mailing list