11-0706:52:40.53619982000 W ExtCamDevSsn@3.4: setV4l2FpsLocked: device does not support V4L2_CAP_TIMEPERFRAME 11-0706:52:40.53619982000 E ExtCamDevSsn@3.4: configureV4l2StreamLocked: VIDIOC_REQBUFS expected 4 buffers, got 2 instead 11-0706:52:40.53619982000 E ExtCamDevSsn@3.4: V4L configuration failed!, format:MJPG, w 1280, h 720
11-0706:43:31.75515881591 I ExtCamDevSsn@3.4: configureV4l2StreamLocked: V4L2 buffer size is 3686400 11-0706:43:31.75515881591 W ExtCamDevSsn@3.4: setV4l2FpsLocked: device does not support V4L2_CAP_TIMEPERFRAME 11-0706:43:31.75715881591 E ExtCamDevSsn@3.4: configureV4l2StreamLocked: DQBUF fails: Invalid argument 11-0706:43:31.75715881591 E ExtCamDevSsn@3.4: V4L configuration failed!, format:MJPG, w 1280, h 720
解决方案,删除函数static int vidioc_dqbuf(struct file *file, void *fh, struct v4l2_buffer *buf)中的以下代码:
1 2 3 4 5
if (!(dev->buffers[index].buffer.flags & V4L2_BUF_FLAG_MAPPED)) { dprintk("trying to return not mapped buf[%d]\n", index); return -EINVAL; }