Lines 2862-2867
static int dce_v10_0_hw_fini(void *handle)
Link Here
|
2862 |
|
2862 |
|
2863 |
static int dce_v10_0_suspend(void *handle) |
2863 |
static int dce_v10_0_suspend(void *handle) |
2864 |
{ |
2864 |
{ |
|
|
2865 |
struct amdgpu_device *adev = (struct amdgpu_device *)handle; |
2866 |
|
2867 |
adev->mode_info.bl_level = |
2868 |
amdgpu_atombios_encoder_get_backlight_level_from_reg(adev); |
2869 |
|
2865 |
return dce_v10_0_hw_fini(handle); |
2870 |
return dce_v10_0_hw_fini(handle); |
2866 |
} |
2871 |
} |
2867 |
|
2872 |
|
Lines 2870-2875
static int dce_v10_0_resume(void *handle)
Link Here
|
2870 |
struct amdgpu_device *adev = (struct amdgpu_device *)handle; |
2875 |
struct amdgpu_device *adev = (struct amdgpu_device *)handle; |
2871 |
int ret; |
2876 |
int ret; |
2872 |
|
2877 |
|
|
|
2878 |
amdgpu_atombios_encoder_set_backlight_level_to_reg(adev, |
2879 |
adev->mode_info.bl_level); |
2880 |
|
2873 |
ret = dce_v10_0_hw_init(handle); |
2881 |
ret = dce_v10_0_hw_init(handle); |
2874 |
|
2882 |
|
2875 |
/* turn on the BL */ |
2883 |
/* turn on the BL */ |