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: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2013-01-04 15:00:02 +01:00
parent e22aab7dcf
commit 05453b7e97
1 changed files with 1 additions and 1 deletions

View File

@ -1368,7 +1368,7 @@ static int create_multi_out_ctls(struct hda_codec *codec,
if (!dac)
continue;
if (i >= cfg->line_outs) {
pin = spec->multi_io[i - 1].pin;
pin = spec->multi_io[i - cfg->line_outs].pin;
index = 0;
name = channel_name[i];
} else {