在线时间4 小时
UID3481816
注册时间2018-5-24
NXP金币0
TA的每日心情 | 开心 2018-5-24 15:43 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]初来乍到
新手上路

- 积分
- 23
- 最后登录
- 2018-6-23
|
我使用的是IMX6Q android 版本 4.4.2 / kernel版本: 3.035
由于目前供应商不能提供adv7481相关技术支持,我用adv7180来调试,由于刚接触飞思卡尔平台不久,比较陌生,希望各位前辈指点!
下面是主要报错信息:
[ 51.681221] ++++++++++++++++++mxc_v4l_do_ioctl+++++++++++++++
[ 51.690114] ERROR: v4l2 capture: mxc_v4l2_prepare_bufs buffers not allocated,index=0, length=622080
[ 51.704514] +++++++++++++++mxc_v4l_ioctl+++++++++++++++++
[ 51.704528] ++++++++++++++++++mxc_v4l_do_ioctl+++++++++++++++
[ 51.704536] ERROR: v4l2 capture: mxc_streamon buffer has not been queued yet
目前已经定位到问题的位置,但是不知道从哪下手解决,而且不知道是否和adv7481一些参数配置有关!有人遇到同样问题吗?请指点,谢谢!
1、
static int mxc_v4l2_prepare_bufs(cam_data *cam, struct v4l2_buffer *buf)
{
pr_debug("In MVC:mxc_v4l2_prepare_bufs\n");
if (buf->index < 0 || buf->index >= FRAME_NUM || buf->length <
cam->v2f.fmt.pix.sizeimage) {
pr_err("ERROR: v4l2 capture: mxc_v4l2_prepare_bufs buffers "
"not allocated,index=%d, length=%d\n", buf->index,
buf->length);
return -EINVAL;
}
cam->frame[buf->index].buffer.index = buf->index;
cam->frame[buf->index].buffer.flags = V4L2_BUF_FLAG_MAPPED;
cam->frame[buf->index].buffer.length = buf->length;
cam->frame[buf->index].buffer.m.offset = cam->frame[buf->index].paddress
= buf->m.offset;
cam->frame[buf->index].buffer.type = buf->type;
cam->frame[buf->index].buffer.memory = V4L2_MEMORY_MMAP;
cam->frame[buf->index].index = buf->index;
return 0;
}
|
|