Other Parts Discussed in Thread: TVP5158, TVP5146
I am working on the driver for TVP5158 on DM365, I used the MCVIP(DM365_DVR_DVSDK3_00.02.00.00) post by Anshuman Saxena in http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/100/t/118704.aspx.
The Platform: DVSDK3.10
Hardware is a board we designed by ourselves refer to DM365_DVR. but TVP5158 or TVP5146 is only the video input. The CPU is on a small board , the decoder chip is on a big board.
Boot parameter:
bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=192.168.1.167:/home/davinci/dvsdk/filesys,nolock mem=60M video=davincifb:vid0=OFF:vid1=OFF:osd0=720x576x16,2025K dm365_imp.oper_mode=0 vpfe_capture.interface=0 vpfe_capture.bufsize=829440 davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=pal
The input and output both are composite.
I have test the I2C and DMA, and they can work.
when I try the mcvip_test.out, There is no output in TV. The feedback is :
videoSystem = PAL (default) or NTSC
i2c Mode = WinVCC or DM6467 (default)
Cascade Mode = C1 (default), C2, C3 or C4
Audio Mode = audio
----MCVIP 0, tvp5158 devAddr[0]:0xba
DRV_i2cOpen: 5
TVP5158_checkChip found i2cHndl:48634 (0xba) i=0 j=0
----MCVIP 1, tvp5158 devAddr[1]:0x0
===========================
MCVIP Main Menu (PAL mode)
===========================
00: Start - 2Ch D1 (BT656 )
01: Start - 4Ch D1 (BT656 )
02: Start - 4Ch Half-D1 (BT656 )
03: Start - 4Ch CIF (BT656 )
.........
1b: Start - 4Ch Half-D1 CIF progressive (BT656 ) CROP
1c: Start - 4Ch Half-D1 CIF progressive (BT1120) CROP
1d: Start - 8Ch Half-D1 CIF progressive (BT656 ) CROP
0x or 1x: Exit
Enter Choice : 01
input: 01
MCVIP: Starting. Please wait !!!
---- CAPTURE_tskMain -----
port: 0
CAPTURE: Alloc info: numCh=4 numBuf=16, bufSize=847872, allocSize=13565952
****** vpfe_open()****
Std Set -> 0
vpfe_config_ccdc_image_format() : pix_fmt->1498831189
*** vpfe_open() success!!!
vpfe-capture vpfe-capture: input information not found for the subdev
Input 0: TVP5158Std Set -> 0
_1
vpfe_config_ccdc_image_format() : pix_fmt->1498831189
vpfe-capture vpfe-capture: Failed to set standard
{{{ 0x0000100000vpfe-capture vpfe-capture: width = 720, height = 2500, bpp = 2
000000 }}}
MCVIvpfe-capture vpfe-capture: adjusted width = 720, height = 1250, bpp = 2, bytesperline = 1440, sizeimage = 1800000
P_v4l2Create() vvpfe_config_ccdc_image_format() : pix_fmt->1498831189
4l2FrameInfo.width: 720 v4l2FrameInfo.height: 2500
MCVIP_v4l2SetupBufferTable() bufalloc channelDemux[0] is 1fer_size 3600000 dmaParamAddr[0] : 0xfec04020
..........
There is no input information found in vpfe-capture. The program block in function: MCVIP_V4L2GetBuf().
Please someone tell me how to solve this.
PS: this borad work well for TVP5146 with the original DVSDK3.10.