Skip to contentSkip to conversation

Enumerate only the available timings

PATCH New [email protected] 1 participant 1 message May 30, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Enumerate only the available timings

From: Martin Tůma <[email protected]>

Enumerate only the available (as given by the sysfs setup - our "EDID replacement") timings, not all theoretically possible. This is the video outputs part of the previous inputs patch that somehow got "lost in translation".

---
 drivers/media/pci/mgb4/mgb4_vout.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/media/pci/mgb4/mgb4_vout.c +8 -1
index 14c5725bd4d8..c179c425e167 100644
@@ -492,7 +492,14 @@ static int vidioc_s_dv_timings(struct file *file, void *fh,
 static int vidioc_enum_dv_timings(struct file *file, void *fh,
 				  struct v4l2_enum_dv_timings *timings)
 {
-	return v4l2_enum_dv_timings_cap(timings, &video_timings_cap, NULL, NULL);
+	struct mgb4_vout_dev *voutdev = video_drvdata(file);
+
+	if (timings->index != 0)
+		return -EINVAL;
+
+	get_timings(voutdev, &timings->timings);
+
+	return 0;
 }
 
 static int vidioc_dv_timings_cap(struct file *file, void *fh,

base-commit: 5e1ff2314797bf53636468a97719a8222deca9ae

Signature · 1 line
2.48.1