Commit e642c6f1 authored by Zhenyu Wang's avatar Zhenyu Wang Committed by Eric Anholt

drm/i915: Fix SDVO CREATE_PREFERRED_INPUT_TIMING command

This brings fix commit acde0ef683 from 2D driver.
Signed-off-by: default avatarZhenyu Wang <zhenyu.z.wang@intel.com>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent 171a9e96
...@@ -589,9 +589,12 @@ intel_sdvo_create_preferred_input_timing(struct intel_output *output, ...@@ -589,9 +589,12 @@ intel_sdvo_create_preferred_input_timing(struct intel_output *output,
struct intel_sdvo_preferred_input_timing_args args; struct intel_sdvo_preferred_input_timing_args args;
uint8_t status; uint8_t status;
memset(&args, 0, sizeof(args));
args.clock = clock; args.clock = clock;
args.width = width; args.width = width;
args.height = height; args.height = height;
args.interlace = 0;
args.scaled = 0;
intel_sdvo_write_cmd(output, SDVO_CMD_CREATE_PREFERRED_INPUT_TIMING, intel_sdvo_write_cmd(output, SDVO_CMD_CREATE_PREFERRED_INPUT_TIMING,
&args, sizeof(args)); &args, sizeof(args));
status = intel_sdvo_read_response(output, NULL, 0); status = intel_sdvo_read_response(output, NULL, 0);
......
...@@ -100,6 +100,9 @@ struct intel_sdvo_preferred_input_timing_args { ...@@ -100,6 +100,9 @@ struct intel_sdvo_preferred_input_timing_args {
u16 clock; u16 clock;
u16 width; u16 width;
u16 height; u16 height;
u8 interlace:1;
u8 scaled:1;
u8 pad:6;
} __attribute__((packed)); } __attribute__((packed));
/* I2C registers for SDVO */ /* I2C registers for SDVO */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment