Lines Matching refs:iface
33 struct usb_interface *iface, in create_composite_quirk() argument
37 int probed_ifnum = get_iface_desc(iface->altsetting)->bInterfaceNumber; in create_composite_quirk()
42 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk()
43 if (!iface) in create_composite_quirk()
46 usb_interface_claimed(iface)) in create_composite_quirk()
48 err = snd_usb_create_quirk(chip, iface, driver, quirk); in create_composite_quirk()
54 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk()
55 if (!iface) in create_composite_quirk()
58 !usb_interface_claimed(iface)) { in create_composite_quirk()
59 err = usb_driver_claim_interface(driver, iface, in create_composite_quirk()
70 struct usb_interface *iface, in ignore_interface_quirk() argument
90 struct usb_interface *iface, in create_standard_audio_quirk() argument
98 alts = &iface->altsetting[0]; in create_standard_audio_quirk()
149 struct usb_interface *iface, in create_fixed_stream_quirk() argument
178 if (fp->iface != get_iface_desc(&iface->altsetting[0])->bInterfaceNumber || in create_fixed_stream_quirk()
179 fp->altset_idx >= iface->num_altsetting) { in create_fixed_stream_quirk()
183 alts = &iface->altsetting[fp->altset_idx]; in create_fixed_stream_quirk()
203 usb_set_interface(chip->dev, fp->iface, 0); in create_fixed_stream_quirk()
216 struct usb_interface *iface, in create_auto_pcm_quirk() argument
233 if (iface->num_altsetting < 2) in create_auto_pcm_quirk()
235 alts = &iface->altsetting[1]; in create_auto_pcm_quirk()
254 return create_standard_audio_quirk(chip, iface, driver, NULL); in create_auto_pcm_quirk()
258 struct usb_interface *iface, in create_yamaha_midi_quirk() argument
286 return create_any_midi_quirk(chip, iface, driver, &yamaha_midi_quirk); in create_yamaha_midi_quirk()
290 struct usb_interface *iface, in create_roland_midi_quirk() argument
308 return create_any_midi_quirk(chip, iface, driver, in create_roland_midi_quirk()
314 struct usb_interface *iface, in create_std_midi_quirk() argument
338 return create_any_midi_quirk(chip, iface, driver, NULL); in create_std_midi_quirk()
342 struct usb_interface *iface, in create_auto_midi_quirk() argument
350 alts = &iface->altsetting[0]; in create_auto_midi_quirk()
363 err = create_yamaha_midi_quirk(chip, iface, driver, alts); in create_auto_midi_quirk()
368 err = create_roland_midi_quirk(chip, iface, driver, alts); in create_auto_midi_quirk()
374 return create_std_midi_quirk(chip, iface, driver, alts); in create_auto_midi_quirk()
378 struct usb_interface *iface, in create_autodetect_quirk() argument
383 err = create_auto_pcm_quirk(chip, iface, driver); in create_autodetect_quirk()
385 err = create_auto_midi_quirk(chip, iface, driver); in create_autodetect_quirk()
390 struct usb_interface *iface, in create_autodetect_quirks() argument
394 int probed_ifnum = get_iface_desc(iface->altsetting)->bInterfaceNumber; in create_autodetect_quirks()
397 err = create_autodetect_quirk(chip, iface, driver); in create_autodetect_quirks()
409 iface = usb_ifnum_to_if(chip->dev, ifnum); in create_autodetect_quirks()
410 if (!iface || in create_autodetect_quirks()
411 usb_interface_claimed(iface) || in create_autodetect_quirks()
412 get_iface_desc(iface->altsetting)->bInterfaceClass != in create_autodetect_quirks()
416 err = create_autodetect_quirk(chip, iface, driver); in create_autodetect_quirks()
418 err = usb_driver_claim_interface(driver, iface, in create_autodetect_quirks()
433 struct usb_interface *iface, in create_uaxx_quirk() argument
451 if (iface->num_altsetting < 2) in create_uaxx_quirk()
453 alts = &iface->altsetting[1]; in create_uaxx_quirk()
476 return __snd_usbmidi_create(chip->card, iface, in create_uaxx_quirk()
488 fp->iface = altsd->bInterfaceNumber; in create_uaxx_quirk()
519 usb_set_interface(chip->dev, fp->iface, 0); in create_uaxx_quirk()
527 struct usb_interface *iface, in create_standard_mixer_quirk() argument
546 struct usb_interface *iface, in snd_usb_create_quirk() argument
577 return quirk_funcs[quirk->type](chip, iface, driver, quirk); in snd_usb_create_quirk()
1149 int iface, int altno) in quattro_skip_setting_quirk() argument
1154 usb_set_interface(chip->dev, iface, 0); in quattro_skip_setting_quirk()
1157 if (iface != 1 && iface != 2) in quattro_skip_setting_quirk()
1161 if (iface == 1 || iface == 2) in quattro_skip_setting_quirk()
1176 altno, iface, chip->setup); in quattro_skip_setting_quirk()
1181 int iface, in audiophile_skip_setting_quirk() argument
1187 usb_set_interface(chip->dev, iface, 0); in audiophile_skip_setting_quirk()
1210 int iface, int altno) in fasttrackpro_skip_setting_quirk() argument
1215 usb_set_interface(chip->dev, iface, 0); in fasttrackpro_skip_setting_quirk()
1225 if (iface == 4) in fasttrackpro_skip_setting_quirk()
1230 if (iface == 5) in fasttrackpro_skip_setting_quirk()
1243 altno, iface, chip->setup); in fasttrackpro_skip_setting_quirk()
1248 int iface, int altno) in s1810c_skip_setting_quirk() argument
1280 int iface, in snd_usb_apply_interface_quirk() argument
1285 return audiophile_skip_setting_quirk(chip, iface, altno); in snd_usb_apply_interface_quirk()
1288 return quattro_skip_setting_quirk(chip, iface, altno); in snd_usb_apply_interface_quirk()
1291 return fasttrackpro_skip_setting_quirk(chip, iface, altno); in snd_usb_apply_interface_quirk()
1294 return s1810c_skip_setting_quirk(chip, iface, altno); in snd_usb_apply_interface_quirk()
1505 err = usb_set_interface(dev, fmt->iface, 0); in snd_usb_select_mode_quirk()
1593 struct usb_interface *iface; in snd_usb_interface_dsd_format_quirks() local
1666 iface = usb_ifnum_to_if(chip->dev, fp->iface); in snd_usb_interface_dsd_format_quirks()
1673 if (fp->altsetting == iface->num_altsetting - 1) in snd_usb_interface_dsd_format_quirks()
1744 #define REG_QUIRK_ENTRY(vendor, product, iface) \ argument
1745 { .usb_id = USB_ID(vendor, product), .interface = (iface) }
1761 bool snd_usb_registration_quirk(struct snd_usb_audio *chip, int iface) in snd_usb_registration_quirk() argument
1767 return iface < q->interface; in snd_usb_registration_quirk()