Skip to content

Navigation Menu

Sign in
Sign up

Surface Pro 9: fix rear camera rotation #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jmmartinf wants to merge 2 commits into linux-surface:v6.19-surface-devel
base: v6.19-surface-devel
Choose a base branch
Loading
from jmmartinf:sp9-rear-camera-rotation
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions drivers/media/pci/intel/ipu-bridge.c
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ static const struct dmi_system_id upside_down_sensor_dmi_ids[] = {
},
.driver_data = "OVTI5693",
},
{
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
DMI_MATCH(DMI_PRODUCT_NAME, "Surface Pro 9"),
},
.driver_data = "OVTID858",
},
{} /* Terminating entry */
};

Expand Down Expand Up @@ -291,9 +298,11 @@ static u32 ipu_bridge_parse_rotation(struct acpi_device *adev,
{
const struct dmi_system_id *dmi_id;

dmi_id = dmi_first_match(upside_down_sensor_dmi_ids);
if (dmi_id && acpi_dev_hid_match(adev, dmi_id->driver_data))
return 180;
/* A machine may have one entry per sensor, so check all matches. */
for (dmi_id = dmi_first_match(upside_down_sensor_dmi_ids); dmi_id;
dmi_id = dmi_first_match(dmi_id + 1))
if (acpi_dev_hid_match(adev, dmi_id->driver_data))
return 180;

switch (ssdb->degree) {
case IPU_SENSOR_ROTATION_NORMAL:
Expand Down

AltStyle によって変換されたページ (->オリジナル) /