diff options
author | Takashi Iwai <tiwai@suse.de> | 2006-10-19 17:38:31 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-10-22 10:51:15 +0200 |
commit | ef35be7f52669cc00c780fa5a640abf0580d1ecf (patch) | |
tree | b60b6a92f39839f1dfe5f3905be6d640319dba84 /sound/core/control.c | |
parent | da43deb116c0cea9ca2174f2ac64985c4d53077e (diff) | |
download | kernel_samsung_espresso10-ef35be7f52669cc00c780fa5a640abf0580d1ecf.zip kernel_samsung_espresso10-ef35be7f52669cc00c780fa5a640abf0580d1ecf.tar.gz kernel_samsung_espresso10-ef35be7f52669cc00c780fa5a640abf0580d1ecf.tar.bz2 |
[ALSA] Fix addition of user-defined boolean controls
Fixed the addition of user-defined boolean controls, the private
data size is corrected to be handled properly.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/core/control.c')
-rw-r--r-- | sound/core/control.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/core/control.c b/sound/core/control.c index 6973a96..48ef0a0 100644 --- a/sound/core/control.c +++ b/sound/core/control.c @@ -1018,10 +1018,6 @@ static int snd_ctl_elem_add(struct snd_ctl_file *file, } switch (info->type) { case SNDRV_CTL_ELEM_TYPE_BOOLEAN: - private_size = sizeof(char); - if (info->count > 128) - return -EINVAL; - break; case SNDRV_CTL_ELEM_TYPE_INTEGER: private_size = sizeof(long); if (info->count > 128) |