All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] ALSA: VIA HDA: Fix Smart5.1 isn't useful for 6 audio jacks motherboard
@ 2011-04-27  9:44 lydiawang
  2011-04-27 10:17 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: lydiawang @ 2011-04-27  9:44 UTC (permalink / raw)
  To: alsa-devel; +Cc: tiwai, superquad.vortex2, haraldwelte, lydiawang

From: Lydia Wang <lydiawang@viatech.com.cn>
Subject: ALSA: VIA HDA: Fix Smart5.1 isn't  useful for 6 audio jacks motherboard.

For some motherboards with 5 or 6 audio jacks which had six or eight multiple
channels output, smart5.1 item is no useful and should be removed.

Signed-off-by: Lydia Wang <lydiawang@viatech.com.cn>
Index: sound-2.6/sound/pci/hda/patch_via.c
===================================================================
--- sound-2.6.orig/sound/pci/hda/patch_via.c    2011-04-27 16:48:03.000000000 +0800
+++ sound-2.6/sound/pci/hda/patch_via.c    2011-04-27 17:01:22.000000000 +0800
@@ -1021,6 +1021,10 @@
     hda_nid_t nid;
     int i;
 
+    if (!cfg)
+        return 0;
+    if (cfg->line_outs > 2)
+        return 0;
     knew = via_clone_control(spec, &via_smart51_mixer[0]);
     if (knew == NULL)
         return -ENOMEM;

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

end of thread, other threads:[~2011-04-27 10:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-27  9:44 [PATCH 1/1] ALSA: VIA HDA: Fix Smart5.1 isn't useful for 6 audio jacks motherboard lydiawang
2011-04-27 10:17 ` Takashi Iwai

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.