aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/pci/hda/hda_auto_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_auto_parser.c b/sound/pci/hda/hda_auto_parser.c
index f7520b9f909..647218d69f6 100644
--- a/sound/pci/hda/hda_auto_parser.c
+++ b/sound/pci/hda/hda_auto_parser.c
@@ -727,7 +727,7 @@ void snd_hda_pick_fixup(struct hda_codec *codec,
727 models++; 727 models++;
728 } 728 }
729 } 729 }
730 if (id < 0) { 730 if (id < 0 && quirk) {
731 q = snd_pci_quirk_lookup(codec->bus->pci, quirk); 731 q = snd_pci_quirk_lookup(codec->bus->pci, quirk);
732 if (q) { 732 if (q) {
733 id = q->value; 733 id = q->value;
@@ -736,7 +736,7 @@ void snd_hda_pick_fixup(struct hda_codec *codec,
736#endif 736#endif
737 } 737 }
738 } 738 }
739 if (id < 0) { 739 if (id < 0 && quirk) {
740 for (q = quirk; q->subvendor; q++) { 740 for (q = quirk; q->subvendor; q++) {
741 unsigned int vendorid = 741 unsigned int vendorid =
742 q->subdevice | (q->subvendor << 16); 742 q->subdevice | (q->subvendor << 16);