lxjcyj 发表于 2017-3-16 18:00:02

linux的USB接口出现Trying to add endpoint 0x81 without dropping it


我现在用TI的AM4378开发板上用USB摄像头做一个图像采集的功能,USB摄像头的芯片是OV2710 ,而且应用层的摄像头采集之前已经做好了,而且是可以用的,但是在am4378

将usb摄像头到USB上运行,第一次是可以的。当我CTRL+C掉程序后会报以下错误

Cxhci-hcd xhci-hcd.0.auto: Signal while waiting for configure endpoint command
   
   usb 1-1.2: Not enough bandwidth for altsetting 0

然后再次运行该程序就会出现:

   xhci-hcd xhci-hcd.0.auto: xHCI xhci_drop_endpoint called with disabled ep dc1b1980
   xhci-hcd xhci-hcd.0.auto: Trying to add endpoint 0x81 without dropping it.
   usb 1-1.2: Not enough bandwidth for altsetting 6
   xhci-hcd xhci-hcd.0.auto: xHCI xhci_drop_endpoint called with disabled ep dc1b1980
   VIDIOC_STREAMON error 22, Invalid argument

以上的错误是说的USB的带宽不够,之前退出程序的时候USB在等结束命令,我如果重启或者重新插拔USB摄像头确实是可以再一次运行。但是我想如何才能解决这个歌USB的问题

自己找了很多资料都没有说明解决的办法

lxjcyj 发表于 2017-4-27 14:53:19

最后找出问题了,是linux的底层的usb的超时退出,当我ctrl+c退出的时候,超时时间没有到,所以usb的退出指令没有发出去,导致第二次启动不可用。
页: [1]
查看完整版本: linux的USB接口出现Trying to add endpoint 0x81 without dropping it