summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2016-09-05 12:12:34 -0500
committerSlávek Banko <slavek.banko@axis.cz>2016-09-08 19:33:51 +0200
commitf66944e531a824d0aa8d09de5789400051df53af (patch)
treeebfd6e39e417cf37a70ad846f3918f482a5f4c4b /tdecore
parentfe024a800dbbbf69f282aa53af7b88ee6c2d8672 (diff)
downloadtdelibs-f66944e531a824d0aa8d09de5789400051df53af.tar.gz
tdelibs-f66944e531a824d0aa8d09de5789400051df53af.zip
Properly classify Lenovo USB camera platform subdevices
(cherry picked from commit b18bff9ad82dd217efa1adefb3ab8308b0344c49)
Diffstat (limited to 'tdecore')
-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 6d3b2edc9..b0706a2ef 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -2292,6 +2292,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")