AndDiSa / android_kernel_asus_grouper

AOSP-7.x for Grouper Kernel (3.1.10)
Other
15 stars 27 forks source link

UVC and V4L drivers #6

Open Dreamer-4pda opened 3 years ago

Dreamer-4pda commented 3 years ago

I use my N7 as car headunit and try to connect USB camera, but it's not working, because no drivers in kernel. Please add uvc and v4l drivers in kernel. As I know, need add these strings in config:

CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_V4L2_COMMON=y
CONFIG_VIDEO_MEDIA=y
CONFIG_USB_VIDEO_CLASS=y
CONFIG_V4L_USB_DRIVERS=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
AndDiSa commented 3 years ago

If you have a look at arch/arm/configs/tegra3_android_defconfig those are already configured in that way. I suppose some other drivers / interfaces are missing. There is a thread on XDA (https://forum.xda-developers.com/t/mod-webcam-as-fully-functional-rear-cam.2100452/) which probably can help you to get the camera working.

Dreamer-4pda commented 3 years ago

There is a thread on XDA (https://forum.xda-developers.com/t/mod-webcam-as-fully-functional-rear-cam.2100452/) which probably can help you to get the camera working.

Unfortunately this metod not works... there is no /dev/video* interface DVR camera perfectly work with my android tv box and android car headunit. But not work with my Nexus7 and Pixel4a

AndDiSa commented 3 years ago

Probably it's a matter of configuration ... but as I do not have the appropriate hardware it's difficult to give hints. Reading the thread above there is this post: https://forum.xda-developers.com/t/mod-webcam-as-fully-functional-rear-cam.2100452/post-43823556 which looks quite interesting. Did you already try to add the line

usb=/dev/video0

to /system/etc/nvcamera.conf ?