1、配置内核是内核支持芯片为ZC3xx的摄像头
Make menuconfig
Device Drivers --->
<*>Multimediasupport--->
<*>Video For Linux
[*]Enable Video For Linux API 1 (DEPRECATED)
[*]Videocapture adapters --->
[*]V4L USBdevices (NEW)-->
<*>GSPCA based webcams--->
<*>ZC3XXUSB Camera Driver
<*>USBVideo Class (UVC)
[*] UVCinput events device support (NEW)
<*>USB ZC0301[P] webcam support (DEPRECATED)
2、重新编译内核
修改文件drivers/media/video/gspac/gspca.c添加红色语句
221 }
222 //add by hou lin tao
223 urb->transfer_flags =URB_NO_TRANSFER_DMA_MAP;
224 usb_fill_int_urb(urb, dev,
通过上面两个步骤,在编译内核就可以驱动我们的摄像头了。