From: Takashi Iwai Date: Mon, 20 Sep 2010 13:09:03 +0000 (+0200) Subject: ALSA: hda - Fix capture widget for ALC269vb and co X-Git-Tag: 2.1b_release~6207^2~35^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f3550d1b052a8acf4159b407dbdd1def47f223f9;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git ALSA: hda - Fix capture widget for ALC269vb and co 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 --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 9bcf34e..4abe3da 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -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;