usb: gadget: f_uac2: allow changing interface name via configfs
authorYunhao Tian <t123yh.xyz@gmail.com>
Sat, 22 Jan 2022 11:24:41 +0000 (19:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Jan 2022 13:10:44 +0000 (14:10 +0100)
commit993a44fa85c1ea5989fb5c46236ca2e3cfd71b78
tree46c6d2a9c6c7de6e7481524261aae193624bef56
parentdfb05b5dc3afd90e564b69b88ff6be6947a0f32f
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 <t123yh.xyz@gmail.com>
Link: https://lore.kernel.org/r/20220122112446.1415547-2-t123yh.xyz@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/configfs-usb-gadget-uac2
Documentation/usb/gadget-testing.rst
drivers/usb/gadget/function/f_uac2.c
drivers/usb/gadget/function/u_uac2.h