OMAP3530 ISP and TVP5151 compatibility
I am programming the TVP5151 as follows:
Device: TVP5151
Input connector: S-video (AIP1A (luminance), AIP1B (chrominance))
Video Format: NTSC (M, 4.43), PAL (B, G, H, I, M, N, Nc) or SECAM (B, D, G, K1, L)
Output format: 8-bit 4:2:2 YCbCr with discrete sync outputs
On the OMAP ISP, I am using the following settings:
isp_cfg.dataline_shift = 0x0;
isp_cfg.hsvs_syncdetect = ISPCTRL_SYNC_DETECT_VSFALL;
isp_cfg.strobe = 0x0;
isp_cfg.prestrobe = 0x0;
isp_cfg.shutter = 0x0;
isp_cfg.prev_sph = 0;
isp_cfg.prev_slv = 0;
isp_cfg.wenlog = ISPCCDC_CFG_WENLOG_OR;
isp_cfg.wait_hs_vs = 3;
isp_cfg.u.par.bridge = 0x0;
isp_cfg.u.par.clk_pol = 0x1;
The CCDC is set to CCDC_YUV_SYNC and CCDC_YUV_MEM_RSZ. The presizer is set to RSZ_MEM_YUV.
CCDC settings:
case CCDC_YUV_SYNC:
syncif_cfg.master_mode = 0 ;
syncif_cfg.cam_d_pol = 0 ;
syncif_cfg.data_size = DAT8 ;
syncif_cfg.field_mode = 0 ;
syncif_cfg.cam_fld_out = 0 ;
syncif_cfg.cam_fld_pol = 0 ;
syncif_cfg.field_state = 0 ;
syncif_cfg.cam_hs_pol = 1 ;
syncif_cfg.input_mode = YUV8 ;
syncif_cfg.cam_vs_pol = 0 ;
syncif_cfg.bt656_mode = 0 ;
ispccdc_config_sync_if( syncif_cfg ) ;
/* The color pattern is not used. */
ispccdc_config_imgattr( 0 ) ;
/* Disable black clamping. */
bclamp_cfg.dcsubval = 0 ;
ispccdc_config_black_clamp( bclamp_cfg ) ;
When I play the composite input, I obtain an image composed of 2 horizontal frames of video with the wrong colours. Can the OMAP ISP handle the 8-bit 4:2:2 YCbCr with discrete sync outputs from the TVP5151?