Re: OMAP3 ISP and tvp5151 driver.

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

 



Hi all,

2011/1/12 Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>:
> 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.

I configured the TVP5151 to  8-bit 4:2:3 YCbCr output format. Is 8-bit
4:2:3 YCbCr output format implemented in OMAP3 ISP CCDC  ?

>
>> 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.

Can you give me an example using gstreamer ?

Running yavta I get

# ./yavta -f SGRBG10 -s 720x525 -n 4 --capture=4 --skip 3 -F /dev/video2
Device /dev/video2 opened: OMAP3 ISP CCDC output (media).
Video format set: width: 720 height: 525 buffer size: 756000
Video format: BA10 (30314142) 720x525
4 buffers requested.
length: 756000 offset: 0
Buffer 0 mapped at address 0x400f2000.
length: 756000 offset: 757760
Buffer 1 mapped at address 0x40385000.
length: 756000 offset: 1515520
Buffer 2 mapped at address 0x40466000.
length: 756000 offset: 2273280
Buffer 3 mapped at address 0x405ed000.
Unable to start streaming: 22.
Unable to dequeue buffer (22).
4 buffers released.

I know the format is not correct, but, is the "Unable to start
streaming: 22" error related to the format or is related to another
problem ?

Thanks in advance,
   Enric

>
> --
> 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