Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    关于V4L2自定义CID的问题

    Linux
    2
    2
    1217
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jinxiangwzh
      jinxiangwzh LV 7 last edited by

      我想在sensor驱动中自定义一个平台没有的ID,通过v4l2_ctrl_new_custom接口添加进来,在应用层调用发现返回无效参数,查看源码后,我想确认一个问题,添加平台没有的ID,是不是需要在lichee/linux-4.9/drivers/media/platform/sunxi-vin/vin-video/vin_video.c中的

      static int vin_s_ctrl(struct v4l2_ctrl *ctrl)
      

      函数中也要实现一下?
      然后

      int vin_init_controls(struct v4l2_ctrl_handler *hdl, struct vin_vid_cap *cap)
      

      中也要注册一下?

      C 1 Reply Last reply Reply Quote Share 0
      • C
        chengwei_peng LV 6 @jinxiangwzh last edited by

        @jinxiangwzh 对,头文件也更新一下。

        1 Reply Last reply Reply Quote Share 0
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策