summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2016-09-05 17:12:34 (GMT)
committer Timothy Pearson <kb9vqf@pearsoncomputing.net>2016-09-05 17:12:34 (GMT)
commitb18bff9ad82dd217efa1adefb3ab8308b0344c49 (patch)
tree1874536b6a2c5961ae02e8722e0ac82691bee685
parent125cf0a7f2acb909b15193d5806d605eaa3cb278 (diff)
downloadtdelibs-b18bff9a.zip
tdelibs-b18bff9a.tar.gz
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 b2af2fa..9ef0059 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")