]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drm/i915: Fix SDVO CREATE_PREFERRED_INPUT_TIMING command
authorZhenyu Wang <zhenyu.z.wang@intel.com>
Tue, 24 Mar 2009 06:02:42 +0000 (14:02 +0800)
committerEric Anholt <eric@anholt.net>
Wed, 1 Apr 2009 22:22:04 +0000 (15:22 -0700)
This brings fix commit acde0ef683 from 2D driver.

Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_sdvo.c
drivers/gpu/drm/i915/intel_sdvo_regs.h

index 31cd9b835aa41bf944f77953f7b37655d5d28e96..ea311c7241c20ac50dde36330396e7a3e0846a00 100644 (file)
@@ -589,9 +589,12 @@ intel_sdvo_create_preferred_input_timing(struct intel_output *output,
        struct intel_sdvo_preferred_input_timing_args args;
        uint8_t status;
 
+       memset(&args, 0, sizeof(args));
        args.clock = clock;
        args.width = width;
        args.height = height;
+       args.interlace = 0;
+       args.scaled = 0;
        intel_sdvo_write_cmd(output, SDVO_CMD_CREATE_PREFERRED_INPUT_TIMING,
                             &args, sizeof(args));
        status = intel_sdvo_read_response(output, NULL, 0);
index 1117b9c151a671d655779331dea38164f7508dd4..193938b7d7f9ea3cce94188fb733a15990282040 100644 (file)
@@ -100,6 +100,9 @@ struct intel_sdvo_preferred_input_timing_args {
     u16 clock;
     u16 width;
     u16 height;
+    u8 interlace:1;
+    u8 scaled:1;
+    u8 pad:6;
 } __attribute__((packed));
 
 /* I2C registers for SDVO */