Skip to content

Commit e01bf50

Browse files
tiwaiperexg
authored andcommitted
ALSA: hda - Fix ALC269 capture source
ALC269 capture source wasn't properly set up. It's an independent MUX (0x23), not a source of ADC. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
1 parent 5503600 commit e01bf50

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎sound/pci/hda/patch_realtek.c‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11042,6 +11042,14 @@ static hda_nid_t alc269_adc_nids[1] = {
1104211042
0x08,
1104311043
};
1104411044

11045+
static hda_nid_t alc269_capsrc_nids[1] = {
11046+
0x23,
11047+
};
11048+
11049+
/* NOTE: ADC2 (0x07) is connected from a recording *MIXER* (0x24),
11050+
* not a mux!
11051+
*/
11052+
1104511053
static struct hda_input_mux alc269_eeepc_dmic_capture_source = {
1104611054
.num_items = 2,
1104711055
.items = {
@@ -11424,6 +11432,10 @@ static int alc269_parse_auto_config(struct hda_codec *codec)
1142411432
spec->init_verbs[spec->num_init_verbs++] = alc269_init_verbs;
1142511433
spec->num_mux_defs = 1;
1142611434
spec->input_mux = &spec->private_imux;
11435+
/* set default input source */
11436+
snd_hda_codec_write_cache(codec, alc269_capsrc_nids[0],
11437+
0, AC_VERB_SET_CONNECT_SEL,
11438+
spec->input_mux->items[0].index);
1142711439

1142811440
err = alc_auto_add_mic_boost(codec);
1142911441
if (err < 0)
@@ -11556,6 +11568,7 @@ static int patch_alc269(struct hda_codec *codec)
1155611568

1155711569
spec->adc_nids = alc269_adc_nids;
1155811570
spec->num_adc_nids = ARRAY_SIZE(alc269_adc_nids);
11571+
spec->capsrc_nids = alc269_capsrc_nids;
1155911572

1156011573
codec->patch_ops = alc_patch_ops;
1156111574
if (board_config == ALC269_AUTO)

0 commit comments

Comments
 (0)