usb: gadget: f_uac1: allow changing interface name via configfs
authorYunhao Tian <t123yh.xyz@gmail.com>
Sat, 22 Jan 2022 11:24:40 +0000 (19:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Jan 2022 13:10:40 +0000 (14:10 +0100)
commitdfb05b5dc3afd90e564b69b88ff6be6947a0f32f
tree3ab2bc1b7e728764ebd8c029a7789f1de899a59c
parentd1d11dd1306908bc18b6592bbd21ba7d19a931e5
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>
Documentation/ABI/testing/configfs-usb-gadget-uac1
Documentation/usb/gadget-testing.rst
drivers/usb/gadget/function/f_uac1.c
drivers/usb/gadget/function/u_uac1.h