linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* omap3isp: sequence number in v4l2 buffer not incremented
@ 2012-01-25 15:34 Kruno Mrak
  2012-02-09 16:08 ` Laurent Pinchart
  0 siblings, 1 reply; 5+ messages in thread
From: Kruno Mrak @ 2012-01-25 15:34 UTC (permalink / raw)
  To: linux-media

Hello,

we have an omap based intelligent camera and
image sensor is connected to camera parallel interface.
Image capturing via "CCDC output" works fine.
When streaming is on and reading "sequence" variable, it shows
always -1.
Looking at kernel-source ispvideo.c, i found following
if-else statement:

/* Do frame number propagation only if this is the output video node.
  * Frame number either comes from the CSI receivers or it gets
  * incremented here if H3A is not active.
  * Note: There is no guarantee that the output buffer will finish
  * first, so the input number might lag behind by 1 in some cases.
  */
if (video == pipe->output && !pipe->do_propagation)
	buf->vbuf.sequence = atomic_inc_return(&pipe->frame_number);
else
	buf->vbuf.sequence = atomic_read(&pipe->frame_number);

When i change to
if (video == pipe->output && pipe->do_propagation)
...
the sequence variable is incremented.

So my question:
Could it be that "pipe->do_propagation" should be tested on true and
not on false?
If this change is wrong, how can i achieve that the sequence number is
incremented?

Thanks,
Kruno Mrak

MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner, Erhard Meier

^ permalink raw reply	[flat|nested] 5+ messages in thread
* omap3isp: sequence number in v4l2 buffer not incremented
@ 2012-01-16 10:32 Kruno Mrak
  0 siblings, 0 replies; 5+ messages in thread
From: Kruno Mrak @ 2012-01-16 10:32 UTC (permalink / raw)
  To: linux-media

Hello,

we have an omap based intelligent camera and
image sensor is connected to camera parallel interface.
Image capturing via "CCDC output" works fine.
When streaming is on and reading "sequence" variable, it shows
always -1.
Looking at kernel-source ispvideo.c, i found following
if-else statement:

/* Do frame number propagation only if this is the output video node.
  * Frame number either comes from the CSI receivers or it gets
  * incremented here if H3A is not active.
  * Note: There is no guarantee that the output buffer will finish
  * first, so the input number might lag behind by 1 in some cases.
  */
if (video == pipe->output && !pipe->do_propagation)
	buf->vbuf.sequence = atomic_inc_return(&pipe->frame_number);
else
	buf->vbuf.sequence = atomic_read(&pipe->frame_number);

When i change to
if (video == pipe->output && pipe->do_propagation)
...
the sequence variable is incremented.

So my questions:
Could it be that "pipe->do_propagation" should be tested on true and
not on false?
If my changes are wrong, is there a reason why the sequence is not 
incremented?


Thanks,
Kruno Mrak



MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner, Erhard Meier

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-10 17:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-25 15:34 omap3isp: sequence number in v4l2 buffer not incremented Kruno Mrak
2012-02-09 16:08 ` Laurent Pinchart
2012-02-10 16:18   ` Kruno Mrak
2012-02-10 17:03     ` Laurent Pinchart
  -- strict thread matches above, loose matches on Subject: below --
2012-01-16 10:32 Kruno Mrak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).