没有 I2C 的 v4l2 命令

问题描述

v4l2 是否需要 I2C 命令来从相机模块收集数据?

我们正在使用一个摄像头,它的数据在桥中转换为 MIPI。这意味着这款相机没有 I2C 功能。但是,我们正在尝试为其编写驱动程序(基于 this example),并且我试图在终端中使用 v4l2 命令获取一些信息。一个例子:

v4l2-ctl --device /dev/video0 --all

给出响应:

    Driver Info:
        Driver name      : mx6s-csi
        Card type        : i.MX6S_CSI
        Bus info         : platform:30a90000.csi1_bridge
        Driver version   : 4.14.98
        Capabilities     : 0x84200001
                Video Capture
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x04200001
                Video Capture
                Streaming
                Extended Pix Format
Priority: 0
Video input : 0 (Camera: ok)
Format Video Capture:
        Width/Height      : 0/0
        Pixel Format      : ''
        Field             : Any
        Bytes per Line    : 0
        Size Image        : 0
        Colorspace        : Default
        Transfer Function : Default (maps to Rec. 709)
        ycbcr/HSV Encoding: Default (maps to ITU-R 601)
        Quantization      : Default (maps to Full Range)
        Flags             :
Crop Capability Video Capture:
        Bounds      : Left 0,Top 0,Width 0,Height 0
        Default     : Left 0,Height 0
        Pixel Aspect: 1/1
Crop: Left 0,Height 0

如您所见,一切都是 0。但是,我确信(用示波器检查)有数据和时钟从桥接器中传出。我认为 v4l2 命令需要 I2C 来收集数据,但我不确定。

PS:如果有人知道没有 I2C 的驱动程序示例,请告诉我!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)