Skip to content

Commit f3e2214

Browse files
committed
Hack: support for keyboard output reports.
1 parent 175278a commit f3e2214

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

module/surface_sam_vhf.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,13 @@ static int vhf_hid_raw_request(struct hid_device *hid, unsigned char reportnum,
723723
return 0; // discard everything
724724
}
725725

726+
// HAXX: The keyboard and the touchpad should probably be separate drivers.
727+
// For the time being, re-route keyboard reports to the right address.
728+
if (reportnum == 1) {
729+
cid = 0x01;
730+
iid = 0x01;
731+
}
732+
726733
struct surface_sam_ssh_rqst rqst = {
727734
.tc = data->event_ctx.info->tc,
728735
.pri = SURFACE_SAM_PRIORITY_HIGH,

0 commit comments

Comments
 (0)