From a50b3888327c4a2aff4214972ef156b9e1cd50ae Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 21 Aug 2008 16:25:07 +0200 Subject: [PATCH] --- yaml --- r: 110927 b: refs/heads/master c: e01bf5091f044011823aefa1882eb3fba0434918 h: refs/heads/master i: 110925: 200439fdb11d64e3f7b42958b25ea622e079d31c 110923: f7e18bca904b8ab807541b588ff2341c432c5f80 110919: d22865919f8cf53b4342926f098187526f393472 110911: aeab399f9099428afa66b47aec23ab1425809115 v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/patch_realtek.c | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 1dbc4b957c2d..85b377e6e93d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5503600a1c5c2c11e14ff428b5d07a1018927bd6 +refs/heads/master: e01bf5091f044011823aefa1882eb3fba0434918 diff --git a/trunk/sound/pci/hda/patch_realtek.c b/trunk/sound/pci/hda/patch_realtek.c index 9cb6b73ef95a..f2049365e23c 100644 --- a/trunk/sound/pci/hda/patch_realtek.c +++ b/trunk/sound/pci/hda/patch_realtek.c @@ -11042,6 +11042,14 @@ static hda_nid_t alc269_adc_nids[1] = { 0x08, }; +static hda_nid_t alc269_capsrc_nids[1] = { + 0x23, +}; + +/* NOTE: ADC2 (0x07) is connected from a recording *MIXER* (0x24), + * not a mux! + */ + static struct hda_input_mux alc269_eeepc_dmic_capture_source = { .num_items = 2, .items = { @@ -11424,6 +11432,10 @@ static int alc269_parse_auto_config(struct hda_codec *codec) spec->init_verbs[spec->num_init_verbs++] = alc269_init_verbs; spec->num_mux_defs = 1; spec->input_mux = &spec->private_imux; + /* set default input source */ + snd_hda_codec_write_cache(codec, alc269_capsrc_nids[0], + 0, AC_VERB_SET_CONNECT_SEL, + spec->input_mux->items[0].index); err = alc_auto_add_mic_boost(codec); if (err < 0) @@ -11556,6 +11568,7 @@ static int patch_alc269(struct hda_codec *codec) spec->adc_nids = alc269_adc_nids; spec->num_adc_nids = ARRAY_SIZE(alc269_adc_nids); + spec->capsrc_nids = alc269_capsrc_nids; codec->patch_ops = alc_patch_ops; if (board_config == ALC269_AUTO)