aboutsummaryrefslogtreecommitdiffstats
path: root/edid-decode.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-07-13 15:10:35 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-07-13 15:10:35 +0200
commit1e148375628be5171f1fce6add2ead64c3e34806 (patch)
tree1162f12930f180675cb6c200d23563cdfe7850f0 /edid-decode.h
parentc07521c152c93cd371367b0024b3b0c81b9ae08b (diff)
edid-decode: cta.preferred_timings wasn't cleared
If the first svd can be the preferred timing, then clear cta.preferred_timings before adding that SVD. It overrides the regular DTD, so any existing preferred timings must be cleared first. Also set first_svd_might_be_preferred to false once this is done to avoid this to be repeated if there are SVDs in multiple CTA extension blocks. And never set first_svd_might_be_preferred if there is a VFPDB. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'edid-decode.h')
-rw-r--r--edid-decode.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/edid-decode.h b/edid-decode.h
index 1ab5e36..998ccab 100644
--- a/edid-decode.h
+++ b/edid-decode.h
@@ -113,7 +113,7 @@ struct edid_state {
// CTA-861 block state
cta.has_vic_1 = cta.first_svd_might_be_preferred =
- cta.has_hdmi = cta.has_vcdb = false;
+ cta.has_hdmi = cta.has_vcdb = cta.has_vfpdb = false;
cta.last_block_was_hdmi_vsdb = cta.have_hf_vsdb = cta.have_hf_scdb = 0;
cta.first_block = 1;
cta.supported_hdmi_vic_codes = cta.supported_hdmi_vic_vsb_codes = 0;
@@ -193,6 +193,7 @@ struct edid_state {
unsigned char byte3;
bool has_hdmi;
bool has_vcdb;
+ bool has_vfpdb;
unsigned short preparsed_phys_addr;
int last_block_was_hdmi_vsdb;
int have_hf_vsdb, have_hf_scdb;

Privacy Policy