diff options
author | Rolf Eike Beer <eike-kernel@sf-tec.de> | 2011-06-15 05:27:02 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-07-25 07:02:26 -0400 |
commit | 04fee895ef98ffbb91a941b53a92d6949bb6d1c4 (patch) | |
tree | 7f146f266d74d4a788309bc141c99282d68bd1c2 /Documentation/fb | |
parent | ee2762916f5594e60d8789593f149ed83b560cf7 (diff) |
DRM: clean up and document parsing of video= parameter
The video= parameter of the DRM drivers supports some additional flags that
the normal fb drivers do not have. They also allow to limit these flags to
specific outputs. Both things were previously undocumented.
Also the parsing of the line had some oddities:
-A lot of misplaced options were silently ignored or partly rejected instead
of stopping the parsing immediately
-The 'R' option is documented to follow the 'M' option if specified. It is not
documented that 'M' is needed to specify 'R' (also this is the case for normal
fb drivers). In fact the code is correct for normal fb drivers but wrong for
DRM ones.
The old code allowed 'R' only _before_ 'M' (since it parses backwards) and only
if 'M' is given at all which is not needed for the DRM drivers.
-the margins option ('m') was parsed but later ignored even if the later
functions support it.
-specifying multiple enable options at the same time did not lead to an error.
-specifying something bogus for horizontal resolution (i.e. other things as
digits) did not lead to an error but an invalid resolution was used.
If any errors are encountered the position of the faulting string is now
printed to the user and the complete mode is ignored. This gives much
more consistent error behaviour.
I also removed some useless assignments and changed the local flag variables
to be bool.
Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'Documentation/fb')
-rw-r--r-- | Documentation/fb/modedb.txt | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/Documentation/fb/modedb.txt b/Documentation/fb/modedb.txt index ec4dee75a354..16aa08453911 100644 --- a/Documentation/fb/modedb.txt +++ b/Documentation/fb/modedb.txt | |||
@@ -20,7 +20,7 @@ in a video= option, fbmem considers that to be a global video mode option. | |||
20 | 20 | ||
21 | Valid mode specifiers (mode_option argument): | 21 | Valid mode specifiers (mode_option argument): |
22 | 22 | ||
23 | <xres>x<yres>[M][R][-<bpp>][@<refresh>][i][m] | 23 | <xres>x<yres>[M][R][-<bpp>][@<refresh>][i][m][eDd] |
24 | <name>[-<bpp>][@<refresh>] | 24 | <name>[-<bpp>][@<refresh>] |
25 | 25 | ||
26 | with <xres>, <yres>, <bpp> and <refresh> decimal numbers and <name> a string. | 26 | with <xres>, <yres>, <bpp> and <refresh> decimal numbers and <name> a string. |
@@ -36,6 +36,21 @@ pixels and 1.8% of yres). | |||
36 | 36 | ||
37 | Sample usage: 1024x768M@60m - CVT timing with margins | 37 | Sample usage: 1024x768M@60m - CVT timing with margins |
38 | 38 | ||
39 | DRM drivers also add options to enable or disable outputs: | ||
40 | |||
41 | 'e' will force the display to be enabled, i.e. it will override the detection | ||
42 | if a display is connected. 'D' will force the display to be enabled and use | ||
43 | digital output. This is useful for outputs that have both analog and digital | ||
44 | signals (e.g. HDMI and DVI-I). For other outputs it behaves like 'e'. If 'd' | ||
45 | is specified the output is disabled. | ||
46 | |||
47 | You can additionally specify which output the options matches to. | ||
48 | To force the VGA output to be enabled and drive a specific mode say: | ||
49 | video=VGA-1:1280x1024@60me | ||
50 | |||
51 | Specifying the option multiple times for different ports is possible, e.g.: | ||
52 | video=LVDS-1:d video=HDMI-1:D | ||
53 | |||
39 | ***** oOo ***** oOo ***** oOo ***** oOo ***** oOo ***** oOo ***** oOo ***** | 54 | ***** oOo ***** oOo ***** oOo ***** oOo ***** oOo ***** oOo ***** oOo ***** |
40 | 55 | ||
41 | What is the VESA(TM) Coordinated Video Timings (CVT)? | 56 | What is the VESA(TM) Coordinated Video Timings (CVT)? |
@@ -132,5 +147,5 @@ There may be more modes. | |||
132 | tridentfb - Trident (Cyber)blade chipset frame buffer | 147 | tridentfb - Trident (Cyber)blade chipset frame buffer |
133 | vt8623fb - VIA 8623 frame buffer | 148 | vt8623fb - VIA 8623 frame buffer |
134 | 149 | ||
135 | BTW, only a few drivers use this at the moment. Others are to follow | 150 | BTW, only a few fb drivers use this at the moment. Others are to follow |
136 | (feel free to send patches). | 151 | (feel free to send patches). The DRM drivers also support this. |