Thread (15 messages) 15 messages, 9 authors, 2008-10-24

RE: [PATCH] OMAP 2/3 V4L2 display driver on video planes

flat view

From: Shah, Hardik <hidden>
Date: 2008-10-03 14:41:08
Also in: linux-media, linux-omap

-----Original Message-----
From: Hans Verkuil [mailto:hverkuil@xs4all.nl]
Sent: Friday, October 03, 2008 8:04 PM
To: video4linux-list@redhat.com
Cc: Shah, Hardik; linux-omap@vger.kernel.org; linux-fbdev-devel@lists.sourceforge.net
Subject: Re: [PATCH] OMAP 2/3 V4L2 display driver on video planes

On Wednesday 17 September 2008 17:05:42 Hardik Shah wrote:
quoted
From: Vaibhav Hiremath <redacted>

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 <redacted>
		Hari Nagalla [off-list ref]
		Hardik Shah [off-list ref]
		Manju Hadli [off-list ref]
		R Sivaraj [off-list ref]
		Vaibhav Hiremath [off-list ref]
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.
[Shah, Hardik] Hans I will revisit the code and will provide you with the sufficient information.
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.
[Shah, Hardik] 80 column was implemented to make the checkpatch pass.  Point noted and will take care of this.
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?
[Shah, Hardik] we are in process of coordinating this.
Regards,

	Hans
quoted
---
 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
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help