diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2016-09-05 12:12:34 -0500 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-09-08 19:33:51 +0200 |
commit | f66944e531a824d0aa8d09de5789400051df53af (patch) | |
tree | ebfd6e39e417cf37a70ad846f3918f482a5f4c4b /tdecore/tdehw | |
parent | fe024a800dbbbf69f282aa53af7b88ee6c2d8672 (diff) | |
download | tdelibs-f66944e531a824d0aa8d09de5789400051df53af.tar.gz tdelibs-f66944e531a824d0aa8d09de5789400051df53af.zip |
Properly classify Lenovo USB camera platform subdevices
(cherry picked from commit b18bff9ad82dd217efa1adefb3ab8308b0344c49)
Diffstat (limited to 'tdecore/tdehw')
-rw-r--r-- | tdecore/tdehw/tdehardwaredevices.cpp | 5 |
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") |