From: Takashi Iwai Date: Thu, 19 Oct 2006 15:38:31 +0000 (+0200) Subject: [ALSA] Fix addition of user-defined boolean controls X-Git-Tag: v2.6.19-rc3~4^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef35be7f52669cc00c780fa5a640abf0580d1ecf;p=profile%2Fivi%2Fkernel-x86-ivi.git [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 Signed-off-by: Jaroslav Kysela --- 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)