/sound/usb/ |
D | quirks.c | 45 const struct snd_usb_audio_quirk *quirk) in create_composite_quirk() argument 50 for (quirk = quirk->data; quirk->ifnum >= 0; ++quirk) { in create_composite_quirk() 51 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk() 54 if (quirk->ifnum != probed_ifnum && in create_composite_quirk() 57 err = snd_usb_create_quirk(chip, iface, driver, quirk); in create_composite_quirk() 60 if (quirk->ifnum != probed_ifnum) in create_composite_quirk() 69 const struct snd_usb_audio_quirk *quirk) in ignore_interface_quirk() argument 82 const struct snd_usb_audio_quirk *quirk) in create_align_transfer_quirk() argument 91 const struct snd_usb_audio_quirk *quirk) in create_any_midi_quirk() argument 93 return snd_usbmidi_create(chip->card, intf, &chip->midi_list, quirk); in create_any_midi_quirk() [all …]
|
D | card.c | 335 const struct snd_usb_audio_quirk *quirk, in snd_usb_audio_create() argument 400 if (quirk && quirk->product_name && *quirk->product_name) { in snd_usb_audio_create() 401 strlcpy(card->shortname, quirk->product_name, sizeof(card->shortname)); in snd_usb_audio_create() 415 if (quirk && quirk->vendor_name && *quirk->vendor_name) { in snd_usb_audio_create() 416 len = strlcpy(card->longname, quirk->vendor_name, sizeof(card->longname)); in snd_usb_audio_create() 476 const struct snd_usb_audio_quirk *quirk = (const struct snd_usb_audio_quirk *)usb_id->driver_info; in snd_usb_audio_probe() local 487 if (quirk && quirk->ifnum >= 0 && ifnum != quirk->ifnum) in snd_usb_audio_probe() 490 if (snd_usb_apply_boot_quirk(dev, intf, quirk) < 0) in snd_usb_audio_probe() 519 if (snd_usb_audio_create(dev, i, quirk, &chip) < 0) { in snd_usb_audio_probe() 542 if (quirk && quirk->ifnum != QUIRK_NO_INTERFACE) { in snd_usb_audio_probe() [all …]
|
D | quirks.h | 11 const struct snd_usb_audio_quirk *quirk); 19 const struct snd_usb_audio_quirk *quirk);
|
D | midi.h | 45 const struct snd_usb_audio_quirk *quirk);
|
D | midi.c | 113 const struct snd_usb_audio_quirk *quirk; member 2121 const struct snd_usb_audio_quirk* quirk) in snd_usbmidi_create() argument 2134 umidi->quirk = quirk; in snd_usbmidi_create() 2147 switch (quirk ? quirk->type : QUIRK_MIDI_STANDARD_INTERFACE) { in snd_usbmidi_create() 2158 memcpy(&endpoints[0], quirk->data, in snd_usbmidi_create() 2167 memcpy(&endpoints[0], quirk->data, in snd_usbmidi_create() 2192 memcpy(&endpoints[0], quirk->data, in snd_usbmidi_create() 2218 snd_printd(KERN_ERR "invalid quirk type %d\n", quirk->type); in snd_usbmidi_create() 2241 if (quirk && quirk->type == QUIRK_MIDI_MIDIMAN) in snd_usbmidi_create()
|
/sound/pci/hda/ |
D | hda_auto_parser.c | 829 const struct snd_pci_quirk *quirk, in snd_hda_pick_fixup() argument 853 if (id < 0 && quirk) { in snd_hda_pick_fixup() 854 q = snd_pci_quirk_lookup(codec->bus->pci, quirk); in snd_hda_pick_fixup() 862 if (id < 0 && quirk) { in snd_hda_pick_fixup() 863 for (q = quirk; q->subvendor; q++) { in snd_hda_pick_fixup()
|
D | hda_local.h | 440 const struct snd_pci_quirk *quirk,
|
/sound/usb/usx2y/ |
D | usX2Yhwdep.c | 170 struct snd_usb_audio_quirk *quirk = in usX2Y_create_usbmidi() local 175 return snd_usbmidi_create(card, iface, &usX2Y(card)->midi_list, quirk); in usX2Y_create_usbmidi()
|
D | us122l.c | 60 static struct snd_usb_audio_quirk quirk = { in us122l_create_usbmidi() local 71 &US122L(card)->midi_list, &quirk); in us122l_create_usbmidi() 82 static struct snd_usb_audio_quirk quirk = { in us144_create_usbmidi() local 93 &US122L(card)->midi_list, &quirk); in us144_create_usbmidi()
|
/sound/pci/ac97/ |
D | ac97_codec.c | 2893 int snd_ac97_tune_hardware(struct snd_ac97 *ac97, struct ac97_quirk *quirk, const char *override) in snd_ac97_tune_hardware() argument 2905 if (! quirk) in snd_ac97_tune_hardware() 2908 for (; quirk->subvendor; quirk++) { in snd_ac97_tune_hardware() 2909 if (quirk->subvendor != ac97->subsystem_vendor) in snd_ac97_tune_hardware() 2911 if ((! quirk->mask && quirk->subdevice == ac97->subsystem_device) || in snd_ac97_tune_hardware() 2912 quirk->subdevice == (quirk->mask & ac97->subsystem_device)) { in snd_ac97_tune_hardware() 2913 if (quirk->codec_id && quirk->codec_id != ac97->id) in snd_ac97_tune_hardware() 2915 …snd_printdd("ac97 quirk for %s (%04x:%04x)\n", quirk->name, ac97->subsystem_vendor, ac97->subsyste… in snd_ac97_tune_hardware() 2916 result = apply_quirk(ac97, quirk->type); in snd_ac97_tune_hardware() 2918 …snd_printk(KERN_ERR "applying quirk type %d for %s failed (%d)\n", quirk->type, quirk->name, resul… in snd_ac97_tune_hardware()
|
/sound/pci/ |
D | maestro3.c | 2543 const struct snd_pci_quirk *quirk; in snd_m3_create() local 2587 quirk = snd_pci_quirk_lookup(pci, m3_amp_quirk_list); in snd_m3_create() 2588 if (quirk) { in snd_m3_create() 2591 snd_pci_quirk_name(quirk)); in snd_m3_create() 2592 chip->amp_gpio = quirk->value; in snd_m3_create() 2599 quirk = snd_pci_quirk_lookup(pci, m3_irda_quirk_list); in snd_m3_create() 2600 if (quirk) { in snd_m3_create() 2603 snd_pci_quirk_name(quirk)); in snd_m3_create() 2606 quirk = snd_pci_quirk_lookup(pci, m3_hv_quirk_list); in snd_m3_create() 2607 if (quirk) in snd_m3_create() [all …]
|