From: Tomi Valkeinen <tomi.valkeinen@nokia.com>
To: ext Chethan Pandarinath <chethan.pandarinath@gmail.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: Fwd: possible errors in linux omap display headers - who would be a good person to contact?
Date: Tue, 14 Dec 2010 13:29:46 +0200 [thread overview]
Message-ID: <1292326186.6893.94.camel@tubuntu> (raw)
In-Reply-To: <AANLkTi=Ltd28K6Ch2xWE1NnWKcrqOwdiurgZZGjUth7S@mail.gmail.com>
Hi,
On Mon, 2010-12-13 at 15:26 -0500, ext Chethan Pandarinath wrote:
> Hi Tomi,
>
>
> I sent the below email to the angstrom linux development listserv.
> Based on the Maintainers list from git.kernel.org, you seem like the
> right person to contact about this. Would you be able to discuss this
> with me?
>
>
> Thanks.
> Chethan
>
> ---------- Forwarded message ----------
> From: Chethan Pandarinath <chethan.pandarinath@gmail.com>
> Date: Mon, Dec 13, 2010 at 2:34 PM
> Subject: possible errors in linux omap display headers - who would be
> a good person to contact?
> To: angstrom-distro-devel <angstrom-distro-devel@linuxtogo.org>
>
>
> Hi everybody, this may not be the right place to ask this question,
> but I don't really know who to address it to, so maybe someone here
> can point me in the right direction.
>
>
> I have been working on setting up a video framebuffer and writing to
> it on an OMAP 3530 device (TI beagleboard). It appears that the
> definitions in drivers/video/omap/omapfb.h are incorrect (possibly out
> of date?), which caused a lot of confusion while trying to set up my
> framebuffer.
>
>
> Specifically, I'm trying to set the properties of my framebuffer,
> using the ioctl command, FBIOPUT_VSCREENINFO, and a fb_var_screeninfo
> struct.
>
>
> The fb_var_screeninfo struct has a parameter nonstd that sets the
> color properties of the buffer (e.g. RGB 565, RGB 24U, YUV 422, etc).
>
>
> The acceptable values for nonstd are defined in the omapfb.h file, but
> they appear to be incorrect - at least they don't seem to set the
> parameters of the buffer the way one would expect. For example,
> using OMAPFB_COLOR_RGB565 appears to give me a buffer with parameters
> that look like OMAPFB_COLOR_RGB24U.
nonstd field is only used for OMAPFB_COLOR_YUV422 and
OMAPFB_COLOR_YUY422. For other modes leave it to zero.
If you want to use YUV modes, set the nonstd to the yuv mode, and
bits_per_pixel to 16.
For other modes, set bits_per_pixel and red/green/blue/transp fields.
You can look at drivers/video/omap2/omapfb/omapfb-main.c
omapfb_colormodes[] array for examples how the driver parses the modes.
Tomi
parent reply other threads:[~2010-12-14 11:29 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <AANLkTi=Ltd28K6Ch2xWE1NnWKcrqOwdiurgZZGjUth7S@mail.gmail.com>]
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=1292326186.6893.94.camel@tubuntu \
--to=tomi.valkeinen@nokia.com \
--cc=chethan.pandarinath@gmail.com \
--cc=linux-omap@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