RE: [PATCH v3 1/2] v4l: Add memory-to-memory device helper framework for videobuf.

2010-04-01 Thread Pawel Osciak
>Pawel Osciak [mailto:p.osc...@samsung.com] wrote: >>> +unsigned int v4l2_m2m_poll(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, >>> + struct poll_table_struct *wait) >>> +{ >>> + struct videobuf_queue *dst_q; >>> + struct videobuf_buffer *vb = NULL; >>> + unsigned int

RE: [PATCH v3 1/2] v4l: Add memory-to-memory device helper framework for videobuf.

2010-04-01 Thread Pawel Osciak
Hi Hans, thank you for the review. My comments below. > Hans Verkuil [mailto:hverk...@xs4all.nl] wrote: >Here is my review... > [...] >> +/** >> + * v4l2_m2m_next_src_buf() - return next source buffer from the list of >> ready >> + * buffers >> + */ >> +inline void *v4l2_m2m_next_src_buf(struc

RE: [PATCH v3 1/2] v4l: Add memory-to-memory device helper framework for videobuf.

2010-04-01 Thread Hiremath, Vaibhav
> -Original Message- > From: Hans Verkuil [mailto:hverk...@xs4all.nl] > Sent: Thursday, April 01, 2010 2:37 PM > To: Pawel Osciak > Cc: linux-media@vger.kernel.org; m.szyprow...@samsung.com; > kyungmin.p...@samsung.com; Hiremath, Vaibhav > Subject: Re: [PATCH v3 1/

Re: [PATCH v3 1/2] v4l: Add memory-to-memory device helper framework for videobuf.

2010-04-01 Thread Hans Verkuil
On Thursday 01 April 2010 11:06:51 Hans Verkuil wrote: > Here is my review... > > > +/** > > + * v4l2_m2m_release() - cleans up and frees a m2m_dev structure > > + * > > + * Usually called from driver's remove() function. > > + */ > > +void v4l2_m2m_release(struct v4l2_m2m_dev *m2m_dev) > > +{ > >

Re: [PATCH v3 1/2] v4l: Add memory-to-memory device helper framework for videobuf.

2010-04-01 Thread Hans Verkuil
Here is my review... On Monday 29 March 2010 09:36:46 Pawel Osciak wrote: > A mem-to-mem device is a device that uses memory buffers passed by > userspace applications for both their source and destination data. This > is different from existing drivers, which utilize memory buffers for either > i

RE: [PATCH v3 1/2] v4l: Add memory-to-memory device helper framework for videobuf.

2010-03-31 Thread Pawel Osciak
>Andy Walls [mailto:awa...@md.metrocast.net] wrote: >I didn't do a full review (I have no time lately), but I noticed this: > > >> +static void v4l2_m2m_try_schedule(struct v4l2_m2m_ctx *m2m_ctx) >> +{ >> +struct v4l2_m2m_dev *m2m_dev; >[...] >> +v4l2_m2m_try_run(m2m_dev); >> +} > >[...]

Re: [PATCH v3 1/2] v4l: Add memory-to-memory device helper framework for videobuf.

2010-03-29 Thread Andy Walls
On Mon, 2010-03-29 at 09:36 +0200, Pawel Osciak wrote: > A mem-to-mem device is a device that uses memory buffers passed by > userspace applications for both their source and destination data. This > is different from existing drivers, which utilize memory buffers for either > input or output, but