From: Daniel THOMPSON <daniel.thompson@st.com>
To: linux-fbdev-devel@lists.sourceforge.net
Cc: adaplas@pol.net
Subject: [PATCH 2.6.17-rc6-mm2] fbdev: tag by scantype in sysfs
Date: Tue, 20 Jun 2006 08:57:46 +0100 [thread overview]
Message-ID: <4497AA7A.5050507@st.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 341 bytes --]
There has been no further comment since this was posted in early May.
This either means is uncontentious or useless ... I hope the former.
--
Daniel Thompson (STMicroelectronics) <daniel.thompson@st.com>
1000 Aztec West, Almondsbury, Bristol, BS32 4SQ. 01454 462659
If a car is a horseless carriage then is a motorcycle a horseless horse?
[-- Attachment #2: linux-2.6.17-rc6-mm2-fbdev_tag_by_scantype_in_sysfs.patch --]
[-- Type: text/x-patch, Size: 1366 bytes --]
Subject: fbdev: tag by scantype in sysfs
Modify the sysfs description of a video mode such that modes are tagged
with their scan type, (p)rogessive, (i)nterlaced, (d)ouble scan. For example,
U:1920x1080i-50. This is useful to disambiguate some of the 'consumer'
video timings found in CEA-861 (especially those for EDTV).
Signed-off-by: Daniel R Thompson <daniel.thompson@st.com>
Index: linux-2.6.17-rc6-mm2/drivers/video/fbsysfs.c
===================================================================
--- linux-2.6.17-rc6-mm2.orig/drivers/video/fbsysfs.c 2006-03-20 05:53:29.000000000 +0000
+++ linux-2.6.17-rc6-mm2/drivers/video/fbsysfs.c 2006-06-20 08:52:57.000000000 +0100
@@ -95,13 +95,22 @@
const struct fb_videomode *mode)
{
char m = 'U';
+ char v = 'p';
+
if (mode->flag & FB_MODE_IS_DETAILED)
m = 'D';
if (mode->flag & FB_MODE_IS_VESA)
m = 'V';
if (mode->flag & FB_MODE_IS_STANDARD)
m = 'S';
- return snprintf(&buf[offset], PAGE_SIZE - offset, "%c:%dx%d-%d\n", m, mode->xres, mode->yres, mode->refresh);
+
+ if (mode->vmode & FB_VMODE_INTERLACED)
+ v = 'i';
+ if (mode->vmode & FB_VMODE_DOUBLE)
+ v = 'd';
+
+ return snprintf(&buf[offset], PAGE_SIZE - offset, "%c:%dx%d%c-%d\n",
+ m, mode->xres, mode->yres, v, mode->refresh);
}
static ssize_t store_mode(struct class_device *class_device, const char * buf,
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
[-- Attachment #4: Type: text/plain, Size: 182 bytes --]
_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
next reply other threads:[~2006-06-20 7:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-20 7:57 Daniel THOMPSON [this message]
2006-06-20 8:42 ` [PATCH 2.6.17-rc6-mm2] fbdev: tag by scantype in sysfs Antonino A. Daplas
2006-06-20 9:40 ` Daniel THOMPSON
2006-06-20 10:29 ` Antonino A. Daplas
2006-06-23 8:04 ` Daniel THOMPSON
2006-06-23 9:16 ` Geert Uytterhoeven
2006-06-23 9:50 ` Daniel THOMPSON
2006-06-23 12:00 ` Antonino A. Daplas
2006-06-23 20:23 ` Luca
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=4497AA7A.5050507@st.com \
--to=daniel.thompson@st.com \
--cc=adaplas@pol.net \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/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).