From 132b6ce87d888c433a26efd228118958dc25c9c3 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 11 Nov 2013 18:56:13 +0100 Subject: [PATCH] videomixer: set established timing bits in EDID --- software/videomixer/edid.c | 4 ++-- software/videomixer/edid.h | 2 ++ software/videomixer/processor.c | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) 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, -- 2.30.2