drivers/usb/gadget/function/u_uac2.h

Source file repositories/reference/linux-study-clean/drivers/usb/gadget/function/u_uac2.h

File Facts

System
Linux kernel
Corpus path
drivers/usb/gadget/function/u_uac2.h
Extension
.h
Size
2156 bytes
Lines
94
Domain
Driver Families
Bucket
drivers/usb
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

struct f_uac2_opts {
	struct usb_function_instance	func_inst;
	int				p_chmask;
	int				p_srates[UAC_MAX_RATES];
	int				p_ssize;
	u8				p_hs_bint;
	int				c_chmask;
	int				c_srates[UAC_MAX_RATES];
	int				c_ssize;
	int				c_sync;
	u8				c_hs_bint;

	bool			p_mute_present;
	bool			p_volume_present;
	s16				p_volume_min;
	s16				p_volume_max;
	s16				p_volume_res;

	bool			c_mute_present;
	bool			c_volume_present;
	s16				c_volume_min;
	s16				c_volume_max;
	s16				c_volume_res;

	int				req_number;
	int				fb_max;
	bool			bound;

	char			function_name[USB_MAX_STRING_LEN];
	char			if_ctrl_name[USB_MAX_STRING_LEN];
	char			clksrc_in_name[USB_MAX_STRING_LEN];
	char			clksrc_out_name[USB_MAX_STRING_LEN];

	char			p_it_name[USB_MAX_STRING_LEN];
	char			p_it_ch_name[USB_MAX_STRING_LEN];
	char			p_ot_name[USB_MAX_STRING_LEN];
	char			p_fu_vol_name[USB_MAX_STRING_LEN];

	char			c_it_name[USB_MAX_STRING_LEN];
	char			c_it_ch_name[USB_MAX_STRING_LEN];
	char			c_ot_name[USB_MAX_STRING_LEN];
	char			c_fu_vol_name[USB_MAX_STRING_LEN];

	s16				p_terminal_type;
	s16				c_terminal_type;

	struct mutex			lock;
	int				refcnt;
};

#endif

Annotation

Implementation Notes