Re: [RFCv1 PATCH 24/32] videobuf2-core: add helper functions.

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

 



Hi Hans,

Thanks for the patch.

On Sunday 10 June 2012 12:25:46 Hans Verkuil wrote:
> From: Hans Verkuil <hans.verkuil@xxxxxxxxx>
> 
> Add helper functions to make it easier to adapt drivers to vb2.

What about moving those functions to videobuf2-ioctl.c ? The helper functions 
are based on top of an existing vb2 core that isn't aware of queue ownership. 
It's not clear (to me at least) how the helpers will evolve and whether they 
will be used by all drivers or not, or whether part of what they do will get 
merged into the vb2 core. Splitting the helpers in a separate file would help 
not mixing code too much without really thinking about it.

> These helpers take care of core locking and check if the filehandle is the
> owner of the queue.
> 
> This patch also adds support for count == 0 in create_bufs.

Could you please split that to its own patch ? The addition of 
__verify_memory_type() should be split as well.

> Signed-off-by: Hans Verkuil <hans.verkuil@xxxxxxxxx>

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