Firefly开源社区

标题: [懇請開示] 想開啟 USB Gadget Drivers (Audio Gadget) [打印本页]

作者: woody.lee    时间: 2016-5-20 09:36
标题: [懇請開示] 想開啟 USB Gadget Drivers (Audio Gadget)
請教大神:

  應如何開啟並測試. 感謝大神


作者: woody.lee    时间: 2016-5-20 10:54
目前 make menuconfig -> search gadget -> (1) -> 選 Audio Gadget -> Save & Exit

  x x         <*>   USB Gadget Drivers (Audio Gadget)  --->                                   x x
  x x                 Audio Gadget                                                            x x
  x x         [ ]       UAC 1.0 (Legacy)                                                      x x

重新build kernel 放上板子上跑, 結果如下
root@firefly:~# cat /proc/asound/cards
0 [UAC2Gadget     ]: UAC2_Gadget - UAC2_Gadget
                      UAC2_Gadget 0
1 [RKES8323       ]: RK_ES8323 - RK_ES8323
                      RK_ES8323
2 [RKHDMISPDIF    ]: RK-HDMI-SPDIF - RK-HDMI-SPDIF
                      RK-HDMI-SPDIF

但連接 rk3288(otg) <-> Win7 並沒有USB偵測出現新的音效裝置


懇求大神開示 Orz
作者: 牛头    时间: 2016-5-20 10:56
没有做过,帮顶~
作者: woody.lee    时间: 2016-5-20 14:39
另外, dmesg 常可見
[14196.871991] init: ttyS2 main process (4184) terminated with status 1
[14196.872410] init: ttyS2 main process ended, respawning
[14206.764955] init: ttyS2 main process (4187) terminated with status 1
[14206.765366] init: ttyS2 main process ended, respawning
[14216.652770] init: ttyS2 main process (4189) terminated with status 1
[14216.653227] init: ttyS2 main process ended, respawning
[14226.538692] init: ttyS2 main process (4191) terminated with status 1
[14226.539144] init: ttyS2 main process ended, respawning
[14236.425308] init: ttyS2 main process (4193) terminated with status 1
[14236.425719] init: ttyS2 main process ended, respawning
[14246.314763] init: ttyS2 main process (4195) terminated with status 1
[14246.315161] init: ttyS2 main process ended, respawning
[14256.211485] init: ttyS2 main process (4197) terminated with status 1
[14256.211921] init: ttyS2 main process ended, respawning
[14266.097866] init: ttyS2 main process (4199) terminated with status 1
[14266.099003] init: ttyS2 main process ended, respawning
[14275.988973] init: ttyS2 main process (4201) terminated with status 1
[14275.989393] init: ttyS2 main process ended, respawning
[14285.876824] init: ttyS2 main process (4203) terminated with status 1
[14285.877256] init: ttyS2 main process ended, respawning
[14295.783400] init: ttyS2 main process (4205) terminated with status 1
[14295.783924] init: ttyS2 main process ended, respawning
[14305.683830] init: ttyS2 main process (4207) terminated with status 1
[14305.684240] init: ttyS2 main process ended, respawning
[14315.570145] init: ttyS2 main process (4209) terminated with status 1
[14315.570551] init: ttyS2 main process ended, respawning
[14325.460627] init: ttyS2 main process (4211) terminated with status 1
[14325.461079] init: ttyS2 main process ended, respawning
[14335.348002] init: ttyS2 main process (4213) terminated with status 1
[14335.348415] init: ttyS2 main process ended, respawning
[14345.236314] init: ttyS2 main process (4215) terminated with status 1
[14345.236750] init: ttyS2 main process ended, respawning
[14355.127797] init: ttyS2 main process (4217) terminated with status 1
[14355.128189] init: ttyS2 main process ended, respawning
[14365.017737] init: ttyS2 main process (4219) terminated with status 1
[14365.018150] init: ttyS2 main process ended, respawning
[14374.906715] init: ttyS2 main process (4221) terminated with status 1
[14374.907147] init: ttyS2 main process ended, respawning
[14384.798319] init: ttyS2 main process (4223) terminated with status 1
[14384.798720] init: ttyS2 main process ended, respawning
[14394.685626] init: ttyS2 main process (4225) terminated with status 1
[14394.686063] init: ttyS2 main process ended, respawning
[14404.574125] init: ttyS2 main process (4227) terminated with status 1
[14404.574516] init: ttyS2 main process ended, respawning
[14414.461412] init: ttyS2 main process (4229) terminated with status 1
[14414.461844] init: ttyS2 main process ended, respawning
[14424.354397] init: ttyS2 main process (4231) terminated with status 1
[14424.355845] init: ttyS2 main process ended, respawning
[14434.256767] init: ttyS2 main process (4233) terminated with status 1
[14434.257204] init: ttyS2 main process ended, respawning
想問這有事嗎 @@?
作者: woody.lee    时间: 2016-5-20 18:04
繼續 @@"
衝了許久的浪, 上岸一會, 小歇片刻
============{以上廢話}============

echo 1 > /sys/bus/platform/drivers/usb20_otg/dwc_otg_conn_en
之後,
M$ 系統提示有新的 USB 硬體接入, 但是 {音效,視訊及遊戲控制器} 驅動裝置[ Source/Sink ] 顯示為  (!)驚嘆號
應該是對應到 ./drivers/usb/gadget/f_uac2.c:      [STR_ASSOC].s = "Source/Sink",

dmesg 顯示:
在 afunc_set_alt 裡面 印出了 snd_uac2 snd_uac2.0: free_ep:946 Error!

懇請大神 釋疑
作者: woody.lee    时间: 2016-5-23 10:36
既然接 Windows 系統驅動顯示是(!)驚嘆號, 就改接 Linux 系統試看看:


dmesg顯示
[432450.249412] usb 2-1.6: USB disconnect, device number 5
[432461.964368] usb 2-1.6: new high-speed USB device number 6 using ehci-pci
[432462.058621] usb 2-1.6: New USB device found, idVendor=1d6b, idProduct=0101
[432462.058626] usb 2-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[432462.058629] usb 2-1.6: Product: Linux USB Audio Gadget
[432462.058631] usb 2-1.6: Manufacturer: Linux 3.10.0 with dwc_otg_pcd
[432462.130287] retire_capture_urb: 4548 callbacks suppressed


root@atuser123:~# cat /proc/asound/cards
0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7130000 irq 47
1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf7080000 irq 17
2 [Gadget         ]: USB-Audio - Linux USB Audio Gadget
                      Linux 3.10.0 with dwc_otg_pcd Linux USB Audio Gadget at usb-0000:00:1d.0-1.6, h


在 rk3288 上面執行:
arecord -D plughw:2,0 /root/test.wav -v
然後, 在 Linux 上面執行:
aplay   -D plughw:2,0   /root/Media-Convert_test3_PCM_Stereo_VBR_16SS_11025Hz.wav -v


把檔案放到windows上來播放聽看看, 好像有點東西了~~


有大神知道這個嗎??
retire_capture_urb: 4931 callbacks suppressed
作者: woody.lee    时间: 2016-5-25 09:21
本帖最后由 woody.lee 于 2016-5-25 09:25 编辑

昨天搞了一天沒弄出甚麼東西, 真是讓人沮喪 Orz

請大神指點迷津, 目前狀態:


RK3288     <->   Ubuntu      Result
arecord               aplay          OK
aplay                  arecord       Fail


RK3288     <->   Win7         (!)Source/Sink
作者: woody.lee    时间: 2016-5-25 17:22
改成 insmod 方式作驗證

dmesg 訊息如下

[  146.166042] WARN::dwc_otg_pcd_ep_stop_transfer:1762: dwc_otg_pcd_ep_stop_transfer: timeout diepctl.snak
[  146.166042]
[  146.818142] init: ttyS2 main process (1323) terminated with status 1
[  146.818424] init: ttyS2 main process ended, respawning
[  147.082139] rockchip_i2c ff650000.i2c: Addr[0x0040] wait event timeout, state: 1, is_busy: 1, error: 0, complete_what: 0x0, ipd: 0x10
[  147.084193] rockchip_i2c ff650000.i2c: I2C_CON: start bit is set
[  147.279043] rockchip_i2c ff650000.i2c: Addr[0x0040] wait event timeout, state: 1, is_busy: 1, error: 0, complete_what: 0x0, ipd: 0x10
[  147.281085] rockchip_i2c ff650000.i2c: I2C_CON: start bit is set
[  147.282099] ###################WARNING:set voltage is error!voltage set is 950000 mv -110
[  147.282125] DVFS ERR:        dvfs_regulator_set_voltage_readback: now read back to check voltage
[  147.475932] rockchip_i2c ff650000.i2c: Addr[0x0040] wait event timeout, state: 1, is_busy: 1, error: 0, complete_what: 0x0, ipd: 0x10
[  147.477978] rockchip_i2c ff650000.i2c: I2C_CON: start bit is set
[  147.478992] DVFS ERR:        dvfs_regulator_set_voltage_readback: set ERROR AND NOT effected, volt=937500
[  147.479078] DVFS ERR:        dvfs_scale_volt_direct: vd_arm set voltage up err ret = -110, Vnew = 950000(was 900000)mV
[  147.672821] rockchip_i2c ff650000.i2c: Addr[0x0040] wait event timeout, state: 1, is_busy: 1, error: 0, complete_what: 0x0, ipd: 0x10
[  147.674863] rockchip_i2c ff650000.i2c: I2C_CON: start bit is set
[  147.675879] DVFS WARNING:    dvfs_reset_volt:vd(vd_arm) try to reload volt = 937500
[  147.873313] WARN::dwc_otg_pcd_ep_stop_transfer:1786: dwc_otg_pcd_ep_stop_transfer: timeout diepctl.epdis
[  147.873313]
[  156.706129] init: ttyS2 main process (1327) terminated with status 1
[  156.706421] init: ttyS2 main process ended, respawning
[  166.581110] init: ttyS2 main process (1330) terminated with status 1
[  166.581498] init: ttyS2 main process ended, respawning
[  176.469193] init: ttyS2 main process (1334) terminated with status 1
[  176.469487] init: ttyS2 main process ended, respawning
[  186.335126] init: ttyS2 main process (1336) terminated with status 1
[  186.335413] init: ttyS2 main process ended, respawning


懇請大神度化有緣人~~
作者: woody.lee    时间: 2016-5-26 16:10
老感覺挫折像海浪般襲來, 這浪也太大了唄!
更新一下進度:
insmod後, rmmod 就會出現在 dmesg裏
[   67.803881] ------------[ cut here ]------------
[   67.803999] WARNING: at drivers/base/core.c:228 device_release+0x7c/0x90()
[   67.804499] Device 'snd_uac2.0' does not have a release() function, it is broken and must be fixed.
[   67.815224] Modules linked in: g_audio(-) mali_kbase libcomposite
[   67.815336] CPU: 2 PID: 1201 Comm: rmmod Not tainted 3.10.0 #38
[   67.815443] [<c0013e04>] (unwind_backtrace+0x0/0xe0) from [<c0011720>] (show_stack+0x10/0x14)
[   67.815520] [<c0011720>] (show_stack+0x10/0x14) from [<c002aa40>] (warn_slowpath_common+0x4c/0x68)
[   67.815590] [<c002aa40>] (warn_slowpath_common+0x4c/0x68) from [<c002aadc>] (warn_slowpath_fmt+0x2c/0x3c)
[   67.815659] [<c002aadc>] (warn_slowpath_fmt+0x2c/0x3c) from [<c02e8ca8>] (device_release+0x7c/0x90)
[   67.815728] [<c02e8ca8>] (device_release+0x7c/0x90) from [<c0264c6c>] (kobject_release+0x68/0x7c)
[   67.815808] [<c0264c6c>] (kobject_release+0x68/0x7c) from [<bf077a94>] (afunc_unbind+0x44/0xa4 [g_audio])
[   67.815917] [<bf077a94>] (afunc_unbind+0x44/0xa4 [g_audio]) from [<bf000d78>] (remove_config+0x6c/0xe4 [libcomposite])
[   67.816032] [<bf000d78>] (remove_config+0x6c/0xe4 [libcomposite]) from [<bf002b9c>] (__composite_unbind+0x40/0xa0 [libcomposite])
[   67.816132] [<bf002b9c>] (__composite_unbind+0x40/0xa0 [libcomposite]) from [<c0492398>] (usb_gadget_remove_driver+0x68/0x9c)
[   67.817035] [<c0492398>] (usb_gadget_remove_driver+0x68/0x9c) from [<c0492408>] (usb_gadget_unregister_driver+0x3c/0x78)
[   67.817117] [<c0492408>] (usb_gadget_unregister_driver+0x3c/0x78) from [<c007e0e0>] (SyS_delete_module+0x18c/0x1fc)
[   67.817191] [<c007e0e0>] (SyS_delete_module+0x18c/0x1fc) from [<c000da00>] (ret_fast_syscall+0x0/0x30)
[   67.817233] ---[ end trace 7e1c631e2a90cd3b ]---


作者: woody.lee    时间: 2016-5-27 08:54
更新下進度:
1. RK3288下 arecord 可以錄到 從 OTG port 進來的聲音
2. RK3288下 aplay 會有下列訊息:
root@firefly:/home/firefly/Downloads# aplay   -D plughw:2,0  -f S16_LE -r192000 64K_S16_LE_Mono.wav
Playing WAVE '64K_S16_LE_Mono.wav' : Signed 16 bit Little Endian, Rate 64000 Hz, Mono
underrun!!! (at least 1051.375 ms long)
underrun!!! (at least 4.734 ms long)


根據網路上查到的資料
來源引用: http://blog.csdn.net/azloong/article/details/6277457
overrun(录制时,数据都满了,还没被alsa驱动读走)和underrun(需要数据来播放,alsa驱动却不写入数据)


到底問題在哪呢 @@?
作者: woody.lee    时间: 2016-5-27 13:51
root@firefly:/home/firefly/Downloads# reboot

Broadcast message from root@firefly
        (/dev/ttyFIQ0) at 5:50 ...

The system is going down for reboot NOW!
root@firefly:/home/firefly/Downloads# wait-for-state stop/waiting
* Stopping rsync daemon rsync                                           [ OK ]
[ 1669.435045] Unable to handle kernel paging request at virtual address 32460410
[ 1669.442509] pgd = ecb34000
[ 1669.445314] [32460410] *pgd=00000000
[ 1669.449044] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[ 1669.454500] Modules linked in: g_audio mali_kbase libcomposite
[ 1669.460636] CPU: 1 PID: 1205 Comm: console-kit-dae Not tainted 3.10.0 #38
[ 1669.467602] task: ec9ce400 ti: ecae8000 task.ti: ecae8000
[ 1669.473172] PC is at migrate_task_rq_fair+0x60/0x148
[ 1669.478292] LR is at set_task_cpu+0x11c/0x1f4
[ 1669.482783] pc : [<c005be70>]    lr : [<c00572e4>]    psr: 200e0093
[ 1669.482783] sp : ecae9da8  ip : 00000000  fp : ecae9e4c
[ 1669.494536] r10: 600e0093  r9 : ecb6d440  r8 : 00000000
[ 1669.499904] r7 : ece41848  r6 : 00000001  r5 : c1ed7f88  r4 : ece41400
[ 1669.506599] r3 : 1c5e1c5e  r2 : c0ccdf40  r1 : c0cd9298  r0 : ece41400
[ 1669.513299] Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
[ 1669.520706] Control: 10c5387d  Table: 2cb3406a  DAC: 00000015
[ 1669.526600]
[ 1669.526600] PC: 0xc005bdf0:
[ 1669.530998] bdf0  e3500001 e2d1c000 b1a06002 b1a07003 e1c463f0 e8bd80d0 c0cd84ac c0cf6a90
[ 1669.539667] be10  e92d43f8 e3a03f5e e18320d0 e1a04000 e590515c e1921003 08bd83f8 e5908054
[ 1669.548329] be30  e3580000 1a00001a e5903004 e59f2104 e5933014 e3530000 e283101f a1a01003
[ 1669.556991] be50  e1a012c1 e7921101 e203201f e1a02231 e3120001 0a00000e e59f10dc e59f20dc
[ 1669.565651] be70  e7916103 e0826006 e1a00006 eb1cd6b1 e1a07000 e1a00006 ebffe86e e1a00005
[ 1669.574313] be90  e1a01008 ebfffebe e1a00006 e1a01007 eb1cd777 e594315c e2832058 e1b28f9f
[ 1669.582974] beb0  e3a03f5e e18320d4 e0588002 e0c99003 e1983009 0a000010 e3590000 03580e7e
[ 1669.591636] bed0  e5940180 83a02000 8a00000a e358001f e3a01000 e1a06008 9a000002 e1a022a8
[ 1669.600300]
[ 1669.600300] LR: 0xc0057264:
[ 1669.604698] 7264  e5963000 e1a01004 e5960004 e1a02005 e2866008 e12fff33 e0673006 e0833008
[ 1669.613362] 7284  e5133008 e3530000 1afffff4 e1a0200d e3c23d7f e3c3303f e5932004 e2422001
[ 1669.622023] 72a4  e5832004 e5933000 e3130002 0a000000 eb1ce6bd e5943004 e5933014 e1530005
[ 1669.630686] 72c4  0a000025 e5943030 e5933024 e3530000 0a000002 e1a00004 e1a01005 e12fff33
[ 1669.639349] 72e4  e1c427d8 e3a06001 e3a07000 e0922006 e0a33007 e1c427f8 e59f30b0 e5933010
[ 1669.648012] 7304  e3530000 0a00000b e24b8064 e3a01048 e1a00008 eb082c38 e3a02000 e3a03000
[ 1669.656674] 7324  e3a00004 e1cd20f8 e1a02006 e1a03007 e58d8000 eb018c50 e5943004 e3a01000
[ 1669.665336] 7344  e59f006c e24b2070 e50b4070 e5933014 e50b5068 e50b306c ebffdf27 e59431b4
[ 1669.674002]
[ 1669.674002] SP: 0xecae9d28:
[ 1669.678398] 9d28  ece40538 00000000 ece40538 c005f9d4 00200200 edbfd944 0000016b 00000000
[ 1669.687060] 9d48  0017309c c005be70 200e0093 ffffffff ecae9d94 c000d598 ece41400 c0cd9298
[ 1669.695720] 9d68  c0ccdf40 1c5e1c5e ece41400 c1ed7f88 00000001 ece41848 00000000 ecb6d440
[ 1669.704381] 9d88  600e0093 ecae9e4c 00000000 ecae9da8 c00572e4 c005be70 200e0093 ffffffff
[ 1669.713041] 9da8  c005be10 ece41400 00000000 00000001 ece41848 00000000 ecb6d440 c00572e4
[ 1669.721699] 9dc8  00000001 00000000 c1ecf3d8 c1ecef40 ec9ce400 c005d550 ec9ce438 ece40538
[ 1669.730359] 9de8  c1ecef40 c07972a0 ece40500 c0cd9298 01201000 c0056c8c c1ecef40 00000001
[ 1669.739018] 9e08  ecae9e2c c0056cf8 00000000 c005d26c 00000001 ece40500 00000010 00000000
[ 1669.747680]
[ 1669.747680] FP: 0xecae9dcc:
[ 1669.752075] 9dcc  00000000 c1ecf3d8 c1ecef40 ec9ce400 c005d550 ec9ce438 ece40538 c1ecef40
[ 1669.760739] 9dec  c07972a0 ece40500 c0cd9298 01201000 c0056c8c c1ecef40 00000001 ecae9e2c
[ 1669.769400] 9e0c  c0056cf8 00000000 c005d26c 00000001 ece40500 00000010 00000000 ecb90000
[ 1669.778060] 9e2c  ece41400 00000000 ece41400 00000004 00000001 ece41848 00000000 ecae9e74
[ 1669.786719] 9e4c  c005941c 00000001 ece41400 00000000 ecae8000 00060013 ecae9efc ecb6d440
[ 1669.795378] 9e6c  b6d27fc2 ed7035ec c003a6c8 00000021 ecb6d440 ece41400 c003b500 00000013
[ 1669.804039] 9e8c  ece416ac 003c0000 ecae8000 00000013 ed703984 ed703984 c003c85c 00000000
[ 1669.812701] 9eac  ed703480 00000012 ed7035e8 ecae9ee8 00000005 00000000 ecae9fb0 ffffffff
[ 1669.821366]
[ 1669.821366] R0: 0xece41380:
[ 1669.825762] 1380  ece4137c 00000000 ece41388 ece41388 00000000 00000000 00000000 00000001
[ 1669.834422] 13a0  00000000 ece413a4 ece413a4 00000000 00000000 ece413b4 ece413b4 edba16c0
[ 1669.843081] 13c0  c002ed4c 00000000 00000000 00000000 00000000 00000020 00000000 0000c350
[ 1669.851740] 13e0  0000c350 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1669.860396] 1400  00000100 ecb90000 00000002 00404140 00000000 00000000 00000000 00000000
[ 1669.869054] 1420  00000078 00000078 00000078 00000000 c07972a0 00000000 00000400 00400000
[ 1669.877712] 1440  00000001 00000000 00000000 ece4144c ece4144c 00000000 a84af99f 00000011
[ 1669.886371] 1460  00042c67 00000000 3a5235b5 fffffffe 0002d43a 00000000 00000002 00000000
[ 1669.895032]
[ 1669.895032] R1: 0xc0cd9218:
[ 1669.924250] 9218  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1669.945390] 9238  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1669.966406] 9258  00000064 c1ee70c0 00009000 0000000f c1ee7100 00000004 00000009 c1ee7080
[ 1669.987376] 9278  0000002c c1ec3000 c1ee7000 c1ee7040 00000001 00001000 00000000 00000003
[ 1670.008298] 9298  011f8000 01201000 0120a000 01213000 00050800 00000001 0002e7f1 0007ffff
[ 1670.029209] 92b8  0000f730 00002000 00000000 00000032 0000fffa 00000001 ee001e00 ee308f10
[ 1670.050122] 92d8  00000001 00000001 ee001900 ee001480 00000011 0001ffff c1eeb200 ee001b80
[ 1670.071082] 92f8  00000064 00000010 0000ffff c1f6b200 ee001400 00100000 ee04c000 ee04b000
[ 1670.092030]
[ 1670.092030] R2: 0xc0ccdec0:
[ 1670.121089] dec0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1670.142136] dee0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1670.163094] df00  0000a1ff 00000008 54b4c3e7 53e887cd 534eea5b 00000000 00010000 00000000
[ 1670.183985] df20  00000000 00000001 6e75722f 6d68732f 00000000 00000000 00000000 00000000
[ 1670.204794] df40  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1670.225526] df60  00000000 bbc80c91 00000000 00000000 00000000 00000000 00000000 00000000
[ 1670.246258] df80  0000001c 120ff47c 00000000 cf478004 53e887cd 120ff47c 00000000 00000000
[ 1670.266886] dfa0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1670.287441]
[ 1670.287441] R4: 0xece41380:
[ 1670.315528] 1380  ece4137c 00000000 ece41388 ece41388 00000000 00000000 00000000 00000001
[ 1670.336151] 13a0  00000000 ece413a4 ece413a4 00000000 00000000 ece413b4 ece413b4 edba16c0
[ 1670.356781] 13c0  c002ed4c 00000000 00000000 00000000 00000000 00000020 00000000 0000c350
[ 1670.377374] 13e0  0000c350 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1670.397820] 1400  00000100 ecb90000 00000002 00404140 00000000 00000000 00000000 00000000
[ 1670.418098] 1420  00000078 00000078 00000078 00000000 c07972a0 00000000 00000400 00400000
[ 1670.438443] 1440  00000001 00000000 00000000 ece4144c ece4144c 00000000 a84af99f 00000011
[ 1670.458687] 1460  00042c67 00000000 3a5235b5 fffffffe 0002d43a 00000000 00000002 00000000
[ 1670.478762]
[ 1670.478762] R5: 0xc1ed7f08:
[ 1670.505999] 7f08  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1670.526050] 7f28  00000000 00000000 00000000 00000000 00000000 00000000 6ccd6ccd 0000000b
[ 1670.545971] 7f48  00000400 00000200 00000100 00000088 0000008a 00022152 00000000 00000000
[ 1670.565834] 7f68  00000000 00000000 00002c00 00000000 00001f3a 00000000 0000d657 00000000
[ 1670.585602] 7f88  00002c00 00000000 0000000b 0000000b 24c268a8 00000007 71bfc3c6 00000005
[ 1670.605233] 7fa8  71bfc3c6 00000005 edb46e40 ec9c8540 ec884138 00000000 00000000 00000000
[ 1670.624995] 7fc8  000001bd 00000000 000003cc 00000000 0000001f 00000000 00184b22 00000000
[ 1670.644666] 7fe8  00000000 00000000 00184b21 00000000 000000e9 000000e9 000003ce 00000000
[ 1670.664198]
[ 1670.664198] R7: 0xece417c8:
[ 1670.690217] 17c8  00000000 00000000 00000000 00000000 00000000 ec8a12c0 ecb7ed00 c0cf5b00
[ 1670.709659] 17e8  ecb6d440 ed703480 00000000 00000000 00000000 00000000 00000000 00000000
[ 1670.729032] 1808  ece41808 ece41808 00000000 00000000 00000000 00000000 00000000 00000000
[ 1670.748269] 1828  00000000 00000000 00000000 ffffffff ffffffff 00000004 00000006 00010001
[ 1670.767467] 1848  00040003 ece4184c ece4184c 00000000 00000000 00000000 00000000 00000000
[ 1670.786586] 1868  00000000 00000000 00000000 00000000 c0e218c4 ece4097c ee19d47c b627f460
[ 1670.805842] 1888  ece41888 ece41888 00000000 00000000 00000000 00000001 00000000 ece418a4
[ 1670.825038] 18a8  ece418a4 00000000 00000000 ece418b4 ece418b4 00000000 00000000 00000000
[ 1670.844171]
[ 1670.844171] R9: 0xecb6d3c0:
[ 1670.869537] d3c0  ffffffff ffffffff ffffffff ffffffff 00003e6c 00003e6c 000c8000 000c8000
[ 1670.888720] d3e0  00000000 00000000 00000000 00000000 ffffffff ffffffff 00000000 00000000
[ 1670.907893] d400  00000000 00000000 00160016 ecb6d40c ecb6d40c 00000000 00000000 00000001
[ 1670.927007] d420  00000000 ecb6d424 ecb6d424 00000000 00000000 00000000 00000000 00000000
[ 1670.946036] d440  00000041 00000041 00000041 00080008 ecb6d450 ecb6d450 ec9ce400 ecb6d45c
[ 1670.965016] d460  ecb6d45c 00000000 00000000 00000013 00000000 00000000 00000021 00000000
[ 1670.984117] d480  00000000 00000000 ecb6d488 ecb6d488 ecb6d490 00000000 00000000 00000000
[ 1671.003129] d4a0  00000000 00000000 00000000 00000000 c00306c0 c1ec3740 00000000 ffffffff
[ 1671.022121] Process console-kit-dae (pid: 1205, stack limit = 0xecae8238)
[ 1671.039466] Stack: (0xecae9da8 to 0xecaea000)
[ 1671.054480] 9da0:                   c005be10 ece41400 00000000 00000001 ece41848 00000000
[ 1671.073553] 9dc0: ecb6d440 c00572e4 00000001 00000000 c1ecf3d8 c1ecef40 ec9ce400 c005d550
[ 1671.092733] 9de0: ec9ce438 ece40538 c1ecef40 c07972a0 ece40500 c0cd9298 01201000 c0056c8c
[ 1671.111964] 9e00: c1ecef40 00000001 ecae9e2c c0056cf8 00000000 c005d26c 00000001 ece40500
[ 1671.131259] 9e20: 00000010 00000000 ecb90000 ece41400 00000000 ece41400 00000004 00000001
[ 1671.150461] 9e40: ece41848 00000000 ecae9e74 c005941c 00000001 ece41400 00000000 ecae8000
[ 1671.169746] 9e60: 00060013 ecae9efc ecb6d440 b6d27fc2 ed7035ec c003a6c8 00000021 ecb6d440
[ 1671.188992] 9e80: ece41400 c003b500 00000013 ece416ac 003c0000 ecae8000 00000013 ed703984
[ 1671.208418] 9ea0: ed703984 c003c85c 00000000 ed703480 00000012 ed7035e8 ecae9ee8 00000005
[ 1671.227913] 9ec0: 00000000 ecae9fb0 ffffffff fffffdfc ecae8000 b6d27fc0 ecae8000 b6d27fc2
[ 1671.247476] 9ee0: 00000000 c0010c00 00000000 00000000 00000001 00020000 ed7cc308 00000013
[ 1671.267059] 9f00: 00000000 00000000 00000700 00000000 be8ad000 be88b000 bf000000 c01327bc
[ 1671.286627] 9f20: ed7cc300 00000000 ec9ce400 00000000 00000000 00000000 be82ebb4 00000008
[ 1671.306180] 9f40: ed7cc308 00000001 ede00580 00000000 00000000 00000000 00000000 c00f6c78
[ 1671.325674] 9f60: 00000000 ffffffff 00000004 0004bc28 000000a8 c000db84 ecae8000 00000000
[ 1671.345114] 9f80: 00000000 ecae9fb0 ecae8000 c000db84 000000a8 c000db84 00000000 c0010fa4
[ 1671.364640] 9fa0: 0002dd48 00000004 0004bc28 c000da40 0004bc28 00000004 ffffffff ffffffff
[ 1671.384111] 9fc0: 0002dd48 00000004 0004bc28 000000a8 b6dd82a5 00000001 00000001 00000000
[ 1671.403686] 9fe0: 00000000 be82ec08 b6d27fbb b6d27fc0 80010030 0004bc28 00000000 00000000
[ 1671.423337] [<c005be70>] (migrate_task_rq_fair+0x60/0x148) from [<c00572e4>] (set_task_cpu+0x11c/0x1f4)
[ 1671.444374] [<c00572e4>] (set_task_cpu+0x11c/0x1f4) from [<c005941c>] (try_to_wake_up+0x1bc/0x1fc)
[ 1671.465137] [<c005941c>] (try_to_wake_up+0x1bc/0x1fc) from [<c003a6c8>] (signal_wake_up_state+0x24/0x38)
[ 1671.486628] [<c003a6c8>] (signal_wake_up_state+0x24/0x38) from [<c003b500>] (do_signal_stop+0xd4/0x258)
[ 1671.508142] [<c003b500>] (do_signal_stop+0xd4/0x258) from [<c003c85c>] (get_signal_to_deliver+0x310/0x3fc)
[ 1671.530057] [<c003c85c>] (get_signal_to_deliver+0x310/0x3fc) from [<c0010c00>] (do_signal+0xa0/0x14c)
[ 1671.551546] [<c0010c00>] (do_signal+0xa0/0x14c) from [<c0010fa4>] (do_work_pending+0x4c/0x94)
[ 1671.572538] [<c0010fa4>] (do_work_pending+0x4c/0x94) from [<c000da40>] (work_pending+0xc/0x20)
[ 1671.593587] Code: e3120001 0a00000e e59f10dc e59f20dc (e7916103)
[ 1671.612126] ---[ end trace 6e0a6a4f09a2f7e0 ]---

.........................這該怎麼弄呢
作者: woody.lee    时间: 2016-6-7 15:22
在 windows 上用 usbview dump 出來的資訊:

呼喚大神! 懇請開示, 感恩^^

訊息如下
[Port3]  :  USB Composite Device


Device Power State:               PowerDeviceD0

       ---===>Device Information<===---
English product name: "Linux USB Audio Gadget"

ConnectionStatus:                  
Current Config Value:              0x01  -> Device Bus Speed: High
Device Address:                    0x02
Open Pipes:                           0
*!*ERROR:  No open pipes!

          ===>Device Descriptor<===
bLength:                           0x12
bDescriptorType:                   0x01
bcdUSB:                          0x0200
bDeviceClass:                      0x00  -> This is an Interface Class Defined Device
bDeviceSubClass:                   0x00
bDeviceProtocol:                   0x00
bMaxPacketSize0:                   0x40 = (64) Bytes
idVendor:                        0x1D6B = The Linux Foundation
idProduct:                       0x0101
bcdDevice:                       0x0310
iManufacturer:                     0x01
     English (United States)  "Linux 3.10.0 with dwc_otg_pcd"
iProduct:                          0x02
     English (United States)  "Linux USB Audio Gadget"
iSerialNumber:                     0x00
bNumConfigurations:                0x01

       ---===>Full Configuration Descriptor<===---

          ===>Configuration Descriptor<===
bLength:                           0x09
bDescriptorType:                   0x02
wTotalLength:                    0x006E  -> Validated
bNumInterfaces:                    0x02
bConfigurationValue:               0x01
iConfiguration:                    0x00
bmAttributes:                      0xC0  -> Self Powered
MaxPower:                          0xFA = 500 mA

          ===>Interface Descriptor<===
bLength:                           0x09
bDescriptorType:                   0x04
bInterfaceNumber:                  0x00
bAlternateSetting:                 0x00
bNumEndpoints:                     0x00
bInterfaceClass:                   0x01  -> Audio Interface Class
bInterfaceSubClass:                0x01  -> Audio Control Interface SubClass
bInterfaceProtocol:                0x00
iInterface:                        0x00

          ===>Audio Control Interface Header Descriptor<===
bLength:                           0x0A
bDescriptorType:                   0x24
bDescriptorSubtype:                0x01
bcdADC:                          0x0100
wTotalLength:                    0x0028
bInCollection:                     0x02
baInterfaceNr[1]:                  0x00
baInterfaceNr[2]:                  0x01

          ===>Audio Control Input Terminal Descriptor<===
bLength:                           0x0C
bDescriptorType:                   0x24
bDescriptorSubtype:                0x02
bTerminalID:                       0x01
wTerminalType:                   0x0101 (USB streaming)
bAssocTerminal:                    0x00
bNrChannels:                       0x02
wChannelConfig:                  0x0003
iChannelNames:                     0x00
iTerminal:                         0x00

          ===>Audio Control Output Terminal Descriptor<===
bLength:                           0x09
bDescriptorType:                   0x24
bDescriptorSubtype:                0x03
bTerminalID:                       0x03
wTerminalType:                   0x0301 (Speaker)
bAssocTerminal:                    0x02
bSourceID:                         0x02
iTerminal:                         0x00

          ===>Audio Control Feature Unit Descriptor<===
bLength:                           0x09
bDescriptorType:                   0x24
bDescriptorSubtype:                0x06
bUnitID:                           0x02
bSourceID:                         0x01
bControlSize:                      0x02
bmaControls[0]:                    03 00
iFeature:                          0x00

          ===>Interface Descriptor<===
bLength:                           0x09
bDescriptorType:                   0x04
bInterfaceNumber:                  0x01
bAlternateSetting:                 0x00
bNumEndpoints:                     0x00
bInterfaceClass:                   0x01  -> Audio Interface Class
bInterfaceSubClass:                0x02  -> Audio Streaming Interface SubClass
bInterfaceProtocol:                0x00
iInterface:                        0x00

          ===>Interface Descriptor<===
bLength:                           0x09
bDescriptorType:                   0x04
bInterfaceNumber:                  0x01
bAlternateSetting:                 0x01
bNumEndpoints:                     0x01
bInterfaceClass:                   0x01  -> Audio Interface Class
bInterfaceSubClass:                0x02  -> Audio Streaming Interface SubClass
bInterfaceProtocol:                0x00
iInterface:                        0x00

          ===>Audio Streaming Class Specific Interface Descriptor<===
bLength:                           0x07
bDescriptorType:                   0x24
bDescriptorSubtype:                0x01
bTerminalLink:                     0x01
bDelay:                            0x01
wFormatTag:                      0x0001 (PCM)

          ===>Audio Streaming Format Type Descriptor<===
bLength:                           0x0B
bDescriptorType:                   0x24
bDescriptorSubtype:                0x02
bFormatType:                       0x01
bNrChannels:                       0x02
bSubframeSize:                     0x02
bBitResolution:                    0x10
bSamFreqType:                      0x01
tSamFreq[1]:                   0x00BB80 (48000 Hz)

          ===>Endpoint Descriptor<===
bLength:                           0x09
bDescriptorType:                   0x05
bEndpointAddress:                  0x02  -> Direction: OUT - EndpointID: 2
bmAttributes:                      0x09  -> Isochronous Transfer Type, Synchronization Type = Adaptive, Usage Type = Data Endpoint
wMaxPacketSize:                  0x00C8 = 1 transactions per microframe, 0xC8 max bytes
wInterval:                       0x0004
bSyncAddress:                      0x00

          ===>Audio Streaming Class Specific Audio Data Endpoint Descriptor<===
bLength:                           0x07
bDescriptorType:                   0x25
bDescriptorSubtype:                0x01
bmAttributes:                      0x01
bLockDelayUnits:                   0x01
wLockDelay:                      0x0001

作者: chenglei    时间: 2018-1-27 13:58
您好,您的问题解决了么?

我这边也调适这块。遇到类似问题。
作者: chenglei    时间: 2018-1-30 09:36
woody.lee 发表于 2016-6-7 15:22
在 windows 上用 usbview dump 出來的資訊:

呼喚大神! 懇請開示, 感恩^^

在吗
作者: chenglei    时间: 2018-1-30 10:27
windows怎么识别呢
作者: moose0    时间: 2020-4-29 10:35
woody.lee 发表于 2016-5-20 14:39
另外, dmesg 常可見
[14196.871991] init: ttyS2 main process (4184) terminated with status 1
[14196. ...

楼主现在还在吗,这个问题解决了吗?????




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1