linux-imx/Documentation/ABI/testing/configfs-usb-gadget-uac1
Yunhao Tian dfb05b5dc3 usb: gadget: f_uac1: allow changing interface name via configfs
This adds "function_name" configfs entry to change string value
of the iInterface field. This field will be shown in Windows' audio
settings panel, so being able to change it is useful. It will default
to "AC Interface" just as before if unchanged.

Signed-off-by: Yunhao Tian <t123yh.xyz@gmail.com>
Link: https://lore.kernel.org/r/20220122112446.1415547-1-t123yh.xyz@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-26 14:10:40 +01:00

1.2 KiB

What: /config/usb-gadget/gadget/functions/uac1.name Date: June 2017 KernelVersion: 4.14 Description: The attributes:

	=====================	=======================================
	c_chmask		capture channel mask
	c_srate			list of capture sampling rates (comma-separated)
	c_ssize			capture sample size (bytes)
	c_mute_present		capture mute control enable
	c_volume_present	capture volume control enable
	c_volume_min		capture volume control min value
				(in 1/256 dB)
	c_volume_max		capture volume control max value
				(in 1/256 dB)
	c_volume_res		capture volume control resolution
				(in 1/256 dB)
	p_chmask		playback channel mask
	p_srate			list of playback sampling rates (comma-separated)
	p_ssize			playback sample size (bytes)
	p_mute_present		playback mute control enable
	p_volume_present	playback volume control enable
	p_volume_min		playback volume control min value
				(in 1/256 dB)
	p_volume_max		playback volume control max value
				(in 1/256 dB)
	p_volume_res		playback volume control resolution
				(in 1/256 dB)
	req_number		the number of pre-allocated requests
				for both capture and playback
	function_name		name of the interface
	=====================	=======================================