]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
media: atomisp: csi2-bridge: Add DMI quirk for t4ka3 on Xiaomi Mipad2
authorHans de Goede <hdegoede@redhat.com>
Mon, 2 Sep 2024 09:52:27 +0000 (11:52 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 6 Sep 2024 09:56:54 +0000 (11:56 +0200)
The t4ka3 sensor on the Xiaomi Mipad2 is used as a back facing sensor,
it uses 4 CSI lanes, but the _DSM has CsiLanes set to 2. Extend
the existing Xiaomi Mipad2 DMI quirk to override the wrong _DSM setting.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20240902095229.59059-1-hdegoede@redhat.com
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_csi2_bridge.c

index d789d38ef689935e62852e1e67b0120fe9640613..6abda358a72f761a705bafbb0391ccd14ad71f9e 100644 (file)
@@ -109,6 +109,8 @@ static struct gmin_cfg_var lenovo_ideapad_miix_310_vars[] = {
 static struct gmin_cfg_var xiaomi_mipad2_vars[] = {
        /* _DSM contains the wrong CsiPort for the front facing OV5693 sensor */
        { "INT33BE:00", "CsiPort", "0" },
+       /* _DSM contains the wrong CsiLanes for the back facing T4KA3 sensor */
+       { "XMCC0003:00", "CsiLanes", "4" },
        {}
 };