media: adv7842: support EDIDs up to 4 blocks
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 6 May 2021 12:06:57 +0000 (14:06 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Jun 2021 11:16:01 +0000 (13:16 +0200)
commitef677df92e450b90688828a5e44b94c8dc156e62
treef65e65bf8ca0dfc3f72704dfd6037aec2fd83984
parentd84b9202d712309840f8b5abee0ed272506563bd
media: adv7842: support EDIDs up to 4 blocks

The adv7842 driver didn't support EDIDs of 3 or 4 blocks, even though the
hardware supports this.

It is a bit more complicated due to the fact that the adv7842 can expose
two EDIDs: one digital, one analog, for DVI-I connectors. In that case the
VGA_EDID_ENABLE bit is set and blocks 0 and 1 of the EDID eeprom are used
for the DVI-D part and block 2 is used for the DVI-A part of the DVI-I
connector.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/adv7842.c