From 9472bd7dcef7db405ebf02a3cfa87e180054b9fe Mon Sep 17 00:00:00 2001 From: Michael Banther Date: Thu, 26 Sep 2019 14:22:17 +0100 Subject: [PATCH] Change HID usage from Play On-Off Control (OOC) to Voice Command One-Shot Control (OSC). OSC requires relative data. --- lib_xua/src/core/endpoint0/xua_ep0_descriptors.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib_xua/src/core/endpoint0/xua_ep0_descriptors.h b/lib_xua/src/core/endpoint0/xua_ep0_descriptors.h index bd95078e..e6c56aa9 100644 --- a/lib_xua/src/core/endpoint0/xua_ep0_descriptors.h +++ b/lib_xua/src/core/endpoint0/xua_ep0_descriptors.h @@ -555,10 +555,10 @@ unsigned char hidReportDescriptor[] = 0xa1, 0x01, /* Collection (Application) */ 0x15, 0x00, /* Logical Minimum (0) */ 0x25, 0x01, /* Logical Maximum (1) */ - 0x09, 0xb0, /* Usage (Play) */ + 0x09, 0xcf, /* Usage (Voice Command), use 0xcd for (Play/Pause OSC) */ 0x75, 0x01, /* Report Size (1) */ 0x95, 0x01, /* Report Count (1) */ - 0x81, 0x02, /* Input (Data, Var, Abs) */ + 0x81, 0x06, /* Input (Data, Var, Rel) */ 0x95, 0x07, /* Report Count (7) */ 0x81, 0x01, /* Input (Cnst, Ary, Abs) */ 0xc0 /* End collection */