summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2016-09-05 12:12:34 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2016-09-05 12:12:34 -0500
commitb18bff9ad82dd217efa1adefb3ab8308b0344c49 (patch)
tree1874536b6a2c5961ae02e8722e0ac82691bee685
parent125cf0a7f2acb909b15193d5806d605eaa3cb278 (diff)
downloadtdelibs-b18bff9ad82dd217efa1adefb3ab8308b0344c49.tar.gz
tdelibs-b18bff9ad82dd217efa1adefb3ab8308b0344c49.zip
Properly classify Lenovo USB camera platform subdevices
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp5
1 files changed, 5 insertions, 0 deletions
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")