aboutsummaryrefslogtreecommitdiffstats
path: root/sound/ppc/pmac.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-11-15 10:14:12 -0500
committerJaroslav Kysela <perex@perex.cz>2008-01-31 11:29:25 -0500
commitd4079ac49a08e36d6839a9ceb26aec8c24c9ed82 (patch)
tree91ebc493375fd4e7fa84c3a6ab67a885121b1c81 /sound/ppc/pmac.c
parentd05ab185b770de96399766be6bcb5769ab99bc09 (diff)
[ALSA] powermac - Check value range in ctl callbacks
Check the value ranges in ctl put callbacks properly in snd-powermac driver. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/ppc/pmac.c')
-rw-r--r--sound/ppc/pmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/ppc/pmac.c b/sound/ppc/pmac.c
index 4f9b19c90a43..8c47bebc77c8 100644
--- a/sound/ppc/pmac.c
+++ b/sound/ppc/pmac.c
@@ -1028,7 +1028,7 @@ static int pmac_auto_mute_put(struct snd_kcontrol *kcontrol,
1028{ 1028{
1029 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); 1029 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol);
1030 if (ucontrol->value.integer.value[0] != chip->auto_mute) { 1030 if (ucontrol->value.integer.value[0] != chip->auto_mute) {
1031 chip->auto_mute = ucontrol->value.integer.value[0]; 1031 chip->auto_mute = !!ucontrol->value.integer.value[0];
1032 if (chip->update_automute) 1032 if (chip->update_automute)
1033 chip->update_automute(chip, 1); 1033 chip->update_automute(chip, 1);
1034 return 1; 1034 return 1;