ALSA: VIA HDA: Fix Smart5.1 isn't useful for 6 audio jacks motherboard
PATCH 1/1 ALSA: VIA HDA: Fix Smart5.1 isn't useful for 6 audio jacks motherboard
From: Lydia Wang <[email protected]>
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.
sound/pci/hda/patch_via.c 2011-04-27 17:01:22.000000000 +0800 renamed from sound/pci/hda/patch_via.c 2011-04-27 16:48:03.000000000 +0800 +4 -0
@@ -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;
At Wed, 27 Apr 2011 17:44:16 +0800,
Quoted 8 lines · lydiawang
From: Lydia Wang <[email protected]>
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 <[email protected]>
Applied now. Thanks.
Takashi
Quoted 16 lines
Index:
sound-2.6/sound/pci/hda/patch_via.c
===================================================================sound/pci/hda/patch_via.c 2011-04-27 17:01:22.000000000 +0800 renamed from sound/pci/hda/patch_via.c 2011-04-27 16:48:03.000000000 +0800 +4
-0@@ -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;