mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
asus-wmi: Enable autorepeat for hotkey input device
The T101MT Home/Express Gate key autorepeats in hardware, but sparse-keymap does not support hardware autorepeat. Enable the input core's software autorepeat to emulate the hardware behavior. Normal hotkeys are autoreleased, so the behavior of these keys will not be affected. Signed-off-by: Seth Forshee <seth.forshee@canonical.com> Signed-off-by: Corentin Chary <corentin.chary@gmail.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
This commit is contained in:
parent
6ae8b80737
commit
39bbde0599
1 changed files with 1 additions and 0 deletions
|
@ -205,6 +205,7 @@ static int asus_wmi_input_init(struct asus_wmi *asus)
|
||||||
asus->inputdev->phys = asus->driver->input_phys;
|
asus->inputdev->phys = asus->driver->input_phys;
|
||||||
asus->inputdev->id.bustype = BUS_HOST;
|
asus->inputdev->id.bustype = BUS_HOST;
|
||||||
asus->inputdev->dev.parent = &asus->platform_device->dev;
|
asus->inputdev->dev.parent = &asus->platform_device->dev;
|
||||||
|
set_bit(EV_REP, asus->inputdev->evbit);
|
||||||
|
|
||||||
err = sparse_keymap_setup(asus->inputdev, asus->driver->keymap, NULL);
|
err = sparse_keymap_setup(asus->inputdev, asus->driver->keymap, NULL);
|
||||||
if (err)
|
if (err)
|
||||||
|
|
Loading…
Reference in a new issue