Commit 1d6ccd82 authored by Michael Spang's avatar Michael Spang Committed by Commit Bot

ozone: evdev: Add quirk to force USB 0x18d1:0x5030 as internal

This adds a quirk to force this device as internal so that it behaves
correctly in tablet mode.

Bug: b/116723180
Test: please

Change-Id: Ica3ace1098daf090e843ffb03bb27ef07d5144a1
Reviewed-on: https://chromium-review.googlesource.com/c/1280845Reviewed-by: default avatarKevin Schoedel <kpschoedel@chromium.org>
Reviewed-by: default avatarXiaoqian Dai <xdai@chromium.org>
Commit-Queue: Michael Spang <spang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#599732}
parent 484a1851
......@@ -197,6 +197,11 @@ bool EventDeviceInfo::Initialize(int fd, const base::FilePath& path) {
device_type_ = GetInputDeviceTypeFromPath(path);
// TODO(spang): Implement these quirks in a better way.
constexpr uint16_t kGoogleVendorId = 0x18d1;
if (vendor_id_ == kGoogleVendorId && product_id_ == 0x5030)
device_type_ = InputDeviceType::INPUT_DEVICE_INTERNAL;
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment