summaryrefslogtreecommitdiff
path: root/src/i830_lvds.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@guitar.keithp.com>2007-03-23 01:08:08 -0700
committerKeith Packard <keithp@guitar.keithp.com>2007-03-23 01:08:08 -0700
commitf48dc501fbf74e0ac348f0b77750016597849ef4 (patch)
tree7ef5cc2ec33dbaea2374b1cb7af3d34f5d36c89c /src/i830_lvds.c
parent20b26854abdacb6dc45cba2d81d515b2e47e25f1 (diff)
TV output properties: TV_FORMAT, LEFT, TOP, RIGHT, BOTTOM.
Remove TV format from mode name, instead use an explicit output property and split the input resolution from the tv format. Add properties to set the blank area on all four sides of the image.
Diffstat (limited to 'src/i830_lvds.c')
-rw-r--r--src/i830_lvds.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/i830_lvds.c b/src/i830_lvds.c
index 6f7750ad..8248510b 100644
--- a/src/i830_lvds.c
+++ b/src/i830_lvds.c
@@ -335,7 +335,7 @@ i830_lvds_create_resources(xf86OutputPtr output)
data = pI830->backlight_duty_cycle;
err = RRChangeOutputProperty(output->randr_output, backlight_atom,
XA_INTEGER, 32, PropModeReplace, 4, &data,
- FALSE);
+ FALSE, TRUE);
if (err != 0) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"RRChangeOutputProperty error, %d\n", err);
@@ -356,7 +356,7 @@ i830_lvds_set_property(xf86OutputPtr output, Atom property,
INT32 val;
if (value->type != XA_INTEGER || value->format != 32 ||
- value->size != 1)
+ value->size != 4)
{
return FALSE;
}
@@ -365,8 +365,11 @@ i830_lvds_set_property(xf86OutputPtr output, Atom property,
if (val < 0 || val > i830_lvds_get_max_backlight(pScrn))
return FALSE;
- i830_lvds_set_backlight(pScrn, val);
- pI830->backlight_duty_cycle = val;
+ if (val != pI830->backlight_duty_cycle)
+ {
+ i830_lvds_set_backlight(pScrn, val);
+ pI830->backlight_duty_cycle = val;
+ }
return TRUE;
}