aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ac97/ac97_codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/ac97/ac97_codec.c')
-rw-r--r--sound/pci/ac97/ac97_codec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c
index 996fcfb09532..a4b72cd2eea0 100644
--- a/sound/pci/ac97/ac97_codec.c
+++ b/sound/pci/ac97/ac97_codec.c
@@ -2542,11 +2542,11 @@ int snd_ac97_tune_hardware(ac97_t *ac97, struct ac97_quirk *quirk, const char *o
2542 return result; 2542 return result;
2543 } 2543 }
2544 2544
2545 for (; quirk->vendor; quirk++) { 2545 for (; quirk->subvendor; quirk++) {
2546 if (quirk->vendor != ac97->subsystem_vendor) 2546 if (quirk->subvendor != ac97->subsystem_vendor)
2547 continue; 2547 continue;
2548 if ((! quirk->mask && quirk->device == ac97->subsystem_device) || 2548 if ((! quirk->mask && quirk->subdevice == ac97->subsystem_device) ||
2549 quirk->device == (quirk->mask & ac97->subsystem_device)) { 2549 quirk->subdevice == (quirk->mask & ac97->subsystem_device)) {
2550 if (quirk->codec_id && quirk->codec_id != ac97->id) 2550 if (quirk->codec_id && quirk->codec_id != ac97->id)
2551 continue; 2551 continue;
2552 snd_printdd("ac97 quirk for %s (%04x:%04x)\n", quirk->name, ac97->subsystem_vendor, ac97->subsystem_device); 2552 snd_printdd("ac97 quirk for %s (%04x:%04x)\n", quirk->name, ac97->subsystem_vendor, ac97->subsystem_device);