aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_legacy_encoders.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_legacy_encoders.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_legacy_encoders.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c
index c41ab0966f86..2c2f42de1d4c 100644
--- a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c
+++ b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c
@@ -1265,13 +1265,17 @@ radeon_add_legacy_encoder(struct drm_device *dev, uint32_t encoder_id, uint32_t
1265 case ENCODER_OBJECT_ID_INTERNAL_DAC1: 1265 case ENCODER_OBJECT_ID_INTERNAL_DAC1:
1266 drm_encoder_init(dev, encoder, &radeon_legacy_primary_dac_enc_funcs, DRM_MODE_ENCODER_DAC); 1266 drm_encoder_init(dev, encoder, &radeon_legacy_primary_dac_enc_funcs, DRM_MODE_ENCODER_DAC);
1267 drm_encoder_helper_add(encoder, &radeon_legacy_primary_dac_helper_funcs); 1267 drm_encoder_helper_add(encoder, &radeon_legacy_primary_dac_helper_funcs);
1268 if (!rdev->is_atom_bios) 1268 if (rdev->is_atom_bios)
1269 radeon_encoder->enc_priv = radeon_atombios_get_primary_dac_info(radeon_encoder);
1270 else
1269 radeon_encoder->enc_priv = radeon_combios_get_primary_dac_info(radeon_encoder); 1271 radeon_encoder->enc_priv = radeon_combios_get_primary_dac_info(radeon_encoder);
1270 break; 1272 break;
1271 case ENCODER_OBJECT_ID_INTERNAL_DAC2: 1273 case ENCODER_OBJECT_ID_INTERNAL_DAC2:
1272 drm_encoder_init(dev, encoder, &radeon_legacy_tv_dac_enc_funcs, DRM_MODE_ENCODER_TVDAC); 1274 drm_encoder_init(dev, encoder, &radeon_legacy_tv_dac_enc_funcs, DRM_MODE_ENCODER_TVDAC);
1273 drm_encoder_helper_add(encoder, &radeon_legacy_tv_dac_helper_funcs); 1275 drm_encoder_helper_add(encoder, &radeon_legacy_tv_dac_helper_funcs);
1274 if (!rdev->is_atom_bios) 1276 if (rdev->is_atom_bios)
1277 radeon_encoder->enc_priv = radeon_atombios_get_tv_dac_info(radeon_encoder);
1278 else
1275 radeon_encoder->enc_priv = radeon_combios_get_tv_dac_info(radeon_encoder); 1279 radeon_encoder->enc_priv = radeon_combios_get_tv_dac_info(radeon_encoder);
1276 break; 1280 break;
1277 case ENCODER_OBJECT_ID_INTERNAL_DVO1: 1281 case ENCODER_OBJECT_ID_INTERNAL_DVO1: