usb: gadget: f_uac1: Expose all string descriptors through configfs.

This makes all string descriptors configurable for the UAC1 gadget
so the user can configure names of terminals/controls/alt modes.

Signed-off-by: Chris Wulff <chris.wulff@biamp.com>
Link: https://lore.kernel.org/r/CO1PR17MB541911B0C80D21E4B575E48CE1112@CO1PR17MB5419.namprd17.prod.outlook.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Chris Wulff
2024-04-23 14:09:04 +00:00
committed by Greg Kroah-Hartman
parent 8400291e28
commit aace0aec49
4 changed files with 98 additions and 17 deletions

View File

@@ -957,6 +957,18 @@ The uac1 function provides these attributes in its function directory:
req_number the number of pre-allocated requests for both capture
and playback
function_name name of the interface
p_it_name playback input terminal name
p_it_ch_name playback channels name
p_ot_name playback output terminal name
p_fu_name playback functional unit name
p_alt0_name playback alt mode 0 name
p_alt1_name playback alt mode 1 name
c_it_name capture input terminal name
c_it_ch_name capture channels name
c_ot_name capture output terminal name
c_fu_name capture functional unit name
c_alt0_name capture alt mode 0 name
c_alt1_name capture alt mode 1 name
================ ====================================================
The attributes have sane default values.