diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_sdvo.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_sdvo.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index 393b7a502291..8aa7be588f7f 100644 --- a/drivers/gpu/drm/i915/intel_sdvo.c +++ b/drivers/gpu/drm/i915/intel_sdvo.c | |||
@@ -1316,6 +1316,7 @@ static void intel_sdvo_get_config(struct intel_encoder *encoder, | |||
1316 | struct intel_sdvo *intel_sdvo = to_sdvo(encoder); | 1316 | struct intel_sdvo *intel_sdvo = to_sdvo(encoder); |
1317 | struct intel_sdvo_dtd dtd; | 1317 | struct intel_sdvo_dtd dtd; |
1318 | int encoder_pixel_multiplier = 0; | 1318 | int encoder_pixel_multiplier = 0; |
1319 | int dotclock; | ||
1319 | u32 flags = 0, sdvox; | 1320 | u32 flags = 0, sdvox; |
1320 | u8 val; | 1321 | u8 val; |
1321 | bool ret; | 1322 | bool ret; |
@@ -1354,6 +1355,13 @@ static void intel_sdvo_get_config(struct intel_encoder *encoder, | |||
1354 | >> SDVO_PORT_MULTIPLY_SHIFT) + 1; | 1355 | >> SDVO_PORT_MULTIPLY_SHIFT) + 1; |
1355 | } | 1356 | } |
1356 | 1357 | ||
1358 | dotclock = pipe_config->port_clock / pipe_config->pixel_multiplier; | ||
1359 | |||
1360 | if (HAS_PCH_SPLIT(dev)) | ||
1361 | ironlake_check_encoder_dotclock(pipe_config, dotclock); | ||
1362 | |||
1363 | pipe_config->adjusted_mode.clock = dotclock; | ||
1364 | |||
1357 | /* Cross check the port pixel multiplier with the sdvo encoder state. */ | 1365 | /* Cross check the port pixel multiplier with the sdvo encoder state. */ |
1358 | if (intel_sdvo_get_value(intel_sdvo, SDVO_CMD_GET_CLOCK_RATE_MULT, | 1366 | if (intel_sdvo_get_value(intel_sdvo, SDVO_CMD_GET_CLOCK_RATE_MULT, |
1359 | &val, 1)) { | 1367 | &val, 1)) { |