AnsweredAssumed Answered

多摄像头闪屏

Question asked by mingchao Shi on Dec 19, 2019
Latest reply on Jan 8, 2020 by Joan Xie

各位:

目前我使用了adv7181d (格式:BT1120)和nextchip(N4)这两个IC

adv7180配置如下:

v4l2_cap_0 {
compatible = "fsl,imx6q-v4l2-capture";
      ipu_id = <0>;
      csi_id = <0>;
      mclk_source = <0>;
      status = "okay";
};

 

adv7180: adv7180@21 {
      compatible = "adv,adv7180";
      reg = <0x21>;
      pinctrl-names = "default";
      pinctrl-0 = <&pinctrl_ipu1_2>;
      clocks = <&clks IMX6QDL_CLK_CKO>;
      clock-names = "csi_mclk";
      pwn-gpios = <&gpio1 4 0>;
      reset-gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>;
      ipu_id = <0>;
      csi_id = <0>;
      mclk = <24000000>;
      mclk_source = <0>;
      cvbs = <1>;
};

 

nextchip(N4)本身可以接四个摄像头,但是我仅使用了 的的其中两路,分辨率是720p,然后配置如下:

mipi-csi2-channel@2 {
      ipu_id = <1>;
      csi_id = <0>;
      v_channel = <2>;
      status = "okay";
};

mipi-csi2-channel@3 {
      ipu_id = <1>;
      csi_id = <1>;
      v_channel = <3>;
      status = "okay";
};

----------------------------------------------------------------------

v4l2_cap_1 {
      compatible = "fsl,imx6q-v4l2-capture";
      ipu_id = <1>;
      csi_id = <0>;
      mclk_source = <0>;
      status = "okay";
};

 

v4l2_cap_2 {
compatible = "fsl,imx6q-v4l2-capture";
      ipu_id = <1>;
      csi_id = <1>;
      mclk_source = <0>;
      status = "okay";
};

 

目前三个摄像头都可以采到图像,但是 ipu_id = <1>;   csi_id = <1>;这一路的摄像头采集到的图像会闪动,看起来就像是图像断层,我用mxc-v4l2-tvin去打开不会闪

mxc-v4l2-tvin  -ol 0 -ot 0 -ow 1280 -oh 800 -d 1 -x 2 

 

我调通了HAL层,我们应用给我写了一个demo去分别打开每个video,当打开video2( ipu_id = <1>;   csi_id = <1>;)的时候就出现闪动的情况,Android同时打开两个图像,都会闪动,目前不知道从哪里分析,可否提供一点思路,谢谢!

 

只有Android才会闪!

 

谢谢! 

Outcomes