Thanks for your suggestions.
We have checked the VideoDecoder/sensor output formats configuration and tried by configuring as per the above mentioned. However, we are still getting the same result, the first frame being displayed on the display.
We are having the TV input (composite video) with PAL format. The TV Input from a camera to the Video Decoder (TVP5147M1) and the Decoder is connected to the CSI1 port of i.MX53.
I am having few questions based on the debug log observations, mentioned below:
-------------------------------------------------------------------------------------------------------------------------------------------------------------
root@freescale /unit_tests$ ./mxc_v4l2_tvin.out -ot 0 -ol 10 -ow 720 -oh 525 -m 2 //We have noticed that this unit-test is giving error, shown below.
TV decoder chip is tvp5147m1_decoder
ERROR: v4l2 capture: width or height too small.
VIDIOC_S_FMT failedmxc_v4l_close: release resource
Setup v4l capture failed.
root@freescale /unit_tests$ ./mxc_v4l2_tvin.out -ot 0 -ol 10 -ow 720 -oh 625 -m 2 //We have tried the same by changing the size, but still same error.
TV decoder chip is tvp5147m1_decoder
ERROR: v4l2 capture: width or height too small.
VIDIOC_S_FMT failedmxc_v4l_close: release resource
Setup v4l capture failed.
root@freescale /unit_tests$ dmesg -c //dmesg log
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_ifparm
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_fmt_cap
Returning size of 720x625
tvp5147m1 2-005c: In tvp5147m1:ioctl_init
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_fmt_cap
tvp5147m1 2-005c: In tvp5147m1_get_std
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_parm
type is V4L2_BUF_TYPE_VIDEO_CAPTURE
tvp5147m1 2-005c: In tvp5147m1:ioctl_s_parm
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_ifparm
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_fmt_cap
Returning size of 720x625
ERROR: v4l2 capture: width or height too small.
mxc_v4l_close: release resource
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_ifparm
Returning size of 720x625
tvp5147m1 2-005c: In tvp5147m1:ioctl_init
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_fmt_cap
tvp5147m1 2-005c: In tvp5147m1_get_std
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_parm
type is V4L2_BUF_TYPE_VIDEO_CAPTURE
tvp5147m1 2-005c: In tvp5147m1:ioctl_s_parm
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_ifparm
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_fmt_cap
Returning size of 720x625
ERROR: v4l2 capture: width or height too small.
mxc_v4l_close: release resource
root@freescale /unit_tests$
root@freescale /unit_tests$ camera_testapp & //Starting the camera test application to test the video streaming
root@freescale /unit_tests$
-------------------------------------------------
PRODUCT_NAME : e-CAMNT_MX53x
SVN_REVISION : 397
SVN_DATE : 2012-02-10
SVN_TIME : 17:37:22
-------------------------------------------------
Detected screen resolution is 640 x 480
main[711] #1
main[734] #2
main[738] #3
IPU:In csi_enc_enabling_tasks
In csi_enc_setup
main[745] #4
main[780] #5
mxc_ipu mxc_ipu: warning: disable ipu dma channel 0 during its busy state
IPU:In csi_enc_enabling_tasks
In csi_enc_setup
mxc_ipu mxc_ipu: IPU Error - IPU_INT_STAT_5 = 0x00000001 // We are getting this error for the IPU. these are coming repeatedly.
mxc_ipu mxc_ipu: IPU Error - IPU_INT_STAT_10 = 0x00000001
ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0 // Also the error for the VIDIOC_DQBUF, these are coming repeatedly.
fd_capture_v4l : VIDIOC_DQBUF failed.
ERROR: v4l2 capture: VIDIOC_QBUF: buffer already queued
fd_capture_v4l: VIDIOC_QBUF failed
ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0
fd_capture_v4l : VIDIOC_DQBUF failed.
ERROR: v4l2 capture: VIDIOC_QBUF: buffer already queued
fd_capture_v4l: VIDIOC_QBUF failed
mxc_ipu mxc_ipu: Channel already disabled 10 // These are also the errors coming repeatedly. Also, we are getting this error, if we play an MP4 Video file to the Display.
mxc_ipu mxc_ipu: Channel already uninitialized 10
mxc_ipu mxc_ipu: IPU Error - IPU_INT_STAT_10 = 0x00000001
mxc_ipu mxc_ipu: Channel already disabled 10
mxc_ipu mxc_ipu: Channel already uninitialized 10
mxc_ipu mxc_ipu: IPU Error - IPU_INT_STAT_10 = 0x00000001
ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0
fd_capture_v4l : VIDIOC_DQBUF failed.
ERROR: v4l2 capture: VIDIOC_QBUF: buffer already queued
fd_capture_v4l: VIDIOC_QBUF failed
root@freescale /unit_tests$ ps
PID TTY TIME CMD
1 ? 00:00:00 init
2 ? 00:00:00 kthreadd
3 ? 00:00:00 ksoftirqd/0
4 ? 00:00:00 events/0
5 ? 00:00:00 khelper
8 ? 00:00:00 async/mgr
9 ? 00:00:00 pm
85 ? 00:00:00 usb_wakeup thre
86 ? 00:00:00 usb_wakeup thre
169 ? 00:00:00 sync_supers
171 ? 00:00:00 bdi-default
173 ? 00:00:00 kblockd/0
183 ? 00:00:00 otg_switch/0
189 ? 00:00:00 khubd
233 ? 00:00:00 kmmcd
270 ? 00:00:00 kswapd0
313 ? 00:00:00 aio/0
326 ? 00:00:00 crypto/0
1003 ? 00:00:00 kconservative/0
1008 ? 00:00:00 vpu_wq/0
1015 ? 00:00:00 esdhc_wq/0
1018 ? 00:00:00 esdhc_wq/0
1043 ? 00:00:00 mmcqd
1049 ? 00:00:00 scsi_eh_0
1050 ? 00:00:00 usb-storage
1099 ? 00:00:01 udevd
1809 ? 00:00:00 flush-179:0
2073 ? 00:00:00 sh
2102 ? 00:00:31 camera_testapp
2103 ? 00:00:00 v4l2q
2111 ? 00:00:00 ps
root@freescale /unit_tests$ kill 2102
root@freescale /unit_tests$
ERROR: v4l2 capture: mxc_v4l_dqueue() interrupt received
mxc_v4l_close: release resource
mxc_ipu mxc_ipu: IPU Error - IPU_INT_STAT_10 = 0x00000001
root@freescale /unit_tests$
root@freescale /unit_tests$ dmesg -c // Dmesg of the entire debug messages
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_ifparm
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_fmt_cap
Returning size of 720x625
tvp5147m1 2-005c: In tvp5147m1:ioctl_init
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_ctrl
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_fmt_cap
tvp5147m1 2-005c: In tvp5147m1_get_std
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_parm
type is V4L2_BUF_TYPE_VIDEO_CAPTURE
tvp5147m1 2-005c: In tvp5147m1:ioctl_s_parm
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_ifparm
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_fmt_cap
Returning size of 720x625
IPU:In csi_enc_enabling_tasks
In csi_enc_setup
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_fmt_cap
tvp5147m1 2-005c: In tvp5147m1_get_std
IPU_CONF = 0x00000760
IDMAC_CONF = 0x0000002F
IDMAC_CHA_EN1 = 0x00800001
IDMAC_CHA_EN2 = 0x00000000
IDMAC_CHA_PRI1 = 0x18800001
IDMAC_CHA_PRI2 = 0x00000000
IDMAC_BAND_EN1 = 0x00000000
IDMAC_BAND_EN2 = 0x00000000
IPU_CHA_DB_MODE_SEL0 = 0x00000001
IPU_CHA_DB_MODE_SEL1 = 0x00000000
IPU_CHA_TRB_MODE_SEL0 = 0x00800000
IPU_CHA_TRB_MODE_SEL1 = 0x00000000
DMFC_WR_CHAN = 0x00000090
DMFC_WR_CHAN_DEF = 0x202020F6
DMFC_DP_CHAN = 0x00009694
DMFC_DP_CHAN_DEF = 0x2020F6F6
DMFC_IC_CTRL = 0x00000002
IPU_FS_PROC_FLOW1 = 0x00000000
IPU_FS_PROC_FLOW2 = 0x00000000
IPU_FS_PROC_FLOW3 = 0x00000000
IPU_FS_DISP_FLOW1 = 0x00000000
mxc_ipu mxc_ipu: warning: disable ipu dma channel 0 during its busy state
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_fmt_cap
tvp5147m1 2-005c: In tvp5147m1_get_std
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_parm
type is V4L2_BUF_TYPE_VIDEO_CAPTURE
tvp5147m1 2-005c: In tvp5147m1:ioctl_s_parm
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_ifparm
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_fmt_cap
Returning size of 720x625
IPU:In csi_enc_enabling_tasks
In csi_enc_setup
mxc_ipu mxc_ipu: IPU Error - IPU_INT_STAT_5 = 0x00000001
mxc_ipu mxc_ipu: IPU Error - IPU_INT_STAT_10 = 0x00000001
ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0
ERROR: v4l2 capture: VIDIOC_QBUF: buffer already queued
ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0
ERROR: v4l2 capture: VIDIOC_QBUF: buffer already queued
mxc_ipu mxc_ipu: Channel already disabled 10
mxc_ipu mxc_ipu: Channel already uninitialized 10
mxc_ipu mxc_ipu: IPU Error - IPU_INT_STAT_10 = 0x00000001
mxc_ipu mxc_ipu: Channel already disabled 10
mxc_ipu mxc_ipu: Channel already uninitialized 10
mxc_ipu mxc_ipu: IPU Error - IPU_INT_STAT_10 = 0x00000001
ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0
ERROR: v4l2 capture: VIDIOC_QBUF: buffer already queued
ERROR: v4l2 capture: mxc_v4l_dqueue() interrupt received
mxc_v4l_close: release resource
mxc_ipu mxc_ipu: IPU Error - IPU_INT_STAT_10 = 0x00000001
root@freescale /unit_tests$
root@freescale /unit_tests$
tvp5147m1 2-005c: In tvp5147m1:ioctl_g_fmt_cap
-------------------------------------------------------------------------------------------------------------------------------------------------------------
I have also attached the source of the camera test application, which i hope would be helpful.
Can you please check above log and let me know what could be the reasons for the errors we are getting related to the IPU & VIDIO_DQBUF??
Regards,
Gopi