This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM365 BT.656 digital output problem

hi ,

I have a problem about dm365 bt.656 digital output configure. In my system , I want to output a SD PAL video through VPBE bt.656 interface. But the output video display a reversed odd field and even field, that looks like field ID or the field data is reversed. I cannot find the how to fix it .

The VENC parameter is configured as following:

   dispc_reg_out(VENC_VMOD, 0x1043);
   dispc_reg_out(VENC_CLKCTL, 0x11);
   dispc_reg_out(VENC_VIDCTL, 0x6000);
   dispc_reg_out(VENC_YCCCTL, 0x1);

   dispc_reg_out(VENC_OSDCLK0, 1);
   dispc_reg_out(VENC_OSDCLK1, 2);
   dispc_reg_out(VENC_VDPRO, 0x20);
   __raw_writel(0x081141CF, IO_ADDRESS(DM3XX_VDAC_CONFIG));
   
    /* VPBE PINMUX */
   unsigned int temp = 0;
   void __iomem *pinmux1 = (void __iomem *) IO_ADDRESS(0x01C40004);
   temp = __raw_readl(pinmux1);  //select VCLKL and HVSYNC
   temp &= ~(0x01 << 22); //VCLK Enable
   __raw_writel(temp, pinmux1);

 dispc_reg_out(VENC_SYNCCTL, 0);
 
 osd_write_left_margin(mode_info->left_margin);
 osd_write_upper_margin(mode_info->upper_margin + 2);

 dispc_reg_merge(VENC_VMOD, VENC_VMOD_VENC, VENC_VMOD_VENC);
 dispc_reg_out(VENC_DACTST, 0x0);
 dispc_reg_out(VENC_CMPNT, 0x0);