Re: [PATCH 1/11 - v3] vpfe capture bridge driver for DM355 and DM6446

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

 



On Thursday 02 July 2009 19:05:51 m-karicheri2@xxxxxx wrote:
> From: Muralidharan Karicheri <m-karicheri2@xxxxxx>
> 
> Re-sending to add description for VPFE_CMD_S_CCDC_RAW_PARAMS and
> updating debug prints with \n and fixing an error coder ENOMEM
> 
> VPFE Capture bridge driver
> 
> This is version, v3 of vpfe capture bridge driver for doing video
> capture on DM355 and DM6446 evms. The ccdc hw modules register with the
> driver and are used for configuring the CCD Controller for a specific
> decoder interface. The driver also registers the sub devices required
> for a specific evm. More than one sub devices can be registered.
> This allows driver to switch dynamically to capture video from
> any sub device that is registered. Currently only one sub device
> (tvp5146) is supported. But in future this driver is expected
> to do capture from sensor devices such as Micron's MT9T001,MT9T031
> and MT9P031 etc. The driver currently supports MMAP based IO.
> 
> Following are the updates based on review comments:-
> 	1) clean up of setting bus parameters in ccdc
> 	2) removed v4l2_routing structure type
> 	3) module authors, description changes 
> 	4) pixel aspect constants removed
> 
> Reviewed by: Hans Verkuil <hverkuil@xxxxxxxxx>
> Reviewed by: Laurent Pinchart <laurent.pinchart@xxxxxxxxx>
> Reviewed by: Alexey Klimov <klimov.linux@xxxxxxxxx>
> 
> Signed-off-by: Muralidharan Karicheri <m-karicheri2@xxxxxx>
> ---
> Applies to v4l-dvb repository
> 
>  drivers/media/video/davinci/vpfe_capture.c | 2136 ++++++++++++++++++++++++++++
>  include/media/davinci/vpfe_capture.h       |  194 +++
>  include/media/davinci/vpfe_types.h         |   51 +
>  3 files changed, 2381 insertions(+), 0 deletions(-)
>  create mode 100644 drivers/media/video/davinci/vpfe_capture.c
>  create mode 100644 include/media/davinci/vpfe_capture.h
>  create mode 100644 include/media/davinci/vpfe_types.h
> 
> diff --git a/drivers/media/video/davinci/vpfe_capture.c b/drivers/media/video/davinci/vpfe_capture.c

<snip>

> +/**
> + * VPFE_CMD_S_CCDC_RAW_PARAMS - Driver private IOCTL to set raw capture params
> + * This ioctl is used to configure the ccdc module such as defect pixel
> + * correction, color space conversion, culling etc. in raw capture mode.
> + * TODO: This is to be split into multiple ioctls and also explore the
> + * possibility of extending the v4l2 api to include them
> + **/
> +#define VPFE_CMD_S_CCDC_RAW_PARAMS _IOW('V', BASE_VIDIOC_PRIVATE + 1, \
> +					void *)
> +#endif				/* _DAVINCI_VPFE_H */

I've only one request: can you add something along the lines of:

"This is an experimental ioctl that will change in future kernels.
Use with care."

And at the top add: "EXPERIMENTAL IOCTL"

That way it is unambiguous that this will change. And it definitely has
to change! On the other hand I can imagine that it is useful to have this
available to experiment with. We have made experimental APIs before, so
there is a precedent for this, as long as it is very clearly marked as
experimental.

In fact, it would be even better if there is a KERN_WARNING message issued
mentioning the experimental status of this ioctl whenever it is used.

If you can do this asap, then I'll merge everything tomorrow morning and
make a new pull request for this.

Regards,

	Hans

-- 
Hans Verkuil - video4linux developer - sponsored by TANDBERG Telecom
--
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