让老内核支持uvcvideo.拜托大家帮我看看。

zhoupeng919 2012-03-08 08:57:12
但是编译出现了问题
drivers/media/video/uvc/uvc_ctrl.c:246: error: `V4L2_CID_SHARPNESS' undeclared here (not in a function)
drivers/media/video/uvc/uvc_ctrl.c:246: error: initializer element is not constant
drivers/media/video/uvc/uvc_ctrl.c:246: error: (near initialization for `uvc_ctrl_mappings[4].id')
drivers/media/video/uvc/uvc_ctrl.c:248: error: initializer element is not constant
drivers/media/video/uvc/uvc_ctrl.c:248: error: (near initialization for `uvc_ctrl_mappings[4].entity')
drivers/media/video/uvc/uvc_ctrl.c:254: error: initializer element is not constant
drivers/media/video/uvc/uvc_ctrl.c:254: error: (near initialization for `uvc_ctrl_mappings[4]')
drivers/media/video/uvc/uvc_ctrl.c:258: error: initializer element is not constant
drivers/media/video/uvc/uvc_ctrl.c:258: error: (near initialization for `uvc_ctrl_mappings[5].entity')
drivers/media/video/uvc/uvc_ctrl.c:264: error: initializer element is not constant
drivers/media/video/uvc/uvc_ctrl.c:264: error: (near initialization for `uvc_ctrl_mappings[5]')
drivers/media/video/uvc/uvc_ctrl.c:266: error: `V4L2_CID_BACKLIGHT_COMPENSATION' undeclared here (not in a function)
drivers/media/video/uvc/uvc_ctrl.c:266: error: initializer element is not constant
drivers/media/video/uvc/uvc_ctrl.c:266: error: (near initialization for `uvc_ctrl_mappings[6].id')
drivers/media/video/uvc/uvc_ctrl.c:268: error: initializer element is not constant
drivers/media/video/uvc/uvc_ctrl.c:268: error: (near initialization for `uvc_ctrl_mappings[6].entity')
drivers/media/video/uvc/uvc_ctrl.c:274: error: initializer element is not constant
drivers/media/video/uvc/uvc_ctrl.c:274: error: (near initialization for `uvc_ctrl_mappings[6]')
drivers/media/video/uvc/uvc_ctrl.c:278: error: initializer element is not constant
drivers/media/video/uvc/uvc_ctrl.c:278: error: (near initialization for `uvc_ctrl_mappings[7].entity')
drivers/media/video/uvc/uvc_ctrl.c:284: error: initializer element is not constant
drivers/media/video/uvc/uvc_ctrl.c:284: error: (near initialization for `uvc_ctrl_mappings[7]')
drivers/media/video/uvc/uvc_ctrl.c:286: error: `V4L2_CID_POWER_LINE_FREQUENCY' undeclared here (not in a function)
drivers/media/video/uvc/uvc_ctrl.c:286: error: initializer element is not constant
drivers/media/video/uvc/uvc_ctrl.c:286: error: (near initialization for `uvc_ctrl_mappings[8].id')
drivers/media/video/uvc/uvc_ctrl.c:288: error: initializer element is not constant
drivers/media/video/uvc/uvc_ctrl.c:288: error: (near initialization for `uvc_ctrl_mappings[8].entity')
drivers/media/video/uvc/uvc_ctrl.c:296: error: initializer element is not constant


不知道怎么能让2.6.24内核支持uvcvideo.
因为arm板子的初始版本是这个,要是从新移植内核怕问题更多,所以请问怎么能让老内核支持uvc呢?.
...全文
138 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

21,595

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 驱动开发/核心开发
社区管理员
  • 驱动开发/核心开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧