AnsweredAssumed Answered

Query on V4L2 driver for VIU3 subsystem on Vybrid VF61

Question asked by Sanchayan Maity on Jul 1, 2014
Latest reply on Feb 2, 2016 by Sanchayan Maity

I have a VF61 with me and wanted to use it's parallel camera interface provided by the VIU3 subsystem.

 

http://lxr.free-electrons.com/source/drivers/media/video/fsl-viu.c?v=3.0

 

I ported the driver on the above link for VF61 and managed to get a /dev/video0 node. I am using ITU656 8 bit as input from a ADV7180 decoder based module. The module is working and has been tested with a different processor. The ADV7180 driver is the same for both these processors.

 

On running the gstreamer pipeline, gst-launch v4l2src device=/dev/video0 ! ximagesink i get a blank window and the below messages with  dmesg.

 

[   30.356249] viu: viu: open (minor=0)

[   30.356276] viu: open minor=0 type=vid-cap users=1

[   30.356301] viu: Open: fh=0xc64a0600, dev=0xc632d800, dev->vidq=0xc632d874

[   30.356318] viu: Open: list_empty queued=1

[   30.356331] viu: Open: list_empty active=1

[   30.356348] viu: status reg: 0x00000000, field base: 0x00000000

[   30.385318] viu: Field type invalid.

[   30.385358] viu: Field type invalid.

[   30.385586] viu: Field type invalid.

[   30.385617] viu: Field type invalid.

[   30.392330] viu: set to pixelformat 'RGB-16'

[   30.397038] viu: buffer_setup, count=2, size=829440

[   30.397258] viu: mmap called, vma=0xc6970318

[   30.399994] viu: vma start=0x41147000, size=831488, ret=0

[   30.403309] viu: mmap called, vma=0xc6970370

[   30.406021] viu: vma start=0x41400000, size=831488, ret=0

[   30.406215] viu: adding vb active=0xc673342c

[   30.406246] viu: [c6733400/0] buffer_queue - first active

[   30.406267] viu: buffer_activate [c6733400/0]: dma addr 0x86a00000

[   30.406287] viu: adding vb queue2=0xc673302c

[   30.406305] viu: [c6733000/1] buffer_queue - append to active

[   30.900044] viu: viu/0: [c6733400/0] timeout

[   30.900069] viu: viu/0: [c6733000/1] timeout

[   30.900088] viu: restart_video_queue vidq=0xc632d874

[   30.928459] viu: adding vb active=0xc673342c

[   30.928492] viu: [c6733400/0] buffer_queue - first active

[   30.928513] viu: buffer_activate [c6733400/0]: dma addr 0x86a00000

[   31.020071] eth0: no IPv6 routers present

[   31.089362] viu: adding vb queue2=0xc673302c

[   31.089393] viu: [c6733000/1] buffer_queue - append to active

[   31.420047] viu: viu/0: [c6733400/0] timeout

[   31.420073] viu: viu/0: [c6733000/1] timeout

[   31.420091] viu: restart_video_queue vidq=0xc632d874

[   31.450408] viu: adding vb active=0xc673342c

[   31.450439] viu: [c6733400/0] buffer_queue - first active

[   31.450460] viu: buffer_activate [c6733400/0]: dma addr 0x86a00000

[   31.490781] viu: adding vb queue2=0xc673302c

[   31.490812] viu: [c6733000/1] buffer_queue - append to active

[   31.950033] viu: viu/0: [c6733400/0] timeout

[   31.950058] viu: viu/0: [c6733000/1] timeout

 

Can someone help me or point me as to what might me the issue? I have attached the patch which shows changes i made to the driver. Not much knowledgeable on V4L2 and video side. This is a completely personal project of mine.

Original Attachment has been moved to: viu.patch.zip

Outcomes