From: Takashi Iwai Date: Wed, 14 Apr 2010 12:33:57 +0000 (+0200) Subject: ALSA: hda - Fix control element allocations in VIA codec parser X-Git-Tag: v2.6.34~54^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b331439dfd41dc813b3557ca5927a3a644f35792;p=platform%2Fupstream%2Fkernel-adaptation-pc.git ALSA: hda - Fix control element allocations in VIA codec parser 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 --- diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index 9ddc373..be12954 100644 --- 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)