]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ALSA] ASoC: Fix DAPM widget function types in pxa machine drivers
authorJarkko Nikula <jarkko.nikula@nokia.com>
Thu, 28 Feb 2008 11:34:48 +0000 (12:34 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Feb 2008 10:28:17 +0000 (11:28 +0100)
Add kcontrol argument to functions since the API was changed by the commit
9af6d9562414568ecadf96aaef5b88e7e8b19821.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/pxa/corgi.c
sound/soc/pxa/poodle.c
sound/soc/pxa/spitz.c
sound/soc/pxa/tosa.c

index 3f34e531bebf7921d210a05e583c937535095de1..1a70a6ac98ced1a2a9a5830e7a5678df8bea7b36 100644 (file)
@@ -215,7 +215,8 @@ static int corgi_set_spk(struct snd_kcontrol *kcontrol,
        return 1;
 }
 
-static int corgi_amp_event(struct snd_soc_dapm_widget *w, int event)
+static int corgi_amp_event(struct snd_soc_dapm_widget *w,
+       struct snd_kcontrol *k, int event)
 {
        if (SND_SOC_DAPM_EVENT_ON(event))
                set_scoop_gpio(&corgiscoop_device.dev, CORGI_SCP_APM_ON);
@@ -225,7 +226,8 @@ static int corgi_amp_event(struct snd_soc_dapm_widget *w, int event)
        return 0;
 }
 
-static int corgi_mic_event(struct snd_soc_dapm_widget *w, int event)
+static int corgi_mic_event(struct snd_soc_dapm_widget *w,
+       struct snd_kcontrol *k, int event)
 {
        if (SND_SOC_DAPM_EVENT_ON(event))
                set_scoop_gpio(&corgiscoop_device.dev, CORGI_SCP_MIC_BIAS);
index 5ae59bd309a33863d05b3173c7e879df77a6372a..4fbf8bba9627322cd628fb8d21d545ebe608c658 100644 (file)
@@ -196,7 +196,8 @@ static int poodle_set_spk(struct snd_kcontrol *kcontrol,
        return 1;
 }
 
-static int poodle_amp_event(struct snd_soc_dapm_widget *w, int event)
+static int poodle_amp_event(struct snd_soc_dapm_widget *w,
+       struct snd_kcontrol *k, int event)
 {
        if (SND_SOC_DAPM_EVENT_ON(event))
                locomo_gpio_write(&poodle_locomo_device.dev,
index d56709e15435e175cd533f7cd2badd558c3aded8..ecca39033fcceff2ae449cec9c48ab3f17f3061f 100644 (file)
@@ -215,7 +215,8 @@ static int spitz_set_spk(struct snd_kcontrol *kcontrol,
        return 1;
 }
 
-static int spitz_mic_bias(struct snd_soc_dapm_widget *w, int event)
+static int spitz_mic_bias(struct snd_soc_dapm_widget *w,
+       struct snd_kcontrol *k, int event)
 {
        if (machine_is_borzoi() || machine_is_spitz()) {
                if (SND_SOC_DAPM_EVENT_ON(event))
index e4d40b528ca47e6b85017ac52529b34fece23c55..7346d7e5d066e71b84669f0fe6c054e77b003ca1 100644 (file)
@@ -135,7 +135,8 @@ static int tosa_set_spk(struct snd_kcontrol *kcontrol,
 }
 
 /* tosa dapm event handlers */
-static int tosa_hp_event(struct snd_soc_dapm_widget *w, int event)
+static int tosa_hp_event(struct snd_soc_dapm_widget *w,
+       struct snd_kcontrol *k, int event)
 {
        if (SND_SOC_DAPM_EVENT_ON(event))
                set_tc6393_gpio(&tc6393_device.dev,TOSA_TC6393_L_MUTE);