media: mgb4: Add support for V4L2_CAP_TIMEPERFRAME
authorMartin Tůma <martin.tuma@digiteqautomotive.com>
Mon, 5 Aug 2024 15:40:52 +0000 (17:40 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 14 Aug 2024 08:05:31 +0000 (10:05 +0200)
commit1724dcc9dd3cc1b58b9954ccafea46921546b4f0
tree711f2fbdcaf77881656a1fb92a5b7864e5f9cbfb
parenta5972ea0fb8c862d887b91a146908a17b56ee5a2
media: mgb4: Add support for V4L2_CAP_TIMEPERFRAME

Recent mgb4 firmwares have support for setting a variable framerate
independent of the signal framerate. Add/fix (the mgb4 driver already did
promote V4L2_CAP_TIMEPERFRAME, but it didn't work) support for
V4L2_CAP_TIMEPERFRAME to the driver to enable this feature.

Additionally add support for the DV timings API (VIDIOC_G_DV_TIMINGS,
VIDIOC_ENUM_DV_TIMINGS, ...) for the outputs that was missing. The timings
info is required/used for implementing the V4L2_CAP_TIMEPERFRAME
functionality.

Signed-off-by: Martin Tůma <martin.tuma@digiteqautomotive.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/pci/mgb4/mgb4_core.c
drivers/media/pci/mgb4/mgb4_core.h
drivers/media/pci/mgb4/mgb4_io.h
drivers/media/pci/mgb4/mgb4_sysfs_out.c
drivers/media/pci/mgb4/mgb4_vin.c
drivers/media/pci/mgb4/mgb4_vin.h
drivers/media/pci/mgb4/mgb4_vout.c
drivers/media/pci/mgb4/mgb4_vout.h