All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: hda - Fix wrong detection of "Headphone+LO" or "Speaker+LO"
@ 2015-03-03 11:22 Ingo Brückl
  2015-03-03 13:24 ` David Henningsson
  2015-03-03 15:18 ` Raymond Yau
  0 siblings, 2 replies; 7+ messages in thread
From: Ingo Brückl @ 2015-03-03 11:22 UTC (permalink / raw)
  To: alsa-devel; +Cc: tiwai, superquad.vortex2, david.henningsson

Add the constraint mentioned in the comment.

It does not apply to a scenario with three DACs and multi-IO where we
would normally get a "Master Playback Volume" and a "Front Playback
Volume" (prevented without checking for num_dacs).

Signed-off-by: Ingo Brückl <ib@wupperonline.de>

diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c
index ecee349..4c8910c 100644
--- a/sound/pci/hda/hda_generic.c
+++ b/sound/pci/hda/hda_generic.c
@@ -1097,7 +1097,7 @@ static const char *get_line_out_pfx(struct hda_codec *codec, int ch,
 	case AUTO_PIN_LINE_OUT:
 		/* This deals with the case where we have two DACs and
 		 * one LO, one HP and one Speaker */
-		if (!ch && cfg->speaker_outs && cfg->hp_outs) {
+		if (!ch && spec->multiout.num_dacs == 2 && cfg->speaker_outs && cfg->hp_outs) {
 			bool hp_lo_shared = !path_has_mixer(codec, spec->hp_paths[0], ctl_type);
 			bool spk_lo_shared = !path_has_mixer(codec, spec->speaker_paths[0], ctl_type);
 			if (hp_lo_shared && spk_lo_shared)
--
1.7.10

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-03-05 11:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-03 11:22 [PATCH] ALSA: hda - Fix wrong detection of "Headphone+LO" or "Speaker+LO" Ingo Brückl
2015-03-03 13:24 ` David Henningsson
2015-03-03 15:04   ` Ingo Brückl
2015-03-03 16:02     ` David Henningsson
2015-03-05 10:06       ` Ingo Brückl
2015-03-05 11:43         ` Raymond Yau
2015-03-03 15:18 ` Raymond Yau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.