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> Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
14 KiB
14 KiB