summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2011-12-22 09:34:02 +0800
committerEric Nelson <eric.nelson@boundarydevices.com>2012-10-12 07:08:39 -0700
commita29ec0f90a0eb22c64d1b7d332e0404d6eef53bf (patch)
tree7490fc1f5282a436fcb45fa4010b2141bdbd5045 /Documentation
parent9a9b1358ef867094c7472d46a2a9a3d1d7f0eda5 (diff)
ENGR00170819-2 usb-gadget: add test document for usb audio
Add test document Signed-off-by: Peter Chen <peter.chen@freescale.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/arm/imx/udc.txt21
1 files changed, 20 insertions, 1 deletions
diff --git a/Documentation/arm/imx/udc.txt b/Documentation/arm/imx/udc.txt
index fdbaa848983b..e532f310d24d 100644
--- a/Documentation/arm/imx/udc.txt
+++ b/Documentation/arm/imx/udc.txt
@@ -1,4 +1,4 @@
-How to test remote wakeup (Make sure connecting to usb host and gadget is loaded)
+* How to test remote wakeup (Make sure connecting to usb host and gadget is loaded)
1. Prepare a usb host which featured with remote wakeup
alternatively, You can use another i.mx board (like mx50 rdp, or mx6q)
2. Boot up both boards, and connect two boards with usb cable
@@ -14,3 +14,22 @@ echo 1 > /sys/devices/platform/fsl-usb2-udc/gadget/start_remote_wakeup
6. The expected behaviour is: host is waked up, and there is
not re-enumeration happens.
+* How to test usb audio gadget
+1. Test Condition
+- Host PC, only Macbook Pro (Mac OS 10.6.5+) & Ubuntu 10.10 (Linux 2.6.38+)
+are supported, Windows OS are not supported now.
+- One USB MicroAB cable and one earphone
+2. Test procedure
+- Power up the board
+- Login in rootfs, load usb audio module with below commands:
+modprobe g_audio req_count=20 audio_buf_size=8192 audio_sample_rate=44100
+- Connect board with PC using MicroAB cable
+- For Ubuntu PC, you can use aplay -l to get the sound card num for this
+usb audio gadget, usually the number is 1. For Macbook, you need to choose
+"Linux USB Audio Gadget" on the "Sound"->"Output" tab of System Preferences.
+- Choose several 44.1Khz wav file to play, you can use aplay or iTune according
+to different PCs.
+3. Constraints
+Since there is no feedback at current usb audio framework,
+it may have pop noise/no sound after play some minutes.
+