> > Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@xxxxxxxxxxx> > --- > Documentation/usb/gadget-testing.txt | 27 > +++++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > > diff --git a/Documentation/usb/gadget-testing.txt > b/Documentation/usb/gadget-testing.txt > index 40d22d8..b946f79 100644 > --- a/Documentation/usb/gadget-testing.txt > +++ b/Documentation/usb/gadget-testing.txt > @@ -17,6 +17,7 @@ provided by gadgets. > 14. SERIAL function > 15. SOURCESINK function > 16. UAC1 function > +17. UAC2 function > > > 1. ACM function > @@ -614,3 +615,29 @@ Testing the UAC1 function > > device: run the gadget > host: aplay -l # should list our USB Audio Gadget > + > +17. UAC2 function > +================= > + > +The function is provided by usb_f_uac2.ko module. > + > +Function-specific configfs interface > +------------------------------------ > + > +The function name to use when creating the function directory is "uac2". > +The uac2 function provides these attributes in its function directory: > + > + chmask - capture channel mask > + c_srate - capture sampling rate > + c_ssize - capture sample size (bytes) > + p_chmask - playback channel mask > + p_srate - playback sampling rate > + p_ssize - playback sample size (bytes) > + > +The attributes have sane default values. > + > +Testing the UAC2 function > +------------------------- > + > +device: run the gadget UAC2 may a little complicated, you may need to run below command at device side: root@imx6sxsabresd:~# arecord -f dat -t wav -D hw:2,0 | aplay -D hw:0,0 & arecord uses uac2_gadget to record, aplay uses real codec to play > +host: aplay -l # should list our USB Audio Gadget > -- > 1.9.1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body > of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at > http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html