All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: DSS2 questions
Date: Thu, 06 Aug 2009 08:24:39 -0600	[thread overview]
Message-ID: <4A7AE7A7.1070702@mlbassoc.com> (raw)
In-Reply-To: <4A7AE20C.1050104@nokia.com>

Tomi Valkeinen wrote:
> Hi,
> 
> ext Gary Thomas wrote:
>>>> Second question; I've set up my system much the same as the
>>>> boards you are working on, with an LCD and TV outputs.  I'm
>>>> a bit confused as to how I configure the overlays and managers
>>>> to be able to send YUV data directly through to either the
>>>> LCD or TV.  Can you explain this?
>>> You need to change the framebuffer to YUV color mode. And YUV only works
>>> on video overlays, so you need to setup video overlay to be shown on the
>>> LCD or TV.
>>>
>>> If you have fb1 as a video overlay, you can do for example:
>>>
>>> fbset -fb /dev/fb1 -nonstd 1
>>>
>>> which sets fb1 to YUV422 mode. 8 would be YUY422. Those numbers come
>>> from omapfb.h, enum omapfb_color_format.
>>>
>>> Check also Documentation/arm/OMAP/DSS, if you haven't already done so.
>>>
>>
>> Still a bit fuzzy on this.  I'm sure that document helps, if
>> one already knows how all the overlays and managers and ...
>> are wired together.  I'm new at this game :-)
>>
>> I tried to set my TV to be video/uyv422 via the attached script.
>> I was trying to leave fb0 alone (running on the LCD) and use fb1
>> to display the YUV422 data. Alas, 'fbset' gives me "Bad video mode"?
>> Any pointers?
>>
> 
> You need to allocate memory for the framebuffer.
> 
> Try adding for example this:
> 
> mem=$((w*h*4))
> echo $mem > $fb1/size
> 
> Also, you are trying to connect video2 overlay to fb1, but by default
> DSS connects video2 to fb2. So if you really want to do that, you first
> need to detach video1 from fb1, video2 from fb2, and then attach video2
> to fb1. I suggest you use fb2 which is already attached to video2.

That helped, thanks.  'fbset' no longer complains and I now have
a lovely green screen on my TV.

Now, to figure out how to send some YUV422 data to it.  I have Vaibhav's
V4L2 support in my tree - will this work with your DSS2 devices?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

      reply	other threads:[~2009-08-06 14:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-06 12:07 DSS2 questions Gary Thomas
2009-08-06 13:16 ` Tomi Valkeinen
2009-08-06 13:42   ` Gary Thomas
2009-08-06 14:00     ` Tomi Valkeinen
2009-08-06 14:24       ` Gary Thomas [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=4A7AE7A7.1070702@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=tomi.valkeinen@nokia.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.