主题 : S5PV210 android下USB摄像头问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 2908
精华: 0
发帖: 28
金钱: 205 两
威望: 80 点
贡献值: 0 点
综合积分: 56 分
注册时间: 2008-12-16
最后登录: 2012-07-24
楼主  发表于: 2011-11-28 11:36

 S5PV210 android下USB摄像头问题

请问android下210的CMOS摄像头和USB摄像头是否可以同时使用?由于210的BSP里自带了CMOS的驱动,我以为只要再内核里配上支持USB摄像头的UVC就可以,结果当我配上UVC后,插入USB摄像头得到如下提示:
usb 1-1.3: new high speed USB device using s5p-ehci and address 5uvcvideo: Found UVC 1.00 device USB2.0 PC CAMERA (18ec:3290)input: USB2.0 PC CAMERA as /devices/platform/s5p-ehci/usb1/1-1/1-1.3/1-1.3:1.0/input/input3I/EventHub(   92): New keyboard: device->id=0x20000 devname='USB2.0 PC CAMERA' propName='hw.keyboards.131072.devname' keylayout='/system/usr/keylayout/qwerty.kl'I/EventHub(   92): New device: path=/dev/input/event2 name=USB2.0 PC CAMERA id=0x20000 (of 0x3) index=3 fd=91 classes=0x1I/InputReader(   92): Device added: id=0x20000, name=USB2.0 PC CAMERA, sources=00000101I/InputManager-Callbacks(   92): No input device calibration properties found for device USB2.0 PC CAMERA.
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-02-14 13:30
引用第2楼xiaoliu0518于2012-02-14 10:16发表的  :
修改了一些参数后 ,preview  初始化设置是可以了 ,可是在 preview的时候 :
在  ret = ioctl(fp, VIDIOC_DQBUF, &v4l2_buf);  总是出现 ,这个纠结啊~,有没有高手  啊求指导!!
[   56.809232] pmem: request for physical address of pmem region from process 563.
[   56.815937] pmem: suballoc doesn't fit in src_file!
E/copybit (  432): [int open_copybit(const hw_module_t*, const char*, hw_device_t**)],open fb node: [/dev/graphics/fb2]
.......

出现这个错误的地方在device\samsung\proprietary\libcopybit\copybit.cpp里, ioctl()返回错误值-22 (-EINVAL)。 这可能和内核里的Android pmem驱动的配置有关。

复制代码
  1.         // make it available to the client process
  2.         if(0 != (ret = ioctl(fd, PMEM_MAP, &sub))) {
  3.             LOGE("[%s][index=%d] ioctl(PMEM_MAP) failed : %d (%s)", __func__, i, errno, strerror(errno));
  4.             close(fd);
  5.             return -errno;
  6.         }
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."