linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jun Nie <niej0001@gmail.com>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: linux-media <linux-media@vger.kernel.org>, linux-fbdev@vger.kernel.org
Subject: Re: V4L2 and framebuffer for the same controller
Date: Tue, 16 Nov 2010 01:28:24 +0000	[thread overview]
Message-ID: <AANLkTinksLXNiDWcSk_vSF5nmC-SZuWAOUe4oum5aGJz@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1011150925140.32257@axis700.grange>

2010/11/15 Guennadi Liakhovetski <g.liakhovetski@gmx.de>:
> On Mon, 15 Nov 2010, Jun Nie wrote:
>
>> 2010/11/15 Guennadi Liakhovetski <g.liakhovetski@gmx.de>:
>> > On Mon, 15 Nov 2010, Jun Nie wrote:
>> >
>> >> 2010/11/8 Jun Nie <niej0001@gmail.com>:
>> >> > 2010/11/2 Guennadi Liakhovetski <g.liakhovetski@gmx.de>:
>> >> >> Hi Jun
>> >> >>
>> >> >> On Fri, 29 Oct 2010, Jun Nie wrote:
>> >> >>
>> >> >>> Hi Guennadi,
>> >> >>>     I find that your idea of "provide a generic framebuffer driver
>> >> >>> that could sit on top of a v4l output driver", which may be a good
>> >> >>> solution of our LCD controller driver, or maybe much more other SOC
>> >> >>> LCD drivers. V4L2 interface support many features than framebuffer for
>> >> >>> video playback usage, such as buffer queue/dequeue, quality control,
>> >> >>> etc. However, framebuffer is common for UI display. Implement two
>> >> >>> drivers for one controller is a challenge for current architecture.
>> >> >>>     I am interested in your idea. Could you elaborate it? Or do you
>> >> >>> think multifunction driver is the right solution for this the
>> >> >>> scenario?
>> >> >>
>> >> >> Right, we have discussed this idea at the V4L2/MC mini-summit earlier this
>> >> >> year, there the outcome was, that the idea is not bad, but it is easy
>> >> >> enough to create such framebuffer additions on top of specific v4l2 output
>> >> >> drivers anyway, so, noone was interested enough to start designing and
>> >> >> implementing such a generic wrapper driver. However, I've heard, that this
>> >> >> topic has also been scheduled for discussion at another v4l / kernel
>> >> >> meeting (plumbers?), so, someone might be looking into implementing
>> >> >> this... If you yourself would like to do that - feel free to propose a
>> >> >> design on both mailing lists (fbdev added to cc), then we can discuss it,
>> >> >> and you can implement it;)
>> >> >>
>> >> >> Thanks
>> >> >> Guennadi
>> >> >> ---
>> >> >> Guennadi Liakhovetski, Ph.D.
>> >> >> Freelance Open-Source Software Developer
>> >> >> http://www.open-technology.de/
>> >> >>
>> >> >
>> >> > Good to know others are also interested in it. I surely can contribute
>> >> > to it. But my concern is how to support Xwindow. Android and Ubuntu
>> >> > should both run on our platform. Queue/deque should work well for
>> >> > Android UI. I still can not figure out how to support Xwindow, for it
>> >> > does not interact with driver after it get the mmaped buffer.
>> >> >
>> >> > Jun
>> >> >
>> >>
>> >> Guennadi,
>> >>
>> >> Any idea on supporting this feature with V4L2 based FB? I can not
>> >> figure out any method and will adopt framebuffer for UI and V4L2 for
>> >> video layer for the schedule pressure.
>> >
>> > Hi Jun
>> >
>> > Sorry, not sure I understand you right here. You are saying, that atm you
>> > don't have the time to work on a generic solution and are going for a
>> > specific one, right? Yes, that's what everybody is currently doing. And
>> > you're asking whether I am working or am going to work on such a generic
>> > solution? No, sorry, I don't think I'll have time for it either in the
>> > near future.
>> >
>> > Thanks
>> > Guennadi
>> > ---
>> > Guennadi Liakhovetski, Ph.D.
>> > Freelance Open-Source Software Developer
>> > http://www.open-technology.de/
>> >
>>
>>
>> Hi Guennadi
>>    I mean I have no idea on how to support Xwindow's requirement if FB
>> is based on V4L2. I can contribute on V4L2 based FB if it is clear.
>> But I will do as everbody does currently.
>
> Maybe you didn't understand the concept of this driver then. The shole
> idea is to have a v4l2 output driver as a base and add a framebuffer
> translation layer on the top. Which would provide two interfaces to the
> user: a v4l2 one with frame queuing etc, and a standard fb one, which
> should be usable by any fb application (X, directfb,...) natively.
>
> Thanks
> Guennadi
> ---
> Guennadi Liakhovetski, Ph.D.
> Freelance Open-Source Software Developer
> http://www.open-technology.de/
>

You mean fb with V4L2 interface will manage memory with video-buf and
standard fb interface still handle memory independently, ie. get
memory with dma_alloc_writecombine directly?

Thanks!
Jun

      reply	other threads:[~2010-11-16  1:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTikJNdcnRbNwv4j8zfv4TfSqOgB2K=UD4UFfL=q4@mail.gmail.com>
2010-11-02  7:55 ` V4L2 and framebuffer for the same controller Guennadi Liakhovetski
2010-11-08  5:43   ` Jun Nie
2010-11-15  2:45     ` Jun Nie
2010-11-15  7:23       ` Guennadi Liakhovetski
2010-11-15  8:18         ` Jun Nie
2010-11-15  8:28           ` Guennadi Liakhovetski
2010-11-16  1:28             ` Jun Nie [this message]

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=AANLkTinksLXNiDWcSk_vSF5nmC-SZuWAOUe4oum5aGJz@mail.gmail.com \
    --to=niej0001@gmail.com \
    --cc=g.liakhovetski@gmx.de \
    --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;
as well as URLs for NNTP newsgroup(s).