]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: pci: mgb4: Fix DV capabilities
authorMartin Tůma <martin.tuma@digiteqautomotive.com>
Wed, 29 Oct 2025 14:12:33 +0000 (15:12 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 3 Nov 2025 14:58:42 +0000 (15:58 +0100)
Use the same value (4096) for the maximum height as used for width.
The HW limits are a 4K video, but the orientation does not matter. Fixes
issues with some portrait oriented Audi displays that exceed the old
height value (2160).

Signed-off-by: Martin Tůma <martin.tuma@digiteqautomotive.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/pci/mgb4/mgb4_vin.c
drivers/media/pci/mgb4/mgb4_vout.c

index 42c327bc50e10af249288d2dbd77efd311abfdbd..4b38076486ffcf1bf0ad2ea9adde4834db91c76f 100644 (file)
@@ -64,10 +64,10 @@ static const struct mgb4_i2c_kv gmsl_i2c[] = {
 static const struct v4l2_dv_timings_cap video_timings_cap = {
        .type = V4L2_DV_BT_656_1120,
        .bt = {
-               .min_width = 320,
+               .min_width = 240,
                .max_width = 4096,
                .min_height = 240,
-               .max_height = 2160,
+               .max_height = 4096,
                .min_pixelclock = 1843200, /* 320 x 240 x 24Hz */
                .max_pixelclock = 530841600, /* 4096 x 2160 x 60Hz */
                .standards = V4L2_DV_BT_STD_CEA861 | V4L2_DV_BT_STD_DMT |
index c179c425e167cb3a2bbb0919dba3749dedeeb070..fd93fbbaf755592c80571b6202c249de87a3fb07 100644 (file)
@@ -44,10 +44,10 @@ static const struct mgb4_i2c_kv fpdl3_i2c[] = {
 static const struct v4l2_dv_timings_cap video_timings_cap = {
        .type = V4L2_DV_BT_656_1120,
        .bt = {
-               .min_width = 320,
+               .min_width = 240,
                .max_width = 4096,
                .min_height = 240,
-               .max_height = 2160,
+               .max_height = 4096,
                .min_pixelclock = 1843200, /* 320 x 240 x 24Hz */
                .max_pixelclock = 530841600, /* 4096 x 2160 x 60Hz */
                .standards = V4L2_DV_BT_STD_CEA861 | V4L2_DV_BT_STD_DMT |