Lines Matching refs:uac2
477 struct f_uac2 *uac2 = func_to_uac2(fn); in afunc_bind() local
530 uac2->ac_intf = ret; in afunc_bind()
531 uac2->ac_alt = 0; in afunc_bind()
540 uac2->as_out_intf = ret; in afunc_bind()
541 uac2->as_out_alt = 0; in afunc_bind()
550 uac2->as_in_intf = ret; in afunc_bind()
551 uac2->as_in_alt = 0; in afunc_bind()
610 struct f_uac2 *uac2 = func_to_uac2(fn); in afunc_set_alt() local
621 if (intf == uac2->ac_intf) { in afunc_set_alt()
630 if (intf == uac2->as_out_intf) { in afunc_set_alt()
631 uac2->as_out_alt = alt; in afunc_set_alt()
634 ret = u_audio_start_capture(&uac2->g_audio); in afunc_set_alt()
636 u_audio_stop_capture(&uac2->g_audio); in afunc_set_alt()
637 } else if (intf == uac2->as_in_intf) { in afunc_set_alt()
638 uac2->as_in_alt = alt; in afunc_set_alt()
641 ret = u_audio_start_playback(&uac2->g_audio); in afunc_set_alt()
643 u_audio_stop_playback(&uac2->g_audio); in afunc_set_alt()
655 struct f_uac2 *uac2 = func_to_uac2(fn); in afunc_get_alt() local
658 if (intf == uac2->ac_intf) in afunc_get_alt()
659 return uac2->ac_alt; in afunc_get_alt()
660 else if (intf == uac2->as_out_intf) in afunc_get_alt()
661 return uac2->as_out_alt; in afunc_get_alt()
662 else if (intf == uac2->as_in_intf) in afunc_get_alt()
663 return uac2->as_in_alt; in afunc_get_alt()
675 struct f_uac2 *uac2 = func_to_uac2(fn); in afunc_disable() local
677 uac2->as_in_alt = 0; in afunc_disable()
678 uac2->as_out_alt = 0; in afunc_disable()
679 u_audio_stop_capture(&uac2->g_audio); in afunc_disable()
680 u_audio_stop_playback(&uac2->g_audio); in afunc_disable()
793 struct f_uac2 *uac2 = func_to_uac2(fn); in setup_rq_inf() local
798 if (intf != uac2->ac_intf) { in setup_rq_inf()
985 struct f_uac2 *uac2; in afunc_alloc() local
988 uac2 = kzalloc(sizeof(*uac2), GFP_KERNEL); in afunc_alloc()
989 if (uac2 == NULL) in afunc_alloc()
997 uac2->g_audio.func.name = "uac2_func"; in afunc_alloc()
998 uac2->g_audio.func.bind = afunc_bind; in afunc_alloc()
999 uac2->g_audio.func.unbind = afunc_unbind; in afunc_alloc()
1000 uac2->g_audio.func.set_alt = afunc_set_alt; in afunc_alloc()
1001 uac2->g_audio.func.get_alt = afunc_get_alt; in afunc_alloc()
1002 uac2->g_audio.func.disable = afunc_disable; in afunc_alloc()
1003 uac2->g_audio.func.setup = afunc_setup; in afunc_alloc()
1004 uac2->g_audio.func.free_func = afunc_free; in afunc_alloc()
1006 return &uac2->g_audio.func; in afunc_alloc()
1009 DECLARE_USB_FUNCTION_INIT(uac2, afunc_alloc_inst, afunc_alloc);