Lines Matching refs:iface

34 				  struct usb_interface *iface,  in create_composite_quirk()  argument
38 int probed_ifnum = get_iface_desc(iface->altsetting)->bInterfaceNumber; in create_composite_quirk()
43 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk()
44 if (!iface) in create_composite_quirk()
47 usb_interface_claimed(iface)) in create_composite_quirk()
49 err = snd_usb_create_quirk(chip, iface, driver, quirk); in create_composite_quirk()
55 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk()
56 if (!iface) in create_composite_quirk()
59 !usb_interface_claimed(iface)) { in create_composite_quirk()
60 err = usb_driver_claim_interface(driver, iface, in create_composite_quirk()
71 struct usb_interface *iface, in ignore_interface_quirk() argument
91 struct usb_interface *iface, in create_standard_audio_quirk() argument
99 alts = &iface->altsetting[0]; in create_standard_audio_quirk()
150 struct usb_interface *iface, in create_fixed_stream_quirk() argument
179 if (fp->iface != get_iface_desc(&iface->altsetting[0])->bInterfaceNumber || in create_fixed_stream_quirk()
180 fp->altset_idx >= iface->num_altsetting) { in create_fixed_stream_quirk()
184 alts = &iface->altsetting[fp->altset_idx]; in create_fixed_stream_quirk()
204 usb_set_interface(chip->dev, fp->iface, 0); in create_fixed_stream_quirk()
217 struct usb_interface *iface, in create_auto_pcm_quirk() argument
234 if (iface->num_altsetting < 2) in create_auto_pcm_quirk()
236 alts = &iface->altsetting[1]; in create_auto_pcm_quirk()
255 return create_standard_audio_quirk(chip, iface, driver, NULL); in create_auto_pcm_quirk()
259 struct usb_interface *iface, in create_yamaha_midi_quirk() argument
287 return create_any_midi_quirk(chip, iface, driver, &yamaha_midi_quirk); in create_yamaha_midi_quirk()
291 struct usb_interface *iface, in create_roland_midi_quirk() argument
309 return create_any_midi_quirk(chip, iface, driver, in create_roland_midi_quirk()
315 struct usb_interface *iface, in create_std_midi_quirk() argument
339 return create_any_midi_quirk(chip, iface, driver, NULL); in create_std_midi_quirk()
343 struct usb_interface *iface, in create_auto_midi_quirk() argument
351 alts = &iface->altsetting[0]; in create_auto_midi_quirk()
364 err = create_yamaha_midi_quirk(chip, iface, driver, alts); in create_auto_midi_quirk()
369 err = create_roland_midi_quirk(chip, iface, driver, alts); in create_auto_midi_quirk()
375 return create_std_midi_quirk(chip, iface, driver, alts); in create_auto_midi_quirk()
379 struct usb_interface *iface, in create_autodetect_quirk() argument
385 err = create_auto_pcm_quirk(chip, iface, driver); in create_autodetect_quirk()
387 err = create_auto_midi_quirk(chip, iface, driver); in create_autodetect_quirk()
396 struct usb_interface *iface, in create_uaxx_quirk() argument
414 if (iface->num_altsetting < 2) in create_uaxx_quirk()
416 alts = &iface->altsetting[1]; in create_uaxx_quirk()
439 return __snd_usbmidi_create(chip->card, iface, in create_uaxx_quirk()
452 fp->iface = altsd->bInterfaceNumber; in create_uaxx_quirk()
483 usb_set_interface(chip->dev, fp->iface, 0); in create_uaxx_quirk()
491 struct usb_interface *iface, in create_standard_mixer_quirk() argument
510 struct usb_interface *iface, in snd_usb_create_quirk() argument
541 return quirk_funcs[quirk->type](chip, iface, driver, quirk); in snd_usb_create_quirk()
1429 int iface, int altno) in quattro_skip_setting_quirk() argument
1434 usb_set_interface(chip->dev, iface, 0); in quattro_skip_setting_quirk()
1437 if (iface != 1 && iface != 2) in quattro_skip_setting_quirk()
1441 if (iface == 1 || iface == 2) in quattro_skip_setting_quirk()
1456 altno, iface, chip->setup); in quattro_skip_setting_quirk()
1461 int iface, in audiophile_skip_setting_quirk() argument
1467 usb_set_interface(chip->dev, iface, 0); in audiophile_skip_setting_quirk()
1490 int iface, int altno) in fasttrackpro_skip_setting_quirk() argument
1495 usb_set_interface(chip->dev, iface, 0); in fasttrackpro_skip_setting_quirk()
1505 if (iface == 4) in fasttrackpro_skip_setting_quirk()
1510 if (iface == 5) in fasttrackpro_skip_setting_quirk()
1523 altno, iface, chip->setup); in fasttrackpro_skip_setting_quirk()
1528 int iface, int altno) in s1810c_skip_setting_quirk() argument
1560 int iface, in snd_usb_apply_interface_quirk() argument
1565 return audiophile_skip_setting_quirk(chip, iface, altno); in snd_usb_apply_interface_quirk()
1568 return quattro_skip_setting_quirk(chip, iface, altno); in snd_usb_apply_interface_quirk()
1571 return fasttrackpro_skip_setting_quirk(chip, iface, altno); in snd_usb_apply_interface_quirk()
1574 return s1810c_skip_setting_quirk(chip, iface, altno); in snd_usb_apply_interface_quirk()
1869 err = usb_set_interface(dev, fmt->iface, 0); in snd_usb_select_mode_quirk()
1957 struct usb_interface *iface; in snd_usb_interface_dsd_format_quirks() local
2034 iface = usb_ifnum_to_if(chip->dev, fp->iface); in snd_usb_interface_dsd_format_quirks()
2041 if (fp->altsetting == iface->num_altsetting - 1) in snd_usb_interface_dsd_format_quirks()