From: Takashi Iwai Date: Thu, 19 Oct 2006 15:38:31 +0000 (+0200) Subject: [ALSA] Fix addition of user-defined boolean controls X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ef35be7f52669cc00c780fa5a640abf0580d1ecf;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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 6973a9686b67..48ef0a09a7a7 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)