diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-11-15 10:17:24 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:29:25 -0500 |
commit | 3b892467786410f26dffc2c7bccd3ea445604037 (patch) | |
tree | 4a70f86b1545e9be95d987fc248cac3cebbbd9a8 /sound/sparc/amd7930.c | |
parent | 498ade1a133dffd0f3ee90952737045d56e6689a (diff) |
[ALSA] Check value range in ctl callbacks
Check the value ranges in ctl put callbacks properly (in the rest drivers).
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/sparc/amd7930.c')
-rw-r--r-- | sound/sparc/amd7930.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/sparc/amd7930.c b/sound/sparc/amd7930.c index 07962a35f241..b1d431587158 100644 --- a/sound/sparc/amd7930.c +++ b/sound/sparc/amd7930.c | |||
@@ -859,7 +859,7 @@ static int snd_amd7930_put_volume(struct snd_kcontrol *kctl, struct snd_ctl_elem | |||
859 | spin_lock_irqsave(&amd->lock, flags); | 859 | spin_lock_irqsave(&amd->lock, flags); |
860 | 860 | ||
861 | if (*swval != ucontrol->value.integer.value[0]) { | 861 | if (*swval != ucontrol->value.integer.value[0]) { |
862 | *swval = ucontrol->value.integer.value[0]; | 862 | *swval = ucontrol->value.integer.value[0] & 0xff; |
863 | __amd7930_update_map(amd); | 863 | __amd7930_update_map(amd); |
864 | change = 1; | 864 | change = 1; |
865 | } else | 865 | } else |