Enumerate only the available timings
Subsystems (2)
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".
Signed-off-by Martin Tůma <[email protected]>
--- drivers/media/pci/mgb4/mgb4_vout.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/media/pci/mgb4/mgb4_vout.c +8 -1
@@ -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