Linux Framebuffer Layer development
 help / color / mirror / Atom feed
From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
To: "Hiremath, Vaibhav" <hvaibhav@ti.com>
Cc: "linux-fbdev@vger.kernel.org" <linux-fbdev@vger.kernel.org>,
	Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: RE: Idea of a v4l -> fb interface driver
Date: Thu, 27 May 2010 07:35:23 +0000	[thread overview]
Message-ID: <Pine.LNX.4.64.1005270905300.2293@axis700.grange> (raw)
In-Reply-To: <19F8576C6E063C45BE387C64729E7394044E616F05@dbde02.ent.ti.com>

On Thu, 27 May 2010, Hiremath, Vaibhav wrote:

> > OTOH V4L2 has a standard video output driver support, it is not very
> > widely used, in the userspace I know only of gstreamer, that somehow
> > supports video-output v4l2 devices in latest versions. But, being a part
> > of the v4l2 subsystem, these drivers already now can take a full advantage
> > of all v4l2 APIs, including the v4l2-subdev API for the driver reuse.
> > 
> > So, how can we help graphics driver developers on the one hand by
> > providing them with a capable driver framework (v4l2) and on the other
> > hand by simplifying the task of interfacing to the user-space?
> > 
> [Hiremath, Vaibhav] I think this is really complex question which 
> requires healthy discussion over list.

So, let's do that;)

> > How about a v4l2-output - fbdev translation layer? You write a v4l2-output
> > driver and get a framebuffer device free of charge... TBH, I haven't given
> > this too much of a thought, but so far I don't see anything that would
> > make this impossible in principle. The video buffer management is quite
> > different between the two systems, but maybe we can teach video-output
> > drivers to work with just one buffer too? 
>
> [Hiremath, Vaibhav] I believe V4L2 buf won't limit you to do this. 
> Atleast in case of OMAP v4L2 display driver we are sticking to last 
> buffer if application fails to queue one. So for me this is single 
> buffer keeps on displaying unless application queue next buffer.

Good, so, that's not a problem.

> > Anyway, feel free to tell me why
> > this is an absolutely impossible / impractical idea;)
> > 
> [Hiremath, Vaibhav] If I understanding correctly you are trying to 
> propose something like,
> 
> Without changing Fbdev interface to user space application, create 
> translation layers which will allow driver developer to write driver 
> under V4L2 framework providing /dev/fbx but using V4L2 API/framework.

Exactly.

> Also as mentioned by Jaya, it would be great if you put benefits we are 
> targeting would be helpful.

One of the benefits is the availability the subdevice API, and the 
forthcoming media controller API. I think, on some SoCs graphics 
processing units (scalers, format converters, compressors / decompressors) 
can be configured to either video input or output paths, so, it would make 
sense to manage them from one (v4l) driver framework. And I don't see a 
reason why you cannot have a /dev/fbX interface to the user-space at the 
same time. Yes, you can code it into your v4l driver, and some drivers do 
that already, but why not have it once for all? Last but not lease, having 
multiple incompatible subsystems in the kernel for pretty much the same 
task seems somewhat redundant to me. Yes, I know, this is not a complete 
redundancy, both v4l and fbdev have features, unsupported by the other, 
but IMHO some redundancy is definitely there.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

  reply	other threads:[~2010-05-27  7:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-26 14:09 Idea of a v4l -> fb interface driver Guennadi Liakhovetski
2010-05-27  0:21 ` Jaya Kumar
2010-05-27  6:56   ` Guennadi Liakhovetski
2010-05-27 11:05     ` Jaya Kumar
2010-05-27 12:48       ` Guennadi Liakhovetski
2010-05-27 19:55     ` Alex Deucher
2010-05-28  8:21       ` Guennadi Liakhovetski
2010-05-28 17:47         ` Alex Deucher
2010-05-28 19:15           ` Florian Tobias Schandinat
2010-05-28 19:25             ` Guennadi Liakhovetski
2010-05-28 19:58               ` Florian Tobias Schandinat
2010-05-28 19:41             ` Alex Deucher
2010-05-28 20:06               ` Ville Syrjälä
2010-05-30 11:15                 ` Dave Airlie
     [not found]     ` <4BFED8B0.8010504@ti.com>
2010-05-28 10:07       ` Guennadi Liakhovetski
2010-05-27  6:56 ` Hiremath, Vaibhav
2010-05-27  7:35   ` Guennadi Liakhovetski [this message]
2010-05-27 19:00   ` Udo Richter

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=Pine.LNX.4.64.1005270905300.2293@axis700.grange \
    --to=g.liakhovetski@gmx.de \
    --cc=hvaibhav@ti.com \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    /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