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

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

 



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 not both.
> 
> In terms of V4L2 such a device would be both of OUTPUT and CAPTURE type.
> 
> Examples of such devices would be: image 'resizers', 'rotators',
> 'colorspace converters', etc.
> 
> This patch adds a separate Kconfig sub-menu for mem-to-mem devices as well.
> 
> Signed-off-by: Pawel Osciak <p.osciak@xxxxxxxxxxx>
> Signed-off-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
> Reviewed-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>
> ---

Pawel,

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);
> +}

[...]

> +void v4l2_m2m_job_finish(struct v4l2_m2m_dev *m2m_dev,
> +			 struct v4l2_m2m_ctx *m2m_ctx)
> +{
[...]
> +	  v4l2_m2m_try_schedule(m2m_ctx);
> +	v4l2_m2m_try_run(m2m_dev);
> +}

I assume it is not bad, but was it your intention to have an addtitonal
call to v4l2_m2m_try_run() ?


Regards,
Andy

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