summaryrefslogtreecommitdiff
path: root/drivers/media/pci/mgb4/mgb4_core.c
diff options
context:
space:
mode:
authorMartin Tůma <martin.tuma@digiteqautomotive.com>2024-08-05 18:40:52 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2024-08-14 11:05:31 +0300
commit1724dcc9dd3cc1b58b9954ccafea46921546b4f0 (patch)
tree711f2fbdcaf77881656a1fb92a5b7864e5f9cbfb /drivers/media/pci/mgb4/mgb4_core.c
parenta5972ea0fb8c862d887b91a146908a17b56ee5a2 (diff)
downloadlinux-1724dcc9dd3cc1b58b9954ccafea46921546b4f0.tar.xz
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>
Diffstat (limited to 'drivers/media/pci/mgb4/mgb4_core.c')
-rw-r--r--drivers/media/pci/mgb4/mgb4_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/mgb4/mgb4_core.c b/drivers/media/pci/mgb4/mgb4_core.c
index ab4f07e2e560..2819bbdab484 100644
--- a/drivers/media/pci/mgb4/mgb4_core.c
+++ b/drivers/media/pci/mgb4/mgb4_core.c
@@ -302,7 +302,7 @@ static int init_i2c(struct mgb4_dev *mgbdev)
/* create dummy clock required by the xiic-i2c adapter */
snprintf(clk_name, sizeof(clk_name), "xiic-i2c.%d", id);
mgbdev->i2c_clk = clk_hw_register_fixed_rate(NULL, clk_name, NULL,
- 0, 125000000);
+ 0, MGB4_HW_FREQ);
if (IS_ERR(mgbdev->i2c_clk)) {
dev_err(dev, "failed to register I2C clock\n");
return PTR_ERR(mgbdev->i2c_clk);