Commit 7d071f21 authored by Jaroslav Kysela's avatar Jaroslav Kysela

[ALSA] Don't set up the front stream twice

HDA Codec driver
Don't set up the front stream twice in the loop.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 53bae303
......@@ -1571,7 +1571,7 @@ int snd_hda_multi_out_analog_prepare(struct hda_codec *codec, struct hda_multi_o
/* headphone out will just decode front left/right (stereo) */
snd_hda_codec_setup_stream(codec, mout->hp_nid, stream_tag, 0, format);
/* surrounds */
for (i = 0; i < mout->num_dacs; i++) {
for (i = 1; i < mout->num_dacs; i++) {
if (i == HDA_REAR && chs == 2) /* copy front to rear */
snd_hda_codec_setup_stream(codec, nids[i], stream_tag, 0, format);
else if (chs >= (i + 1) * 2) /* independent out */
......
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