Lines Matching refs:uac2

595 	struct f_uac2 *uac2 = func_to_uac2(fn);  in afunc_bind()  local
648 uac2->ac_intf = ret; in afunc_bind()
649 uac2->ac_alt = 0; in afunc_bind()
659 uac2->as_out_intf = ret; in afunc_bind()
660 uac2->as_out_alt = 0; in afunc_bind()
671 uac2->as_in_intf = ret; in afunc_bind()
672 uac2->as_in_alt = 0; in afunc_bind()
738 struct f_uac2 *uac2 = func_to_uac2(fn); in afunc_set_alt() local
749 if (intf == uac2->ac_intf) { in afunc_set_alt()
758 if (intf == uac2->as_out_intf) { in afunc_set_alt()
759 uac2->as_out_alt = alt; in afunc_set_alt()
762 ret = u_audio_start_capture(&uac2->g_audio); in afunc_set_alt()
764 u_audio_stop_capture(&uac2->g_audio); in afunc_set_alt()
765 } else if (intf == uac2->as_in_intf) { in afunc_set_alt()
766 uac2->as_in_alt = alt; in afunc_set_alt()
769 ret = u_audio_start_playback(&uac2->g_audio); in afunc_set_alt()
771 u_audio_stop_playback(&uac2->g_audio); in afunc_set_alt()
783 struct f_uac2 *uac2 = func_to_uac2(fn); in afunc_get_alt() local
786 if (intf == uac2->ac_intf) in afunc_get_alt()
787 return uac2->ac_alt; in afunc_get_alt()
788 else if (intf == uac2->as_out_intf) in afunc_get_alt()
789 return uac2->as_out_alt; in afunc_get_alt()
790 else if (intf == uac2->as_in_intf) in afunc_get_alt()
791 return uac2->as_in_alt; in afunc_get_alt()
803 struct f_uac2 *uac2 = func_to_uac2(fn); in afunc_disable() local
805 uac2->as_in_alt = 0; in afunc_disable()
806 uac2->as_out_alt = 0; in afunc_disable()
807 u_audio_stop_capture(&uac2->g_audio); in afunc_disable()
808 u_audio_stop_playback(&uac2->g_audio); in afunc_disable()
921 struct f_uac2 *uac2 = func_to_uac2(fn); in setup_rq_inf() local
926 if (intf != uac2->ac_intf) { in setup_rq_inf()
1113 struct f_uac2 *uac2; in afunc_alloc() local
1116 uac2 = kzalloc(sizeof(*uac2), GFP_KERNEL); in afunc_alloc()
1117 if (uac2 == NULL) in afunc_alloc()
1125 uac2->g_audio.func.name = "uac2_func"; in afunc_alloc()
1126 uac2->g_audio.func.bind = afunc_bind; in afunc_alloc()
1127 uac2->g_audio.func.unbind = afunc_unbind; in afunc_alloc()
1128 uac2->g_audio.func.set_alt = afunc_set_alt; in afunc_alloc()
1129 uac2->g_audio.func.get_alt = afunc_get_alt; in afunc_alloc()
1130 uac2->g_audio.func.disable = afunc_disable; in afunc_alloc()
1131 uac2->g_audio.func.setup = afunc_setup; in afunc_alloc()
1132 uac2->g_audio.func.free_func = afunc_free; in afunc_alloc()
1134 return &uac2->g_audio.func; in afunc_alloc()
1137 DECLARE_USB_FUNCTION_INIT(uac2, afunc_alloc_inst, afunc_alloc);