mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 01:20:11 +01:00
SDVO now works
This commit is contained in:
parent
6034c55916
commit
c8ce5cf030
2 changed files with 8 additions and 0 deletions
|
|
@ -930,6 +930,11 @@ void intel_sdvo_set_hotplug(struct drm_output *output, int on)
|
|||
u8 response[2];
|
||||
u8 status;
|
||||
|
||||
DRM_DEBUG("read\n");
|
||||
intel_sdvo_write_cmd(output, SDVO_CMD_GET_ACTIVE_HOT_PLUG, NULL, 0);
|
||||
intel_sdvo_read_response(output, &response, 2);
|
||||
|
||||
DRM_DEBUG("write\n");
|
||||
if (on) {
|
||||
intel_sdvo_write_cmd(output, SDVO_CMD_GET_HOT_PLUG_SUPPORT, NULL, 0);
|
||||
status = intel_sdvo_read_response(output, &response, 2);
|
||||
|
|
|
|||
|
|
@ -409,6 +409,7 @@ static void i915_hotplug_sdvo(struct drm_device *dev, int sdvoB)
|
|||
|
||||
if (status != output_status_connected) {
|
||||
DRM_DEBUG("disconnect or unkown we don't do anything then\n");
|
||||
intel_sdvo_set_hotplug(output, 1);
|
||||
goto unlock;
|
||||
}
|
||||
|
||||
|
|
@ -417,6 +418,8 @@ static void i915_hotplug_sdvo(struct drm_device *dev, int sdvoB)
|
|||
|
||||
i915_hotplug_stage2(dev, output);
|
||||
|
||||
intel_sdvo_set_hotplug(output, 1);
|
||||
|
||||
mutex_unlock(&dev->mode_config.mutex);
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue