1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c
index e7993d7..c8189f9 100644
--- a/drivers/hid/hid-asus.c
+++ b/drivers/hid/hid-asus.c
@@ -454,6 +454,9 @@ static int rog_nkey_led_init(struct hid_device *hdev)
0x54, 0x65, 0x63, 0x68, 0x2e, 0x49, 0x6e, 0x63, 0x2e, 0x00 };
u8 buf_init3[] = { FEATURE_KBD_LED_REPORT_ID1,
0x05, 0x20, 0x31, 0x00, 0x08 };
+ u8 buf_init4[] = { 0x5a, 0xb3};
+ u8 buf_init5[] = { 0x5a, 0xb5};
+ u8 buf_init6[] = { 0x5a, 0xb4};
int ret;
hid_info(hdev, "Asus initialise N-KEY Device");
@@ -488,6 +491,17 @@ static int rog_nkey_led_init(struct hid_device *hdev)
ret = asus_kbd_set_report(hdev, buf_init3, sizeof(buf_init3));
if (ret < 0)
hid_warn(hdev, "Asus failed to send init command 2.1: %d\n", ret);
+
+ /* ROG ALLY LED init */
+ ret = asus_kbd_set_report(hdev, buf_init4, sizeof(buf_init4));
+ if (ret < 0)
+ hid_warn(hdev, "Asus failed to send ROG ALLY LED init command: %d\n", ret);
+ ret = asus_kbd_set_report(hdev, buf_init5, sizeof(buf_init5));
+ if (ret < 0)
+ hid_warn(hdev, "Asus failed to send ROG ALLY LED init command: %d\n", ret);
+ ret = asus_kbd_set_report(hdev, buf_init6, sizeof(buf_init6));
+ if (ret < 0)
+ hid_warn(hdev, "Asus failed to send ROG ALLY LED init command: %d\n", ret);
return ret;
}
|