From b18bff9ad82dd217efa1adefb3ab8308b0344c49 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Sep 2016 12:12:34 -0500 Subject: [PATCH] Properly classify Lenovo USB camera platform subdevices --- tdecore/tdehw/tdehardwaredevices.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp index b2af2faca..9ef005927 100644 --- a/tdecore/tdehw/tdehardwaredevices.cpp +++ b/tdecore/tdehw/tdehardwaredevices.cpp @@ -2339,6 +2339,11 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD } } + if ((devicesubsystem == "usb") + && (devicedriver == "uvcvideo")) { + if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform); + } + // Last ditch attempt at classification // Likely inaccurate and sweeping if ((devicesubsystem == "usb")