diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-11-15 09:58:13 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:29:24 -0500 |
commit | 4e98d6a7ce934b19bffb309f2522b22384355fef (patch) | |
tree | 8613aee414a855314663de2575f2bee284c8430c /sound/pci/rme9652 | |
parent | ab2dac2bdcf562dd616bd1fadddf5078ae7c3d83 (diff) |
[ALSA] pci - check value range in ctl callbacks
Check the value ranges in ctl put callbacks properly in the rest of
PCI drivers.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/rme9652')
-rw-r--r-- | sound/pci/rme9652/hdsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/rme9652/hdsp.c b/sound/pci/rme9652/hdsp.c index 5aa57aef1fa7..7956b24eaf34 100644 --- a/sound/pci/rme9652/hdsp.c +++ b/sound/pci/rme9652/hdsp.c | |||
@@ -2119,7 +2119,7 @@ static int snd_hdsp_put_clock_source_lock(struct snd_kcontrol *kcontrol, struct | |||
2119 | 2119 | ||
2120 | change = (int)ucontrol->value.integer.value[0] != hdsp->clock_source_locked; | 2120 | change = (int)ucontrol->value.integer.value[0] != hdsp->clock_source_locked; |
2121 | if (change) | 2121 | if (change) |
2122 | hdsp->clock_source_locked = ucontrol->value.integer.value[0]; | 2122 | hdsp->clock_source_locked = !!ucontrol->value.integer.value[0]; |
2123 | return change; | 2123 | return change; |
2124 | } | 2124 | } |
2125 | 2125 | ||