Re: OMAP3 ISP and tvp5151 driver.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Enric,

On Wednesday 12 January 2011 12:58:04 Enric Balletbà i Serra wrote:
> Hi all,
> 
> As explained in my first mail I would like port the tvp515x driver to
> new media framework, I'm a newbie with the v4l2 API and of course with
> the new media framework API, so sorry if next questions are stupid or
> trivial (please, patience with me).
> 
> My idea is follow this link schem:
> 
> ---------------------------------------
> --------------------------------------------
>  ---------------------         |    |                              | 1
> 
> | ----------> | OMAP3 ISP CCDC OUTPUT |
> | TVP515x  | 0 | -----> | 0 | OMAP3 ISP CCDC  --- |
> 
> --------------------------------------------
>  --------------------          |    |                              | 2 |
>                                 ---------------------------------------

ASCII art would look much better if you drew it in a non-proportional font, 
with 80 character per line at most.

> Where:
>  * TVP515x is /dev/v4l-subdev8 c 81 15
>  * OMAP3 ISP CCDC is /dev/v4l-subdev2 c 81 4
>  * OMAP3 ISP CCDC OUTPUT is /dev/video2 c 81 5
> 
> Then activate these links with
> 
>  ./media-ctl -r -l '"tvp5150 2-005c":0->"OMAP3 ISP CCDC":0[1], "OMAP3
> ISP CCDC":1->"OMAP3 ISP CCDC output":0[1]'
>  Resetting all links to disabled
>  Setting up link 16:0 -> 5:0 [1]
>  Setting up link 5:1 -> 6:0 [1]
> 
> I'm on the right way or I'm completely lost ?

That's correct.

> I think the next step is adapt the tvp515x driver to new media
> framework, I'm not sure how to do this, someone can give some points ?

You need to implement subdev pad operations. get_fmt and set_fmt are required.

> Once this is done, I suppose I can test using gstreamer, for example
> using something like this.
> 
>    gst-launch v4l2src device=/dev/video2 ! ffmpegcolorspace ! xvimagesink
> 
> I'm right in this point ?

You need to specify the format explicitly. It must be identical to the format 
configured on pad CCDC:1.

-- 
Regards,

Laurent Pinchart
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux