Hi,
I am trying to get DM3730 to work with ADV7180 i2c driver and I realize there is this media controller framework that omap3isp uses.
Is it necessary to patch ADV7180 driver with media controller framework or is there other way to bypass the ISP and use the driver direct?
If media controller framework is the suggested solution, is there any guide that I can reference?
I have attempt patching ADV7180 with media controller framework with the following issues:
Encounter error with yavta when opening stream.
I am trying to pipe adv7180->ccdc->ccdc output and use yavta to test, the following is some of the output I captured:
DM-37x# media-ctl -p
...
- entity 6: OMAP3 ISP CCDC output (1 pad, 1 link)
type Node subtype V4L
device node name /dev/video2
pad0: Sink
<- "OMAP3 ISP CCDC":1 []
...
- entity 16: adv7180 2-0021 (1 pad 1 link)
type V4L2 subdev subtype Unknown
device node name /dev/v4l-subdev8
pad0: Source [unknown 0x0]
-> "OMAP3 ISP CCDC":0 []
DM-37x# media-ctl -v -r -l '"adv7180 2-0021":0->"OMAP3 ISP CCDC":0[1], "OMAP3 ISP CCDC":1->"OMAP3 ISP CCDC output":0[1]'
Opening media device /dev/media0
Enumerating entities
Found 16 entities
Enumerating pads and links
Resetting all links to inactive
Setting up link 16:0 -> 5:0 [1]
Setting up link 5:1 -> 6:0 [1]
DM-37x# media-ctl -v -f '"adv7180 2-0021":0 [UYVY2X8 720x480], "OMAP3 ISP CCDC":0 [UYVY2X8 720x480]'
Opening media device /dev/media0
Enumerating entities
Found 16 entities
Enumerating pads and links
Setting up format UYVY2X8 720x480 on pad adv7180 2-0021/0
Format set:UYVY2X8 720x480
Setting up format UYVY2X8 720x480 on pad OMAP3 ISP CCDC/0
Format set:UYVY2X8 720x480
Setting up format UYVY2X8 720x480 on pad OMAP3 ISP CCDC/0
Format set:UYVY2X8 720x480
DM-37x# yavta --enum-formats /dev/video2
Device /dev/video2 opened.
Device 'OMAP3 ISP CCDC output' on 'media' is a video capture device.
- Available formats:
Format 0: UYVY (59565955)
Type: Video capture (1)
Name:
Video format: (00000000) 0x0 buffer size 0
DM-37x# yavta -f UYVY -s 720x480 -n 1 --capture=1 -F /dev/video2
Device /dev/video2 opened.
Device 'OMAP3 ISP CCDC output' on 'media' is a video capture device.
Video format set: UYVY (59565955) 720x480 buffer size 691200
Video format: UYVY (59565955) 720x480 buffer size 691200
1 buffer requested.
length: 691200 offset: 0
Buffer 0 mapped at address 0x402c1000.
Unable to start streaming: Broken pipe (32).
1 buffer released.
DM-37x#
Any help would be appreciated =)
Thanks and Regards