提交 cb34c207 编写于 作者: L Lydia Wang 提交者: Takashi Iwai

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: NLydia Wang <lydiawang@viatech.com.cn>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 d507cd66
......@@ -1021,6 +1021,11 @@ static int via_smart51_build(struct via_spec *spec)
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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册