]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: v4l2-dv-timings: add v4l2_num_edid_blocks() helper
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 27 Jan 2025 11:03:12 +0000 (12:03 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 18 Feb 2025 07:11:37 +0000 (08:11 +0100)
commite31668e7b6ef163916e332e319320a279b8f0085
tree86d1f6c45899893dde6735ea735ed2222cac2a21
parent91c4ee4a7628fcfc16bdb936db0433ea54cd1a89
media: v4l2-dv-timings: add v4l2_num_edid_blocks() helper

This new function determines how many blocks the EDID has.
Traditionally the number of extension blocks is read from
the EDID at offset 126, but this can be overridden by the
HDMI Forum EDID Extension Override Data Block. So check
that as well in this helper.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/v4l2-core/v4l2-dv-timings.c
include/media/v4l2-dv-timings.h