Lines Matching defs:quirk
2775 /* apply the quirk with the given type */
2787 /* apply the quirk with the given name */
2805 int snd_ac97_tune_hardware(struct snd_ac97 *ac97, struct ac97_quirk *quirk, const char *override)
2809 /* quirk overriden? */
2813 snd_printk(KERN_ERR "applying quirk type %s failed (%d)\n", override, result);
2817 if (! quirk)
2820 for (; quirk->subvendor; quirk++) {
2821 if (quirk->subvendor != ac97->subsystem_vendor)
2823 if ((! quirk->mask && quirk->subdevice == ac97->subsystem_device) ||
2824 quirk->subdevice == (quirk->mask & ac97->subsystem_device)) {
2825 if (quirk->codec_id && quirk->codec_id != ac97->id)
2827 snd_printdd("ac97 quirk for %s (%04x:%04x)\n", quirk->name, ac97->subsystem_vendor, ac97->subsystem_device);
2828 result = apply_quirk(ac97, quirk->type);
2830 snd_printk(KERN_ERR "applying quirk type %d for %s failed (%d)\n", quirk->type, quirk->name, result);