X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=sound%2Fsparc%2Famd7930.c;h=0c63e0585b15eed7d819dc55531db1d321865830;hb=e1a9c9872dd004617555dff079b357a6ffd945e9;hp=07962a35f2412f8461681835fcf6c12b7244bfc3;hpb=b643b0fdbc59cf6bbb086974b29d2571e9e9f646;p=linux-2.6 diff --git a/sound/sparc/amd7930.c b/sound/sparc/amd7930.c index 07962a35f2..0c63e0585b 100644 --- a/sound/sparc/amd7930.c +++ b/sound/sparc/amd7930.c @@ -36,7 +36,6 @@ #include #include -#include #include #include #include @@ -859,7 +858,7 @@ static int snd_amd7930_put_volume(struct snd_kcontrol *kctl, struct snd_ctl_elem spin_lock_irqsave(&amd->lock, flags); if (*swval != ucontrol->value.integer.value[0]) { - *swval = ucontrol->value.integer.value[0]; + *swval = ucontrol->value.integer.value[0] & 0xff; __amd7930_update_map(amd); change = 1; } else