mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 10:50:54 +07:00
drm/radeon/kms: issue blank/unblank commands for ext encoders
Required for DPMS on some systems. Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
591a10e16c
commit
d6c669528a
@ -1521,26 +1521,29 @@ radeon_atom_encoder_dpms(struct drm_encoder *encoder, int mode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ext_encoder) {
|
if (ext_encoder) {
|
||||||
int action;
|
|
||||||
|
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case DRM_MODE_DPMS_ON:
|
case DRM_MODE_DPMS_ON:
|
||||||
default:
|
default:
|
||||||
if (ASIC_IS_DCE41(rdev))
|
if (ASIC_IS_DCE41(rdev)) {
|
||||||
action = EXTERNAL_ENCODER_ACTION_V3_ENABLE_OUTPUT;
|
atombios_external_encoder_setup(encoder, ext_encoder,
|
||||||
else
|
EXTERNAL_ENCODER_ACTION_V3_ENABLE_OUTPUT);
|
||||||
action = ATOM_ENABLE;
|
atombios_external_encoder_setup(encoder, ext_encoder,
|
||||||
|
EXTERNAL_ENCODER_ACTION_V3_ENCODER_BLANKING_OFF);
|
||||||
|
} else
|
||||||
|
atombios_external_encoder_setup(encoder, ext_encoder, ATOM_ENABLE);
|
||||||
break;
|
break;
|
||||||
case DRM_MODE_DPMS_STANDBY:
|
case DRM_MODE_DPMS_STANDBY:
|
||||||
case DRM_MODE_DPMS_SUSPEND:
|
case DRM_MODE_DPMS_SUSPEND:
|
||||||
case DRM_MODE_DPMS_OFF:
|
case DRM_MODE_DPMS_OFF:
|
||||||
if (ASIC_IS_DCE41(rdev))
|
if (ASIC_IS_DCE41(rdev)) {
|
||||||
action = EXTERNAL_ENCODER_ACTION_V3_DISABLE_OUTPUT;
|
atombios_external_encoder_setup(encoder, ext_encoder,
|
||||||
else
|
EXTERNAL_ENCODER_ACTION_V3_ENCODER_BLANKING);
|
||||||
action = ATOM_DISABLE;
|
atombios_external_encoder_setup(encoder, ext_encoder,
|
||||||
|
EXTERNAL_ENCODER_ACTION_V3_DISABLE_OUTPUT);
|
||||||
|
} else
|
||||||
|
atombios_external_encoder_setup(encoder, ext_encoder, ATOM_DISABLE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
atombios_external_encoder_setup(encoder, ext_encoder, action);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
radeon_atombios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false);
|
radeon_atombios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false);
|
||||||
|
Loading…
Reference in New Issue
Block a user