On Wednesday 17 September 2008 17:05:42 Hardik Shah wrote: > From: Vaibhav Hiremath <hvaibhav@xxxxxx> > > OMAP 2/3 V4L2 display driver sits on top of DSS library > and uses TV overlay and 2 video pipelines (video1 and video2) > to display image on TV. It exposes 2 V4L2 nodes for user > interface. > It supports standard V4L2 ioctls. > > Signed-off-by: Brijesh Jadav <brijesh.j@xxxxxx> > Hari Nagalla <hnagalla@xxxxxx> > Hardik Shah <hardik.shah@xxxxxx> > Manju Hadli <mrh@xxxxxx> > R Sivaraj <sivaraj@xxxxxx> > Vaibhav Hiremath <hvaibhav@xxxxxx> I've taken a quick look and I have a two main comments: 1) Please use video_ioctl2 rather than setting up your own ioctl callback. New drivers should use it. 2) Can you describe what the non-standard v4l2 ioctls are used for? I suspect that some of these can be done differently. Something like a chromakey is already available in v4l2 (through VIDIOC_G/S_FBUF and VIDIOC_G/S_FMT), things like mirror is available as a control, and rotation should perhaps be a control as well. Ditto for background color. These are just ideas, it depends on how it is used exactly. 3) Some of the lines are broken up rather badly probably to respect the 80 column maximum. Note that the 80 column maximum is a recommendation, and that readability is more important. So IMHO it's better to have a slightly longer line and break it up at a more logical place. However, switching to video_ioctl2 will automatically reduce the indentation, so this might not be that much of an issue anymore. It is possible to setup a mercurial repository on linuxtv.org? I thought that Manju has an account by now. This is useful as well for all the other omap camera patches. I've seen omap patches popping up all over the place for the past six months (if not longer) but it needs to be a bit more organized if you want it to be merged. Setting up v4l-dvb repositories containing the new patches is a good way of streamlining the process. Obviously the process is more complicated for you since the omap stuff relies on various subsystems and platform code. Perhaps someone within TI should be coordinating this? Regards, Hans > --- > drivers/media/video/Kconfig | 10 +- > drivers/media/video/Makefile | 2 + > drivers/media/video/omap/Kconfig | 12 + > drivers/media/video/omap/Makefile | 2 + > drivers/media/video/omap/omap_vout.c | 3524 > +++++++++++++++++++++++++++++++ > drivers/media/video/omap/omap_voutdef.h | 196 ++ > drivers/media/video/omap/omap_voutlib.c | 283 +++ > drivers/media/video/omap/omap_voutlib.h | 34 + > include/linux/omap_vout.h | 60 + > 9 files changed, 4121 insertions(+), 2 deletions(-) > create mode 100644 drivers/media/video/omap/omap_vout.c > create mode 100644 drivers/media/video/omap/omap_voutdef.h > create mode 100644 drivers/media/video/omap/omap_voutlib.c > create mode 100644 drivers/media/video/omap/omap_voutlib.h > create mode 100644 include/linux/omap_vout.h -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html