提交 8a1837ce 编写于 作者: Z Zhao Yakui 提交者: Eric Anholt

drm/i915: Fix the incorrect argument for SDVO SET_TV_format command

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=23916Signed-off-by: NZhao Yakui <yakui.zhao@intel.com>
Tested-by: NArnold <arnold.erbsloeh@web.de>
Tested-by: NBazin <bazin.cz@gmail.com>
Tested-by: NNigel <nigel_tuck@eircom.net>
Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com>
上级 461ed3ca
...@@ -1032,7 +1032,7 @@ static void intel_sdvo_set_tv_format(struct intel_encoder *intel_encoder) ...@@ -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) ? memcpy(&format, &format_map, sizeof(format_map) > sizeof(format) ?
sizeof(format) : sizeof(format_map)); 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)); sizeof(format));
status = intel_sdvo_read_response(intel_encoder, NULL, 0); status = intel_sdvo_read_response(intel_encoder, NULL, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册