Hikey USB Camera Low FPS


#1

I recompile v4.4 kernel with

CONFIG_MEDIA_SUPPORT=y
CONFIG_MEDIA_CAMERA_SUPPORT=y
CONFIG_VIDEO_V4L2=y
CONFIG_MEDIA_USB_SUPPORT=y
CONFIG_USB_VIDEO_CLASS=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
CONFIG_USB_GSPCA=y
CONFIG_USB_PWC=y
CONFIG_USB_PWC_DEBUG=y
CONFIG_USB_PWC_INPUT_EVDEV=y

and connect my usb camera using a OTG line, then get this

Nov 18 07:59:06 sdcard kernel: usb 1-1: new high-speed USB device number 2 using dwc2
Nov 18 07:59:06 sdcard kernel: hub 1-1:1.0: USB hub found
Nov 18 07:59:06 sdcard kernel: hub 1-1:1.0: 3 ports detected
Nov 18 07:59:06 sdcard kernel: usb 1-1.1: new high-speed USB device number 3 using dwc2
Nov 18 07:59:06 sdcard kernel: uvcvideo: Found UVC 1.00 device USB2.0 Camera (1871:01f0)
Nov 18 07:59:06 sdcard kernel: input: USB2.0 Camera as /devices/platform/soc/f72c0000.usb/usb1/1-1/1-1.1/1-1.1:1.0/input/input0

I get the webcam display by excute mplayer tv:// and the transfer speed seems to be very low, the fps is 4 and sometimes is 1.


#2

/var/log/messages http://pastebin.com/EnZaN4ah


#3

I got the same low FPS via USB camera. I think it should be the driver problem in the source code.


#4

Hi, I want to use USB_CAM in my hikey960 board. I config the kernel as you say, but I can’t use it. I don’t know what the problem is.
I connect usb camera using one of usb 3.0 ports. I can see video0 in /dev by adb, but no video in /dev. and I can see the message using dmesg | grep Cam

please tell me how to solve this problem, thx.


#5

Can you explain what you mean by “I can see video0 in /dev by adb, but no video in /dev”?


#6

when I connected the usb camera using one of usb 3.0 ports, video0 can be seen in /dev/ of board; When unconnected the camera, there is not video0 in /dev/. Someone in internet say that there should be /dev/video and /dev/video0 in regularly.


#7

Can we use USB camera on hikey960 with Android OS?When I refer AOSP for hikey960 and could not find Camera HAL .
Please help me if anyone tested this scenario.