diff options
author | Yunhao Tian <[email protected]> | 2022-01-22 19:24:41 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-01-26 14:10:44 +0100 |
commit | 993a44fa85c1ea5989fb5c46236ca2e3cfd71b78 (patch) | |
tree | 46c6d2a9c6c7de6e7481524261aae193624bef56 /drivers/usb/gadget/function/u_uac2.h | |
parent | dfb05b5dc3afd90e564b69b88ff6be6947a0f32f (diff) |
usb: gadget: f_uac2: 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 "Source/Sink" just as before.
Signed-off-by: Yunhao Tian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/gadget/function/u_uac2.h')
-rw-r--r-- | drivers/usb/gadget/function/u_uac2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/u_uac2.h b/drivers/usb/gadget/function/u_uac2.h index 6bfcf6d0e863..ed96c7c853e4 100644 --- a/drivers/usb/gadget/function/u_uac2.h +++ b/drivers/usb/gadget/function/u_uac2.h @@ -59,6 +59,8 @@ struct f_uac2_opts { int fb_max; bool bound; + char function_name[32]; + struct mutex lock; int refcnt; }; |