linux/drivers/usb/gadget/function
William Wu 2f07a1986d usb: gadget: f_uac: add volume and mute feature unit
This patch adds feature unit descriptor for f_uac1 and f_uac2,
and supports volume control and mute control for capture and
playback.

By default, the volume and mute feature unit descriptors are NOT
add in the UAC descriptor. The user can define whether the UAC1/
UAC2 shall support volume and mute functionality via the attributes
c_feature_unit/p_feature_unit in the UAC function directory.

For example, user can add the volume and mute feature unit descriptors
for UAC1 capture and playback:

echo 1 > /config/usb-gadget/gadget/functions/uac1.name/c_feature_unit
echo 1 > /config/usb-gadget/gadget/functions/uac1.name/p_feature_unit

This patch also adds uevents for volume and mute functionality. The
user can complete the real volume and mute control functionality in
the user space depends on these new uevents (like the uac_app in the
RV1126/RV1109 SDK).

Change-Id: I76d447a19fd69e038851040cd73e6c7d420f467d
Signed-off-by: William Wu <william.wu@rock-chips.com>
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com>
2020-11-08 19:19:07 +08:00
..
f_accessory.c
f_acm.c
f_audio_source.c
f_ecm.c
f_eem.c
f_fs.c
f_hid.c
f_loopback.c
f_mass_storage.c
f_mass_storage.h
f_midi.c
f_ncm.c usb: gadget: f_ncm: allow using NCM in SuperSpeed Plus gadgets. 2020-10-30 10:38:33 +01:00
f_obex.c
f_phonet.c
f_printer.c usb: gadget: function: printer: fix use-after-free in __lock_acquire 2020-10-30 10:38:29 +01:00
f_rndis.c usb: gadget: f_rndis: handle the packet filter class request 2020-08-26 11:11:46 +08:00
f_serial.c
f_sourcesink.c
f_subset.c
f_tcm.c usb: gadget: f_tcm: Fix some resource leaks in some error paths 2020-09-03 11:24:23 +02:00
f_uac1_legacy.c Merge tag 'ASB-2020-09-05_4.19-stable' of https://android.googlesource.com/kernel/common 2020-09-24 17:59:50 +08:00
f_uac1.c usb: gadget: f_uac: add volume and mute feature unit 2020-11-08 19:19:07 +08:00
f_uac2.c usb: gadget: f_uac: add volume and mute feature unit 2020-11-08 19:19:07 +08:00
f_uvc.c usb: gadget: f_uvc: support uvc and adb use independently 2020-10-12 15:19:38 +08:00
f_uvc.h
g_zero.h
Makefile
ndis.h
rndis.c
rndis.h
storage_common.c
storage_common.h
tcm.h
u_audio.c usb: gadget: f_uac: add volume and mute feature unit 2020-11-08 19:19:07 +08:00
u_audio.h usb: gadget: f_uac: add volume and mute feature unit 2020-11-08 19:19:07 +08:00
u_ecm.h
u_eem.h
u_ether_configfs.h
u_ether.c usb: gadget: u_ether: enable qmult on SuperSpeed Plus as well 2020-10-29 09:55:13 +01:00
u_ether.h
u_fs.h
u_gether.h
u_hid.h
u_midi.h
u_ncm.h
u_phonet.h
u_printer.h
u_rndis.h
u_serial.c
u_serial.h
u_tcm.h
u_uac.h usb: gadget: f_uac: add volume and mute feature unit 2020-11-08 19:19:07 +08:00
u_uac1_legacy.c
u_uac1_legacy.h
u_uvc.h
uvc_configfs.c
uvc_configfs.h
uvc_queue.c
uvc_queue.h
uvc_v4l2.c
uvc_v4l2.h
uvc_video.c
uvc_video.h
uvc.h