Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b90bf1de authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda/realtek - Avoid multi-ios conflicting with multi-speakers



When a machine has multiple speakers, we don't need to create the
controls for multi-ios.  Check the number of primary outputs beforehand.

Note that this workaround might not work always with new codecs in
future; this assumes that both speakers and multi-io jacks share the
same mixers/DACs.  If they are routed with different mixers, the
individual mixer controls should be needed.  But, so far, this doesn't
happen with the existing ALC codecs.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f0e48b6b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3233,7 +3233,7 @@ static int alc_auto_create_multi_out_ctls(struct hda_codec *codec,
	int i, err, noutputs;
	int i, err, noutputs;


	noutputs = cfg->line_outs;
	noutputs = cfg->line_outs;
	if (spec->multi_ios > 0)
	if (spec->multi_ios > 0 && cfg->line_outs < 3)
		noutputs += spec->multi_ios;
		noutputs += spec->multi_ios;


	for (i = 0; i < noutputs; i++) {
	for (i = 0; i < noutputs; i++) {