videomixer: set established timing bits in EDID
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Mon, 11 Nov 2013 17:56:13 +0000 (18:56 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Mon, 11 Nov 2013 17:56:13 +0000 (18:56 +0100)
software/videomixer/edid.c
software/videomixer/edid.h
software/videomixer/processor.c

index 4734189c5d629228246e0239aeadbaa2e3a5b039..10f9931eea3422572575e00fa702fe719a4f9d9b 100644 (file)
@@ -232,8 +232,8 @@ void generate_edid(void *out,
        e->cc_wx_h = 0;
        e->cc_wy_h = 0;
 
-       e->est_timings_1 = 0;
-       e->est_timings_2 = 0;
+       e->est_timings_1 = timing->established_timing >> 8;
+       e->est_timings_2 = timing->established_timing & 0xff;
        e->rsv_timings = 0;
        memset(e->timings_std, 0x01, 16);
 
index 34b1d6241106e2f2264a7e0b54e66ae2e29c1473..975d9c0ad6b4295b07f26389046df4a3aa78a10f 100644 (file)
@@ -15,6 +15,8 @@ struct video_timing {
        unsigned int v_blanking;
        unsigned int v_sync_offset;
        unsigned int v_sync_width;
+
+       unsigned int established_timing;
 };
 
 int validate_edid(const void *buf);
index bb8c6f4daa486236a45d31481b4283558f059d57..faf6b8cc374eafc1e82e0253de0737bd0b1ecd16 100644 (file)
@@ -20,7 +20,9 @@ static const struct video_timing video_modes[PROCESSOR_MODE_COUNT] = {
                .v_active = 768,
                .v_blanking = 38,
                .v_sync_offset = 3,
-               .v_sync_width = 6
+               .v_sync_width = 6,
+
+               .established_timing = 0x0008
        }, {
                .pixel_clock = 7425,