AnsweredAssumed Answered

imx6q android jb4.3_1.0.0-ga adv7180 can't work in bt656 mode

Question asked by chuanyan yin on Aug 14, 2014
Latest reply on Jan 29, 2015 by Kumar

Hi,

 

I'm work with android 4.3 + adv7180, When adv7180 work in gated mode, I can use camera apk to get image from adv7180, here's is the image I got from adv7180

IMG_20140802_134400.jpg

There is 2 image in the screen because the image is not de-interleaved.

 

Now I try bt656 mode(don't use Hsync and Vsync), And I get nothing in the sceen, here is th log:

 

7180 reg ADV7180_STATUS1_ = d

7180 reg ADV7180_0x11_ = 1e

7180 reg ADV7180_  0x12_ = 0

7180 reg ADV7180_0x13_ = 69

ntsc

NTSC case

In MVC: mxc_v4l2_s_fmt mxc_capture_inputs[cam->current_input].name = CSI MEM

ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0

 

the ioctl_g_ifparm code :

        p->if_type = V4L2_IF_TYPE_BT656; /* This is the only possibility. */

        p->u.bt656.mode = V4L2_IF_TYPE_BT656_MODE_NOBT_8BIT;

        p->u.bt656.nobt_hs_inv = 1;

        p->u.bt656.bt_sync_correct = 0;

        /* ADV7180 has a dedicated clock so no clock settings needed. */

//      p->u.bt656.clock_curr = 27000000;

        p->u.bt656.clock_curr = 0;

 

In drivers/mxc/ipu3/ipu_capture.c

} else if (width == 720 && (height == 525 || height == 480)) {

                        printk("NTSC case \n");

                        /* NTSC case */

                        /*

                         * Field0BlankEnd = 0x7, Field0BlankStart = 0x3,

                         * Field0ActiveEnd = 0x5, Field0ActiveStart = 0x1

                         */

                        ipu_csi_write(ipu, csi, 0xD07DF, CSI_CCIR_CODE_1);

                        /*

                         * Field1BlankEnd = 0x6, Field1BlankStart = 0x2,

                         * Field1ActiveEnd = 0x4, Field1ActiveStart = 0

                         */

                        ipu_csi_write(ipu, csi, 0x40596, CSI_CCIR_CODE_2);

                        ipu_csi_write(ipu, csi, 0xFF0000, CSI_CCIR_CODE_3);

                } else {

 

 

Why I can't get any data in bt656 mode?  I try many times, both camera apk and mxc_v4l2_tvin get time out error. Why?

Outcomes