提交 f568291e 编写于 作者: T Takashi Iwai

ALSA: hda/realtek - Fix the wrong offset for two-speaker systems

When the machine has two speakers but wants to put more multi-io
jacks, the parser shouldn't consider about the shared DAC but try to
assign the individual DACs.  Otherwise the channel mapping would be
fairly confused and lead to the wrong DACs.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 689cabf6
...@@ -3353,7 +3353,11 @@ static int fill_and_eval_dacs(struct hda_codec *codec, ...@@ -3353,7 +3353,11 @@ static int fill_and_eval_dacs(struct hda_codec *codec,
} }
if (cfg->hp_outs && cfg->line_out_type == AUTO_PIN_SPEAKER_OUT) { if (cfg->hp_outs && cfg->line_out_type == AUTO_PIN_SPEAKER_OUT) {
/* try multi-ios with HP + inputs */ /* try multi-ios with HP + inputs */
err = alc_auto_fill_multi_ios(codec, cfg->hp_pins[0], false, 1); int offset = 0;
if (cfg->line_outs >= 3)
offset = 1;
err = alc_auto_fill_multi_ios(codec, cfg->hp_pins[0], false,
offset);
if (err < 0) if (err < 0)
return err; return err;
badness += err; badness += err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册