drivers/usb/gadget/function/u_uac1.h

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

File Facts

System
Linux kernel
Corpus path
drivers/usb/gadget/function/u_uac1.h
Extension
.h
Size
1651 bytes
Lines
72
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_uac1_opts {
	struct usb_function_instance	func_inst;
	int				c_chmask;
	int				c_srates[UAC_MAX_RATES];
	int				c_ssize;
	int				p_chmask;
	int				p_srates[UAC_MAX_RATES];
	int				p_ssize;

	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;
	unsigned			bound:1;

	char			function_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];

	struct mutex			lock;
	int				refcnt;
};

#endif /* __U_UAC1_H */

Annotation

Implementation Notes