public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* Re: soc-camera : sh_mobile_ceu_camera race on free_buffer ?
@ 2009-01-19 14:02 Matthieu CASTET
  2009-01-20  4:46 ` Magnus Damm
  0 siblings, 1 reply; 14+ messages in thread
From: Matthieu CASTET @ 2009-01-19 14:02 UTC (permalink / raw)
  To: Magnus Damm; +Cc: video4linux-list, Guennadi Liakhovetski

Hi,

I am writing a soc camera driver, and I use sh_mobile_ceu_camera as an
example.

But I don't understand how buffer are handled when the application is
doing a streamoff :

streamoff will call videobuf_streamoff and then videobuf_queue_cancel.
videobuf_queue_cancel will call free_buffer.

But we didn't do stop_capture, so as far I understand the controller is
still writing data in memory. What prevent us to free the buffer we are
writing.


Why doesn't we do a stop_capture before videobuf_streamoff ?

I saw that pxa_camera use videobuf_waiton, before freeing the buffer.
That seem more safe, but that mean we need to wait that controller
finish to write all the pending buffer.


Matthieu

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

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

end of thread, other threads:[~2009-02-19 23:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-19 14:02 soc-camera : sh_mobile_ceu_camera race on free_buffer ? Matthieu CASTET
2009-01-20  4:46 ` Magnus Damm
2009-01-20  9:27   ` Matthieu CASTET
2009-02-13 10:14     ` Magnus Damm
2009-02-16  1:07       ` morimoto.kuninori
2009-02-18 18:51         ` Guennadi Liakhovetski
2009-02-19  1:01           ` morimoto.kuninori
2009-02-19  7:29             ` Guennadi Liakhovetski
2009-02-19  8:07               ` morimoto.kuninori
2009-02-19  8:33                 ` Guennadi Liakhovetski
2009-02-19  9:30                   ` morimoto.kuninori
2009-02-19  9:51                     ` Guennadi Liakhovetski
2009-02-19 23:56                       ` morimoto.kuninori
2009-02-18 18:56       ` Guennadi Liakhovetski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox