drm/i915: Fix the incorrect argument for SDVO SET_TV_format command
authorZhao Yakui <yakui.zhao@intel.com>
Tue, 30 Mar 2010 07:15:02 +0000 (15:15 +0800)
committerEric Anholt <eric@anholt.net>
Mon, 12 Apr 2010 16:25:33 +0000 (09:25 -0700)
Otherwise it will cause that S-video output becomes black/white when
switching to other TV format.

http://bugs.freedesktop.org/show_bug.cgi?id=23916

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Tested-by: Arnold <arnold.erbsloeh@web.de>
Tested-by: Bazin <bazin.cz@gmail.com>
Tested-by: Nigel <nigel_tuck@eircom.net>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/intel_sdvo.c

index ea9cf4c689f6aff124972275682165e17537739a..df9f997fcf61a34e4e6f0b06f3fa9106039a515e 100644 (file)
@@ -1032,7 +1032,7 @@ static void intel_sdvo_set_tv_format(struct intel_encoder *intel_encoder)
        memcpy(&format, &format_map, sizeof(format_map) > sizeof(format) ?
                        sizeof(format) : sizeof(format_map));
 
-       intel_sdvo_write_cmd(intel_encoder, SDVO_CMD_SET_TV_FORMAT, &format_map,
+       intel_sdvo_write_cmd(intel_encoder, SDVO_CMD_SET_TV_FORMAT, &format,
                             sizeof(format));
 
        status = intel_sdvo_read_response(intel_encoder, NULL, 0);