diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2016-09-05 12:12:34 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2016-09-05 12:12:34 -0500 |
commit | b18bff9ad82dd217efa1adefb3ab8308b0344c49 (patch) | |
tree | 1874536b6a2c5961ae02e8722e0ac82691bee685 | |
parent | 125cf0a7f2acb909b15193d5806d605eaa3cb278 (diff) | |
download | tdelibs-b18bff9ad82dd217efa1adefb3ab8308b0344c49.tar.gz tdelibs-b18bff9ad82dd217efa1adefb3ab8308b0344c49.zip |
Properly classify Lenovo USB camera platform subdevices
-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 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") |