diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2007-04-18 11:47:21 +0100 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2007-04-18 11:47:21 +0100 |
commit | ea8bcb466bca82081816ca3d83a420f09a62870c (patch) | |
tree | efab6aa8464c3de899f4e771a51c679026bcca62 /linux-core | |
parent | dc03e07f236ea5716d271155dcbbc54a218732c6 (diff) |
Check status after SDVO command for sdvo_set_control_bus_switch
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/intel_sdvo.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/linux-core/intel_sdvo.c b/linux-core/intel_sdvo.c index edc27016..e7618e11 100644 --- a/linux-core/intel_sdvo.c +++ b/linux-core/intel_sdvo.c @@ -298,9 +298,14 @@ int intel_sdvo_get_pixel_multiplier(struct drm_display_mode *mode) return 4; } -static void intel_sdvo_set_control_bus_switch(struct drm_output *output, u8 target) +static bool intel_sdvo_set_control_bus_switch(struct drm_output *output, u8 target) { + u8 status; + intel_sdvo_write_cmd(output, SDVO_CMD_SET_CONTROL_BUS_SWITCH, &target, 1); + status = intel_sdvo_read_response(output, NULL, 0); + + return (status == SDVO_CMD_STATUS_SUCCESS); } static bool intel_sdvo_set_target_input(struct drm_output *output, bool target_0, bool target_1) |