diff options
author | Lydia Wang <lydiawang@viatech.com.cn> | 2011-04-27 05:44:16 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-04-27 05:55:23 -0400 |
commit | cb34c207af4944e9c93e2b462e351430f15daad6 (patch) | |
tree | 17bddcfb4ce643d067746ecbaf79ac2367a8fc82 /sound/pci | |
parent | d507cd668a3f6d07b31e914722b453c454b03204 (diff) |
ALSA: hda - VIA: 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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_via.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index 15b57a101aa0..62fe64c419d5 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c | |||
@@ -1021,6 +1021,11 @@ static int via_smart51_build(struct via_spec *spec) | |||
1021 | hda_nid_t nid; | 1021 | hda_nid_t nid; |
1022 | int i; | 1022 | int i; |
1023 | 1023 | ||
1024 | if (!cfg) | ||
1025 | return 0; | ||
1026 | if (cfg->line_outs > 2) | ||
1027 | return 0; | ||
1028 | |||
1024 | knew = via_clone_control(spec, &via_smart51_mixer[0]); | 1029 | knew = via_clone_control(spec, &via_smart51_mixer[0]); |
1025 | if (knew == NULL) | 1030 | if (knew == NULL) |
1026 | return -ENOMEM; | 1031 | return -ENOMEM; |