radeon_hd: tell ATOMbios that we handle brightness control
In hrev55767, a previous patch added the needed code for Haiku to control the display brightness. However, we didn't tell the video card BIOS about it, and so the card could also control the brightness by itself. This disables BIOS based brightness control and lets Haiku take over cleanly. Change-Id: Ie0e8f7e653c2d4773c463d21246f2ccc6ec8f441 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7116 Reviewed-by: nephele nephele <nep-git@packageloss.eu> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
33365c2a0d
commit
6fe3a560bd
@ -44,8 +44,8 @@ radeon_bios_init_scratch()
|
||||
biosScratch6 = Read32(OUT, RADEON_BIOS_6_SCRATCH);
|
||||
}
|
||||
|
||||
biosScratch2 &= ~ATOM_S2_VRI_BRIGHT_ENABLE;
|
||||
// bios should control backlight
|
||||
biosScratch2 |= ATOM_S2_VRI_BRIGHT_ENABLE;
|
||||
// bios should not control backlight
|
||||
biosScratch6 |= ATOM_S6_ACC_BLOCK_DISPLAY_SWITCH;
|
||||
// bios shouldn't handle mode switching
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user