diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-11-15 10:16:32 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:29:25 -0500 |
commit | 498ade1a133dffd0f3ee90952737045d56e6689a (patch) | |
tree | 2ab70ccf64f0aa1d615d026a56705a77ca0eb305 /sound/aoa/fabrics | |
parent | 02ff1324930675599694bb1285afc4341f98a7a1 (diff) |
[ALSA] aoa - Check value range in ctl callbacks
Check the value ranges in ctl put callbacks properly in aoa drivers.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/aoa/fabrics')
-rw-r--r-- | sound/aoa/fabrics/snd-aoa-fabric-layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/aoa/fabrics/snd-aoa-fabric-layout.c b/sound/aoa/fabrics/snd-aoa-fabric-layout.c index 8b2ba99d7f8a..dea7abb082cd 100644 --- a/sound/aoa/fabrics/snd-aoa-fabric-layout.c +++ b/sound/aoa/fabrics/snd-aoa-fabric-layout.c | |||
@@ -600,7 +600,7 @@ static int n##_control_put(struct snd_kcontrol *kcontrol, \ | |||
600 | struct gpio_runtime *gpio = snd_kcontrol_chip(kcontrol); \ | 600 | struct gpio_runtime *gpio = snd_kcontrol_chip(kcontrol); \ |
601 | if (gpio->methods && gpio->methods->get_##n) \ | 601 | if (gpio->methods && gpio->methods->get_##n) \ |
602 | gpio->methods->set_##n(gpio, \ | 602 | gpio->methods->set_##n(gpio, \ |
603 | ucontrol->value.integer.value[0]); \ | 603 | !!ucontrol->value.integer.value[0]); \ |
604 | return 1; \ | 604 | return 1; \ |
605 | } \ | 605 | } \ |
606 | static struct snd_kcontrol_new n##_ctl = { \ | 606 | static struct snd_kcontrol_new n##_ctl = { \ |