Lines Matching full: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 usb_driver_claim_interface(driver, iface, (void *)-1L); in create_composite_quirk()
66 struct usb_interface *iface, in ignore_interface_quirk() argument
79 struct usb_interface *iface, in create_align_transfer_quirk() argument
99 struct usb_interface *iface, in create_standard_audio_quirk() argument
110 alts = &iface->altsetting[0]; in create_standard_audio_quirk()
127 struct usb_interface *iface, in create_fixed_stream_quirk() argument
161 if (fp->iface != get_iface_desc(&iface->altsetting[0])->bInterfaceNumber || in create_fixed_stream_quirk()
162 fp->altset_idx >= iface->num_altsetting) { in create_fixed_stream_quirk()
166 alts = &iface->altsetting[fp->altset_idx]; in create_fixed_stream_quirk()
179 usb_set_interface(chip->dev, fp->iface, 0); in create_fixed_stream_quirk()
180 snd_usb_init_pitch(chip, fp->iface, alts, fp); in create_fixed_stream_quirk()
181 snd_usb_init_sample_rate(chip, fp->iface, alts, fp, fp->rate_max); in create_fixed_stream_quirk()
192 struct usb_interface *iface, in create_auto_pcm_quirk() argument
209 if (iface->num_altsetting < 2) in create_auto_pcm_quirk()
211 alts = &iface->altsetting[1]; in create_auto_pcm_quirk()
230 return create_standard_audio_quirk(chip, iface, driver, NULL); in create_auto_pcm_quirk()
234 struct usb_interface *iface, in create_yamaha_midi_quirk() argument
262 return create_any_midi_quirk(chip, iface, driver, &yamaha_midi_quirk); in create_yamaha_midi_quirk()
266 struct usb_interface *iface, in create_roland_midi_quirk() argument
284 return create_any_midi_quirk(chip, iface, driver, in create_roland_midi_quirk()
290 struct usb_interface *iface, in create_std_midi_quirk() argument
314 return create_any_midi_quirk(chip, iface, driver, NULL); in create_std_midi_quirk()
318 struct usb_interface *iface, in create_auto_midi_quirk() argument
326 alts = &iface->altsetting[0]; in create_auto_midi_quirk()
339 err = create_yamaha_midi_quirk(chip, iface, driver, alts); in create_auto_midi_quirk()
344 err = create_roland_midi_quirk(chip, iface, driver, alts); in create_auto_midi_quirk()
350 return create_std_midi_quirk(chip, iface, driver, alts); in create_auto_midi_quirk()
354 struct usb_interface *iface, in create_autodetect_quirk() argument
359 err = create_auto_pcm_quirk(chip, iface, driver); in create_autodetect_quirk()
361 err = create_auto_midi_quirk(chip, iface, driver); in create_autodetect_quirk()
366 struct usb_interface *iface, in create_autodetect_quirks() argument
370 int probed_ifnum = get_iface_desc(iface->altsetting)->bInterfaceNumber; in create_autodetect_quirks()
373 err = create_autodetect_quirk(chip, iface, driver); in create_autodetect_quirks()
385 iface = usb_ifnum_to_if(chip->dev, ifnum); in create_autodetect_quirks()
386 if (!iface || in create_autodetect_quirks()
387 usb_interface_claimed(iface) || in create_autodetect_quirks()
388 get_iface_desc(iface->altsetting)->bInterfaceClass != in create_autodetect_quirks()
392 err = create_autodetect_quirk(chip, iface, driver); in create_autodetect_quirks()
394 usb_driver_claim_interface(driver, iface, (void *)-1L); in create_autodetect_quirks()
405 struct usb_interface *iface, in create_uaxx_quirk() argument
423 if (iface->num_altsetting < 2) in create_uaxx_quirk()
425 alts = &iface->altsetting[1]; in create_uaxx_quirk()
448 return __snd_usbmidi_create(chip->card, iface, in create_uaxx_quirk()
460 fp->iface = altsd->bInterfaceNumber; in create_uaxx_quirk()
493 usb_set_interface(chip->dev, fp->iface, 0); in create_uaxx_quirk()
501 struct usb_interface *iface, in create_standard_mixer_quirk() argument
513 struct usb_interface *iface, in setup_fmt_after_resume_quirk() argument
522 struct usb_interface *iface, in setup_disable_autosuspend() argument
539 struct usb_interface *iface, in snd_usb_create_quirk() argument
573 return quirk_funcs[quirk->type](chip, iface, driver, quirk); in snd_usb_create_quirk()
1161 int iface, int altno) in quattro_skip_setting_quirk() argument
1166 usb_set_interface(chip->dev, iface, 0); in quattro_skip_setting_quirk()
1169 if (iface != 1 && iface != 2) in quattro_skip_setting_quirk()
1173 if (iface == 1 || iface == 2) in quattro_skip_setting_quirk()
1188 altno, iface, chip->setup); in quattro_skip_setting_quirk()
1193 int iface, in audiophile_skip_setting_quirk() argument
1199 usb_set_interface(chip->dev, iface, 0); in audiophile_skip_setting_quirk()
1222 int iface, int altno) in fasttrackpro_skip_setting_quirk() argument
1227 usb_set_interface(chip->dev, iface, 0); in fasttrackpro_skip_setting_quirk()
1237 if (iface == 4) in fasttrackpro_skip_setting_quirk()
1242 if (iface == 5) in fasttrackpro_skip_setting_quirk()
1255 altno, iface, chip->setup); in fasttrackpro_skip_setting_quirk()
1260 int iface, int altno) in s1810c_skip_setting_quirk() argument
1292 int iface, in snd_usb_apply_interface_quirk() argument
1297 return audiophile_skip_setting_quirk(chip, iface, altno); in snd_usb_apply_interface_quirk()
1300 return quattro_skip_setting_quirk(chip, iface, altno); in snd_usb_apply_interface_quirk()
1303 return fasttrackpro_skip_setting_quirk(chip, iface, altno); in snd_usb_apply_interface_quirk()
1306 return s1810c_skip_setting_quirk(chip, iface, altno); in snd_usb_apply_interface_quirk()
1566 err = usb_set_interface(dev, fmt->iface, 0); in snd_usb_select_mode_quirk()
1707 struct usb_interface *iface; in snd_usb_interface_dsd_format_quirks() local
1780 iface = usb_ifnum_to_if(chip->dev, fp->iface); in snd_usb_interface_dsd_format_quirks()
1787 if (fp->altsetting == iface->num_altsetting - 1) in snd_usb_interface_dsd_format_quirks()
1872 #define REG_QUIRK_ENTRY(vendor, product, iface) \ argument
1873 { .usb_id = USB_ID(vendor, product), .interface = (iface) }
1883 bool snd_usb_registration_quirk(struct snd_usb_audio *chip, int iface) in snd_usb_registration_quirk() argument
1889 return iface != q->interface; in snd_usb_registration_quirk()