public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil@xs4all.nl>
To: video4linux-list@redhat.com
Cc: Hardik Shah <hardik.shah@ti.com>,
	linux-omap@vger.kernel.org,
	linux-fbdev-devel@lists.sourceforge.net
Subject: Re: [PATCH] OMAP 2/3 V4L2 display driver on video planes
Date: Fri, 3 Oct 2008 16:33:43 +0200	[thread overview]
Message-ID: <200810031633.43418.hverkuil@xs4all.nl> (raw)
In-Reply-To: <1221663942-7160-1-git-send-email-hardik.shah@ti.com>

On Wednesday 17 September 2008 17:05:42 Hardik Shah wrote:
> From: Vaibhav Hiremath <hvaibhav@ti.com>
>
> 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@ti.com>
> 		Hari Nagalla <hnagalla@ti.com>
> 		Hardik Shah <hardik.shah@ti.com>
> 		Manju Hadli <mrh@ti.com>
> 		R Sivaraj <sivaraj@ti.com>
> 		Vaibhav Hiremath <hvaibhav@ti.com>

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

  parent reply	other threads:[~2008-10-03 14:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-17 15:05 [PATCH] OMAP 2/3 V4L2 display driver on video planes Hardik Shah
2008-09-17 15:30 ` Sakari Ailus
2008-09-17 15:42   ` Hiremath, Vaibhav
2008-10-03 14:33 ` Hans Verkuil [this message]
2008-10-03 14:40   ` Shah, Hardik
2008-10-05 11:19     ` Mauro Carvalho Chehab
2008-10-05 11:57       ` Robert William Fuller
2008-10-05 12:05         ` Mauro Carvalho Chehab
2008-10-07 21:48         ` [Linux-fbdev-devel] " Krzysztof Helt
2008-10-06  6:06       ` Shah, Hardik
2008-10-06  6:29         ` Hans Verkuil
2008-10-06  8:41           ` Måns Rullgård
2008-10-06  8:50           ` Shah, Hardik
2008-10-06 11:22             ` [Linux-fbdev-devel] " Geert Uytterhoeven
2008-10-24  9:50           ` Shah, Hardik
     [not found] <8bf247760810152337w62c47f8ideaf355a0ed08771@mail.gmail.com>
2008-10-16  7:09 ` Shah, Hardik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200810031633.43418.hverkuil@xs4all.nl \
    --to=hverkuil@xs4all.nl \
    --cc=hardik.shah@ti.com \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=linux-omap@vger.kernel.org \
    --cc=video4linux-list@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox