Commit 05453b7e authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Fix multi-io pin assignment in create_multi_out_ctls()

The multi-io pins are calculated with a blind assumption of
cfg->line_outs = 1.  This isn't always true.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e22aab7d
...@@ -1368,7 +1368,7 @@ static int create_multi_out_ctls(struct hda_codec *codec, ...@@ -1368,7 +1368,7 @@ static int create_multi_out_ctls(struct hda_codec *codec,
if (!dac) if (!dac)
continue; continue;
if (i >= cfg->line_outs) { if (i >= cfg->line_outs) {
pin = spec->multi_io[i - 1].pin; pin = spec->multi_io[i - cfg->line_outs].pin;
index = 0; index = 0;
name = channel_name[i]; name = channel_name[i];
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment