From: Sebastien Bourdeauducq Date: Mon, 11 Nov 2013 17:56:13 +0000 (+0100) Subject: videomixer: set established timing bits in EDID X-Git-Tag: 24jan2021_ls180~2813 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=132b6ce87d888c433a26efd228118958dc25c9c3;p=litex.git videomixer: set established timing bits in EDID --- diff --git a/software/videomixer/edid.c b/software/videomixer/edid.c index 4734189c..10f9931e 100644 --- a/software/videomixer/edid.c +++ b/software/videomixer/edid.c @@ -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); diff --git a/software/videomixer/edid.h b/software/videomixer/edid.h index 34b1d624..975d9c0a 100644 --- a/software/videomixer/edid.h +++ b/software/videomixer/edid.h @@ -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); diff --git a/software/videomixer/processor.c b/software/videomixer/processor.c index bb8c6f4d..faf6b8cc 100644 --- a/software/videomixer/processor.c +++ b/software/videomixer/processor.c @@ -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,