]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ALSA: hda - Fix capture widget for ALC269vb and co
authorTakashi Iwai <tiwai@suse.de>
Mon, 20 Sep 2010 13:09:03 +0000 (15:09 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 20 Sep 2010 13:36:03 +0000 (15:36 +0200)
ALC269vb and other variants don't use the widgets 0x24 but prefer the
widget 0x22 instead.  We need to fix the input parser.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index 9bcf34eab679a4eb85bd6eb8c71d9649d508750b..4abe3da1240c7763d79d878518a8b6d7bc25c270 100644 (file)
@@ -14593,7 +14593,11 @@ static int alc269_parse_auto_config(struct hda_codec *codec)
        err = alc269_auto_create_multi_out_ctls(spec, &spec->autocfg);
        if (err < 0)
                return err;
-       err = alc269_auto_create_input_ctls(codec, &spec->autocfg);
+       if (spec->codec_variant == ALC269_TYPE_NORMAL)
+               err = alc269_auto_create_input_ctls(codec, &spec->autocfg);
+       else
+               err = alc_auto_create_input_ctls(codec, &spec->autocfg, 0,
+                                                0x22, 0);
        if (err < 0)
                return err;