Lines Matching defs:quirk
2808 /* apply the quirk with the given type */
2820 /* apply the quirk with the given name */
2838 int snd_ac97_tune_hardware(struct snd_ac97 *ac97, struct ac97_quirk *quirk, const char *override)
2842 /* quirk overriden? */
2846 snd_printk(KERN_ERR "applying quirk type %s failed (%d)\n", override, result);
2850 if (! quirk)
2853 for (; quirk->subvendor; quirk++) {
2854 if (quirk->subvendor != ac97->subsystem_vendor)
2856 if ((! quirk->mask && quirk->subdevice == ac97->subsystem_device) ||
2857 quirk->subdevice == (quirk->mask & ac97->subsystem_device)) {
2858 if (quirk->codec_id && quirk->codec_id != ac97->id)
2860 snd_printdd("ac97 quirk for %s (%04x:%04x)\n", quirk->name, ac97->subsystem_vendor, ac97->subsystem_device);
2861 result = apply_quirk(ac97, quirk->type);
2863 snd_printk(KERN_ERR "applying quirk type %d for %s failed (%d)\n", quirk->type, quirk->name, result);