projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da43deb
)
[ALSA] Fix addition of user-defined boolean controls
author
Takashi Iwai
<tiwai@suse.de>
Thu, 19 Oct 2006 15:38:31 +0000
(17:38 +0200)
committer
Jaroslav Kysela
<perex@suse.cz>
Sun, 22 Oct 2006 08:51:15 +0000
(10:51 +0200)
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>
sound/core/control.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/core/control.c
b/sound/core/control.c
index 6973a9686b679c6f3fc7a5415a1795ce043e6a76..48ef0a09a7a71ad964aac00a79404945e6102d22 100644
(file)
--- 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)