projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff818c2
)
ALSA: hda - Fix control element allocations in VIA codec parser
author
Takashi Iwai
<tiwai@suse.de>
Wed, 14 Apr 2010 12:33:57 +0000
(14:33 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 14 Apr 2010 12:35:11 +0000
(14:35 +0200)
The commit
5b0cb1d850c26893b1468b3a519433a1b7a176be
ALSA: hda - add more NID->Control mapping
breaks the control element allocation by returning a wrong value.
Let's fix it.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_via.c
patch
|
blob
|
history
diff --git
a/sound/pci/hda/patch_via.c
b/sound/pci/hda/patch_via.c
index 9ddc37300f6b5cd88420ff885823e486e0cd3dd5..be1295438989c14a6f24a112aa049ea914c0790d 100644
(file)
--- a/
sound/pci/hda/patch_via.c
+++ b/
sound/pci/hda/patch_via.c
@@
-476,7
+476,7
@@
static struct snd_kcontrol_new *via_clone_control(struct via_spec *spec,
knew->name = kstrdup(tmpl->name, GFP_KERNEL);
if (!knew->name)
return NULL;
- return
0
;
+ return
knew
;
}
static void via_free_kctls(struct hda_codec *codec)