diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index 15b57a101aa028303ca2b2dce11b1b851a196ee9..62fe64c419d548d2ff241f399b4557ef9b1908cd 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) 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;