media: adv7604: support EDIDs up to 4 blocks
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 25 Mar 2021 10:39:37 +0000 (11:39 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 6 Apr 2021 17:34:31 +0000 (19:34 +0200)
commitc730ff32b917c814c1d86343328f0518a94114c0
treee65db8015d5a458c02c0d21529057b46543efb75
parent1cf233d89fcd0171d078d2479c0e73013c15c859
media: adv7604: support EDIDs up to 4 blocks

While the adv7604/11/12 hardware supported EDIDs up to 4 blocks, the
driver didn't. This patch adds support for this. It also improves support
for EDIDs that do not have a Source Physical Address: in that case the
spa location is set to the first byte of the second block, and the
'physical address' is just the two bytes at that location. This is per
the suggestion in the adv76xx documentation for such EDIDs.

Tested with an adv7604 and adv7612.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/adv7604.c