summaryrefslogtreecommitdiff
path: root/Documentation/usb/gadget-testing.txt
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2014-12-16 16:56:40 +0300
committerFelipe Balbi <balbi@ti.com>2015-01-12 21:13:25 +0300
commitdae0358694abe0bbca3b83a922698b1f24c4299a (patch)
tree392d4b5aaf0b5699e33ee62bd057ab759785cc98 /Documentation/usb/gadget-testing.txt
parent480a912be4eb51e30aec721731b9cf476b2ee861 (diff)
downloadlinux-dae0358694abe0bbca3b83a922698b1f24c4299a.tar.xz
Documentation: usb: UAC1 function testing
Summary of how to test UAC1 function of USB gadget. Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'Documentation/usb/gadget-testing.txt')
-rw-r--r--Documentation/usb/gadget-testing.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/usb/gadget-testing.txt b/Documentation/usb/gadget-testing.txt
index 73a5b0c34174..40d22d82cc5a 100644
--- a/Documentation/usb/gadget-testing.txt
+++ b/Documentation/usb/gadget-testing.txt
@@ -16,6 +16,7 @@ provided by gadgets.
13. RNDIS function
14. SERIAL function
15. SOURCESINK function
+16. UAC1 function
1. ACM function
@@ -587,3 +588,29 @@ device: run the gadget
host: test-usb
http://www.linux-usb.org/usbtest/testusb.c
+
+16. UAC1 function
+=================
+
+The function is provided by usb_f_uac1.ko module.
+
+Function-specific configfs interface
+------------------------------------
+
+The function name to use when creating the function directory is "uac1".
+The uac1 function provides these attributes in its function directory:
+
+ audio_buf_size - audio buffer size
+ fn_cap - capture pcm device file name
+ fn_cntl - control device file name
+ fn_play - playback pcm device file name
+ req_buf_size - ISO OUT endpoint request buffer size
+ req_count - ISO OUT endpoint request count
+
+The attributes have sane default values.
+
+Testing the UAC1 function
+-------------------------
+
+device: run the gadget
+host: aplay -l # should list our USB Audio Gadget