I.MX6: TW8836_TVIN(BT656) ===> CSI0 (8-Bit / CSI0_DAT12 : CSI0_DAT19)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I.MX6: TW8836_TVIN(BT656) ===> CSI0 (8-Bit / CSI0_DAT12 : CSI0_DAT19)

Jump to solution
6,586 Views
rajucm
Contributor III

Dear All,

We are developing TVIN V4L2 Slave driver for TW8836 (Video codec Chip from I).

This VCODEC chip can output BT656 standard YCbCr (8bit) NTSC/PAL video standard.

In my schematic,

TW8836(VCODEC) ===connected===>IMx6q's CSI0 (CSI0_DAT12 : CSI0_DAT19).

It also has HSYNC & VSYNC Lines for video synchronization.

I have followed, ADV7180 as a example driver and initialized TW8836 with vendor recommended values using I2C.

I used following IOCTL callback to configure TW8836

=================================================================================================

static int ioctl_dev_init(struct v4l2_int_device *s)

{

    int ret;

    tw8836_data.on = true;

    pr_debug("In tw8836:ioctl_dev_init\n");

    ret = tw8836_chip_init();      // <--- Configure TW8836 to output BT656 standard video

                                            //       Configurations were given by TW8836 vendor

    return ret;

}

We further check that, I2C read/Writes are perfect and sensor configured for given values.

Also we measured, Pix-clock using scope i.e 27MHz (cool.. I believe it is as per standard).

====================================================================================================

Then, I tried using mxc_v4l2_tvin application as recommended as follows...

root@sabresd_6dq:/ # mxc_v4l2_tvin -ow 720 -oh 525 -ol 10 -ot 20 -f YUV422

        mxc_v4l2_tvin -ow 720 -oh 480 -ol 20

        TV decoder chip is tw8836_decoder

        driver=mxc_vout, card=DISP3 FG, bus=, version=0x00000000, capabilities=0x04000002

        fmt RGB565: fourcc = 0x50424752

        fmt BGR24: fourcc = 0x33524742

        fmt RGB24: fourcc = 0x33424752

        fmt RGB32: fourcc = 0x34424752

        fmt BGR32: fourcc = 0x34524742

        fmt NV12: fourcc = 0x3231564e

        fmt UYVY: fourcc = 0x59565955

        fmt YUYV: fourcc = 0x56595559

        fmt YUV422 planar: fourcc = 0x50323234

        fmt YUV444: fourcc = 0x34343459

        fmt YUV420: fourcc = 0x32315559

        fmt YVU420: fourcc = 0x32315659

        fmt TILED NV12P: fourcc = 0x50564e54

        fmt TILED NV12F: fourcc = 0x46564e54

        fmt YUV444 planar: fourcc = 0x50343434

        start time = 86476 s, 582752 us

Now what we can see is, a window is displayed with noise (may be white noise). I have updated screen snap shot (pleas check).

Can any one give me some hint. What could be gone wrong???   Please lemme know if more info needed...

Please help me....

Thanks,

Rajucm

Labels (4)
1 Solution
2,127 Views
rajucm
Contributor III

Friends,

My V4L2 TVin driver is working. Its all about sensor configuration...^^

FAE gave me another set of tw8836 codec configuration and it just worked and now we can see video input.

Fortunately I myself answering my question :smileyhappy: (lol)

My Suggestions, Just follow tvin reference driver adv7180 given by Freescale and configure your sensor/videocodec chip with right values.

and run mxc_v4l2_tvin -ow 720 -oh 480 -ol 10 -ot 20. If it at all there is a problem, you can assume that its problem with HW or sensor configuration.

Make sure pclk(27MHz) and your input must be standard UYUV / YCbCr 4:2:2 NTSC / PAL.

20150402_153117.jpg

Thanks,

Rajucm

View solution in original post

9 Replies
2,127 Views
david5icp
Contributor III

Hi Raju CM,

We also using TW8836 chip for other application and glad to hear success case!!

As you say::

"Make sure pclk(27MHz) and your input must be standard UYUV / YCbCr 4:2:2 NTSC / PAL."

But i.mx6 only support  YUV422 (YUYV) and YUV422 (UYVY) input format, not include UYUV...

Do we need to do format converter or not ? Or what kind of pixelformat you use ? Thanks!

BR.

David Wu

0 Kudos
2,127 Views
echozeng
Contributor III

You can get init code of tw**** form vendor. My tw9900 is working now.

0 Kudos
2,127 Views
JohnDoe1z
Contributor III

Could you please provide your driver for the TW9900? I'm also planning to use that video-adc; would be nice to have some code to start with.

0 Kudos
2,127 Views
echozeng
Contributor III

please email to  zengzh@139.com

0 Kudos
2,127 Views
curtl
Contributor I

rajucm​, can you share your vendor provided tw8836_chip_init() code?

0 Kudos
2,127 Views
rajucm
Contributor III

Dear all,

May I get some help on this... please give me some direction.

Thank you,

Raju

0 Kudos
2,127 Views
rajucm
Contributor III

Dear All,

Some info,

as explained in De-interlace Capture Device I have applied add-csi-deinterlace-capture.patch.zip patch.

From logs evry thing looks ok. Isee propes Que & Dequeue Buffer.

But still I see white noise as uploaded in above pic.

Please gimme some pointer.....

root@sabresd_6dq:/ # mxc_v4l2_tvin -ow 720 -oh 480 -ol 10 -ot 20

mxc_v4l2_tvin -ow 720 -oh 480 -ol 10 -ot 20

TV decoder chip is ov5640_camera

driver=mxc_vout, card=DISP3 FG, bus=, version=0x00000000, capabilities=0x04000002

fmt RGB565: fourcc = 0x50424752

fmt BGR24: fourcc = 0x33524742

fmt RGB24: fourcc = 0x33424752

fmt RGB32: fourcc = 0x34424752

fmt BGR32: fourcc = 0x34524742

fmt NV12: fourcc = 0x3231564e

fmt UYVY: fourcc = 0x59565955

fmt YUYV: fourcc = 0x56595559

fmt YUV422 planar: fourcc = 0x50323234

fmt YUV444: fourcc = 0x34343459

fmt YUV420: fourcc = 0x32315559

fmt YVU420: fourcc = 0x32315659

fmt TILED NV12P: fourcc = 0x50564e54

fmt TILED NV12F: fourcc = 0x46564e54

fmt YUV444 planar: fourcc = 0x50343434

=========================================================================

In MVC: mxc_v4l_open

mxc_v4l_open 1606    device name is Mxc Camera

ioctl_g_ifparm 276 TW8836: tw8836_p ioctl_g_ifparm

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 332 TW8836: V4L2_BUF_TYPE_VIDEO_CAPTURE Returning size of 720x525

mxc_v4l_open 1705 End of mxc_v4l_open: v2f pix widthxheight 720 x 480

mxc_v4l_open 1708 End of mxc_v4l_open: crop_bounds widthxheight 720 x 525

mxc_v4l_open 1711 End of mxc_v4l_open: crop_defrect widthxheight 720 x 525

mxc_v4l_open 1714 End of mxc_v4l_open: crop_current widthxheight 720 x 525

mxc_v4l_open 1718 On Open: Input to ipu size is 720 x 525

imx-ipuv3 imx-ipuv3.0: CSI_SENS_CONF = 0x00000A02

imx-ipuv3 imx-ipuv3.0: CSI_ACT_FRM_SIZE = 0x020C02CF

In tw8836:ioctl_s_power 1

In tw8836:ioctl_init

ioctl_dev_init 224 TW8836: In tw8836:ioctl_dev_init

tw8836_chip_init 196 TW8836: ==> called, Initialize CVBS IN to PLAIN BT656 OUT

tw8836_write_reg 142 TW8836: PAGE Reg value changed to ox0

tw8836_write_reg 142 TW8836: PAGE Reg value changed to ox1

tw8836_write_reg 142 TW8836: PAGE Reg value changed to ox2

tw8836_write_reg 142 TW8836: PAGE Reg value changed to ox6

tw8836 0-0045: INIT DONE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80685600

mxc_v4l_do_ioctl 1953    case VIDIOC_QUERYCAP

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c02c5651

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0045627

mxc_v4l_do_ioctl 2354    case VIDIOC_S_INPUT 1

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 40085618

mxc_v4l_do_ioctl 2298    case VIDIOC_S_STD

mxc_v4l2_s_std 1456 In mxc_v4l2_s_std b000

mxc_v4l2_s_std 1464    Setting standard to NTSC b000

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c02c563a

mxc_v4l_do_ioctl 2140    case VIDIOC_CROPCAP

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0cc5616

mxc_v4l_do_ioctl 2266    case VIDIOC_S_PARM

mxc_v4l2_s_param 1320 In mxc_v4l2_s_param

In tw8836:ioctl_g_parm

ioctl_g_parm 370 TW8836:    type is V4L2_BUF_TYPE_VIDEO_CAPTURE

mxc_v4l2_s_param 1348    Current capabilities are 0

mxc_v4l2_s_param 1351    Current capturemode is 0  change to 0

mxc_v4l2_s_param 1353    Current framerate is 30  change to 0

In tw8836:ioctl_s_parm

ioctl_g_ifparm 276 TW8836: tw8836_p ioctl_g_ifparm

mxc_v4l2_s_param 1382    clock_curr=mclk=0

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 332 TW8836: V4L2_BUF_TYPE_VIDEO_CAPTURE Returning size of 720x525

mxc_v4l2_s_param 1407    g_fmt_cap returns widthxheight of input as 720 x 525

imx-ipuv3 imx-ipuv3.0: CSI_SENS_CONF = 0x00008A32

imx-ipuv3 imx-ipuv3.0: CSI_ACT_FRM_SIZE = 0x01DF02CF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0cc5605

mxc_v4l_do_ioctl 1980    case VIDIOC_S_FMT

mxc_v4l2_s_fmt 817 In MVC: mxc_v4l2_s_fmt

mxc_v4l2_s_fmt 821    type=V4L2_BUF_TYPE_VIDEO_CAPTURE

mxc_v4l2_s_fmt 959 End of mxc_v4l2_s_fmt: v2f pix widthxheight 720 x 480

mxc_v4l2_s_fmt 962 End of mxc_v4l2_s_fmt: crop_bounds widthxheight 720 x 525

mxc_v4l2_s_fmt 965 End of mxc_v4l2_s_fmt: crop_defrect widthxheight 720 x 525

mxc_v4l2_s_fmt 968 End of mxc_v4l2_s_fmt: crop_current widthxheight 720 x 480

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0cc5604

mxc_v4l_do_ioctl 1970    case VIDIOC_G_FMT

mxc_v4l2_g_fmt 769 In MVC: mxc_v4l2_g_fmt type=1

mxc_v4l2_g_fmt 773    type is V4L2_BUF_TYPE_VIDEO_CAPTURE

mxc_v4l2_g_fmt 787 End of mxc_v4l2_g_fmt: v2f pix widthxheight 720 x 480

mxc_v4l2_g_fmt 790 End of mxc_v4l2_g_fmt: crop_bounds widthxheight 720 x 525

mxc_v4l2_g_fmt 793 End of mxc_v4l2_g_fmt: crop_defrect widthxheight 720 x 525

mxc_v4l2_g_fmt 796 End of mxc_v4l2_g_fmt: crop_current widthxheight 720 x 480

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0145608

mxc_v4l_do_ioctl 1990    case VIDIOC_REQBUFS

mxc_streamoff 497 In MVC:mxc_streamoff

mxc_free_frame_buf 241 MVC: In mxc_free_frame_buf

mxc_allocate_frame_buf 268 In MVC:mxc_allocate_frame_buf - size=691200

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445609

mxc_v4l_do_ioctl 2019    case VIDIOC_QUERYBUF

mxc_v4l2_buffer_status 328 In MVC:mxc_v4l2_buffer_status

mxc_mmap 2478 In MVC:mxc_mmap

mxc_mmap 2480    pgoff=0x21a00, start=0x40738000, end=0x407e1000

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445609

mxc_v4l_do_ioctl 2019    case VIDIOC_QUERYBUF

mxc_v4l2_buffer_status 328 In MVC:mxc_v4l2_buffer_status

mxc_mmap 2478 In MVC:mxc_mmap

mxc_mmap 2480    pgoff=0x21b00, start=0x40831000, end=0x408da000

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445609

mxc_v4l_do_ioctl 2019    case VIDIOC_QUERYBUF

mxc_v4l2_buffer_status 328 In MVC:mxc_v4l2_buffer_status

mxc_mmap 2478 In MVC:mxc_mmap

mxc_mmap 2480    pgoff=0x1e000, start=0x409a9000, end=0x40a52000

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 40045612

mxc_v4l_do_ioctl 2103    case VIDIOC_STREAMON

mxc_streamon 409 In MVC:mxc_streamon

mxc_streamon 445 Debug pointer

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_5 = 0x00000001

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_5 = 0x00000001

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_5 = 0x00000001

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_5 = 0x00000001

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_5 = 0x00000001

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

camera_callback 2578 In MVC:camera_callback

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c044560f

mxc_v4l_do_ioctl 2052    case VIDIOC_QBUF

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl 80085617

mxc_v4l_do_ioctl 2286    case VIDIOC_G_STD

mxc_v4l2_g_std 1502 In mxc_v4l2_g_std

ioctl_g_fmt_cap 326 TW8836:

ioctl_g_fmt_cap 337 TW8836: V4L2_BUF_TYPE_PRIVATE

mxc_v4l_ioctl 2458 In MVC:mxc_v4l_ioctl

mxc_v4l_do_ioctl 1940 In MVC: mxc_v4l_do_ioctl c0445611

mxc_v4l_do_ioctl 2087    case VIDIOC_DQBUF

mxc_v4l_dqueue 1542 In MVC:mxc_v4l_dqueue

mxc_v4l_dqueue 1552 ERROR: v4l2 capture: mxc_v4l_dqueue() interrupt received

mxc_v4l_close 1761 In MVC:mxc_v4l_close

mxc_streamoff 497 In MVC:mxc_streamoff

imx-ipuv3 imx-ipuv3.0: CSI stop timeout - 5 * 10ms

mxc_free_frames 306 In MVC:mxc_free_frames

In tw8836:ioctl_s_power 0

mxc_v4l_close 1793 mxc_v4l_close: release resource

mxc_free_frame_buf 241 MVC: In mxc_free_frame_buf

mxc_free_frames 306 In MVC:mxc_free_frames

init: untracked pid 3069 exited

0 Kudos
2,127 Views
rajucm
Contributor III

I think it look like I am getting data from sensor....

mxc_v4l2_tvin directly dump the data to FB0,

Can any one tell me how to store this data in yuv file. So that at least I can play using YUV player and test.

any help would be appreciated...

Thanks,

Raju

0 Kudos
2,128 Views
rajucm
Contributor III

Friends,

My V4L2 TVin driver is working. Its all about sensor configuration...^^

FAE gave me another set of tw8836 codec configuration and it just worked and now we can see video input.

Fortunately I myself answering my question :smileyhappy: (lol)

My Suggestions, Just follow tvin reference driver adv7180 given by Freescale and configure your sensor/videocodec chip with right values.

and run mxc_v4l2_tvin -ow 720 -oh 480 -ol 10 -ot 20. If it at all there is a problem, you can assume that its problem with HW or sensor configuration.

Make sure pclk(27MHz) and your input must be standard UYUV / YCbCr 4:2:2 NTSC / PAL.

20150402_153117.jpg

Thanks,

Rajucm