Skip to content

Commit 671397d

Browse files
jwrdegoedemchehab
authored andcommitted
media: atomisp: gmin_platform: Add Lenovo Ideapad Miix 310 gmin_vars
The _DSM used to get sensor variables like CsiPort returns the wrong csi-port for the front OV2680 sensor on the Lenovo Ideapad Miix 310 add a gmin_vars DMI quirk / override setting the right CsiPort. Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
1 parent bd8856c commit 671397d

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,17 @@ static struct gmin_cfg_var surface3_vars[] = {
304304
{},
305305
};
306306

307+
static struct gmin_cfg_var lenovo_ideapad_miix_310_vars[] = {
308+
/* _DSM contains the wrong CsiPort! */
309+
{ "OVTI2680:01_CsiPort", "0" },
310+
{}
311+
};
312+
307313
static const struct dmi_system_id gmin_vars[] = {
314+
/*
315+
* These DMI IDs were present when the atomisp driver was merged into
316+
* drivers/staging and it is unclear if they are really necessary.
317+
*/
308318
{
309319
.ident = "BYT-T FFD8",
310320
.matches = {
@@ -341,13 +351,22 @@ static const struct dmi_system_id gmin_vars[] = {
341351
},
342352
.driver_data = i8880_vars,
343353
},
354+
/* Later added DMI ids, these are confirmed to really be necessary! */
344355
{
345356
.ident = "Surface 3",
346357
.matches = {
347358
DMI_MATCH(DMI_BOARD_NAME, "Surface 3"),
348359
},
349360
.driver_data = surface3_vars,
350361
},
362+
{
363+
.ident = "Lenovo Ideapad Miix 310",
364+
.matches = {
365+
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
366+
DMI_MATCH(DMI_PRODUCT_VERSION, "MIIX 310-10"),
367+
},
368+
.driver_data = lenovo_ideapad_miix_310_vars,
369+
},
351370
{}
352371
};
353372

0 commit comments

Comments
 (0)