linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.17-rc6-mm2] fbdev: tag by scantype in sysfs
@ 2006-06-20  7:57 Daniel THOMPSON
  2006-06-20  8:42 ` Antonino A. Daplas
  0 siblings, 1 reply; 9+ messages in thread
From: Daniel THOMPSON @ 2006-06-20  7:57 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: adaplas

[-- 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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-06-23 20:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-20  7:57 [PATCH 2.6.17-rc6-mm2] fbdev: tag by scantype in sysfs Daniel THOMPSON
2006-06-20  8:42 ` 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

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).