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 <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Pascal Abresch
2023-12-11 18:10:14 +00:00
committed by waddlesplash
parent 33365c2a0d
commit 6fe3a560bd
+2 -2
View File
@@ -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