You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[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>
This commit is contained in:
committed by
Jaroslav Kysela
parent
d05ab185b7
commit
d4079ac49a
+1
-1
@@ -1028,7 +1028,7 @@ static int pmac_auto_mute_put(struct snd_kcontrol *kcontrol,
|
||||
{
|
||||
struct snd_pmac *chip = snd_kcontrol_chip(kcontrol);
|
||||
if (ucontrol->value.integer.value[0] != chip->auto_mute) {
|
||||
chip->auto_mute = ucontrol->value.integer.value[0];
|
||||
chip->auto_mute = !!ucontrol->value.integer.value[0];
|
||||
if (chip->update_automute)
|
||||
chip->update_automute(chip, 1);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user