search for: nouveau_create_ranged_atom

Displaying 2 results from an estimated 2 matches for "nouveau_create_ranged_atom".

2013 Jun 06
1
[PATCH 1/2] nouveau/mode: split out create_ranged_atom
...------------- 1 file changed, 34 insertions(+), 20 deletions(-) diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 6033a6d..ad7bc1f 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -767,6 +767,33 @@ drmmode_property_ignore(drmModePropertyPtr prop) } static void +nouveau_create_ranged_atom(xf86OutputPtr output, Atom *atom, + const char *name, INT32 min, INT32 max, + uint64_t value, Bool immutable) +{ + int err; + INT32 atom_range[2]; + + atom_range[0] = min; + atom_range[1] = max; + + *atom = MakeAtom(name, strlen(name), TRUE); + err = RRConfigureOutputPrope...
2013 Jun 06
0
[PATCH 2/2] nouveau: add libbacklight and randr property support.
...ype, + mode_output->connector_type_id); + + if (drmmode_output->backlight) { + drmmode_output->backlight_max = backlight_get_max_brightness(drmmode_output->backlight); + drmmode_output->backlight_active_level = backlight_get_brightness(drmmode_output->backlight); + nouveau_create_ranged_atom(output, &backlight_atom, + BACKLIGHT_NAME, 0, drmmode_output->backlight_max, + drmmode_output->backlight_active_level, FALSE); + nouveau_create_ranged_atom(output, &backlight_deprecated_atom, + BACKLIGHT_DEPRECATED_NAME, 0, drmmode_output->backlight_m...