[ALSA] ca0106 - Check value range in ctl callbacks
authorTakashi Iwai <tiwai@suse.de>
Thu, 15 Nov 2007 13:42:34 +0000 (14:42 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 19 Nov 2007 17:41:30 +0000 (18:41 +0100)
commit5fe619f983d6c7c0a578fcaabf80edd30e7ce46c
tree58b1737a4ae7db6ba93288fd9cc1775d8945e7c0
parent7eba5c9dc3735b14e3df7366671adc15e0c8a048
[ALSA] ca0106 - Check value range in ctl callbacks

Check the value ranges in ctl put callbacks properly.
Some callbacks may access a wrong pointer depending on the value passed.
Also, fixed the access to the wrong field for enum values, and fixed
some callbacks to return the proper error code.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/pci/ca0106/ca0106_mixer.c