tvp5146pfp 无法检测视频输入

使用dm365,dvsdk4。电路图是按照瑞泰创新的图画的,但是有个不一样的地方

(1)买芯片的时候不知道有tvp5146m2pfp和tvp5146pfp,用了tvp5146pfp。

(2)因为莲花头放在面板上,所以使用的是莲花头进来之后用大约2跟15cm的线引到到的电路板上。

现在问题是tvp5146无法检测到视频输入,出错相关信息如下:

(1)正常启动encode的出错信息

./encode -v test.264  -y 2 -r 352x288

Encode demo started.

Failed to detect video standard, video input connected?

...

对应的源代码如下:

   if (Capture_detectVideoStd(NULL, &videoStd, &cAttrs) < 0) {

       ERR("Failed to detect video standard, video input connected?\n");

       cleanup(THREAD_FAILURE);

   }

(2)加入DMAI_DEBUG之后的出错信息

DMAI_DEBUG=2 ./encode -v test.264  -y 2 -r 352x288

Encode demo started.

@0x000e5cdc:[T:0x4001f800] ti.sdo.dmai - [Dmai] Dmai log level set to '2'. Note that calling CERuntime_init after this point may cause unexpected change to .

@0x000e6cc8:[T:0x40c29490] ti.sdo.dmai - [Capture] Composite input selected

@0x0025d0dc:[T:0x40c29490] ti.sdo.dmai - [Capture] ERRNO (22) 《《出错

@0x0025d65d:[T:0x40c29490] ti.sdo.dmai - [Capture] Failed to set video input to 0 (Invalid argument)

(3)内核启动的相关信息:

root@dm365-evm:~/dm365# dmesg

。。。。。。

Linux video capture interface: v2.00

vpfe_init

vpfe-capture: vpss clock vpss_master enabled

vpfe-capture vpfe-capture: v4l2 device registered

vpfe-capture vpfe-capture: video device registered

EVM: switch to tvp5146 SD video input

tvp514x 1-005d: tvp514x 1-005d decoder driver registered !!

vpfe-capture vpfe-capture: v4l2 sub device tvp5146 registered

vpfe_register_ccdc_device: DM365 ISIF

DM365 ISIF is registered with vpfe.

af major#: 251, minor# 0

AF Driver initialized

aew major#: 250, minor# 0

AEW Driver initialized

<davinci_display_init>

。。。。。

(4)系统调用的相关信息

root@dm365-evm:~/dm365# cat /proc/kallsyms|grep tvp

c001cfb8 t tvp514x_init

c0025160 t __initcall_tvp514x_init6

c022ce64 t tvp514x_remove

c022ce90 t tvp514x_g_fmt_cap

c022cf18 t tvp514x_g_ctrl

c022d030 t tvp514x_enum_fmt_cap

c022d0d0 t tvp514x_read_reg

c022d138 t tvp514x_get_current_std

c022d190 t tvp514x_s_parm

c022d1f0 t tvp514x_try_fmt_cap

c022d320 t tvp514x_s_fmt_cap

c022d3ac t tvp514x_g_parm

c022d428 t tvp514x_write_reg

c022d494 t tvp514x_s_std

c022d564 t tvp514x_s_ctrl

c022d764 t tvp514x_write_regs

c022d7ec t tvp514x_s_stream

c022dba8 t tvp514x_querystd

c022dcdc t tvp514x_s_routing

c022deb4 t tvp514x_queryctrl

c022dfd4 t tvp514x_probe

c031d460 t tvp514x_dev

c031d6e8 t tvp514x_ops

c031d708 t tvp514x_id

c031d780 t tvp514x_fmt_list

c031d7c0 t tvp514x_core_ops

c031d800 t tvp514x_video_ops

c031d854 t tvp5146_init_reg_seq

c031d8b4 t tvp514xm_init_reg_seq

c031d8cc t tvp5147_init_reg_seq