Skip to contentSkip to conversation

media: imon: Add iMON VFD HID OEM v1.2 key mappings

PATCH In review Alessandro Baldi 2 participants 2 messages May 17 – May 18

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: imon: Add iMON VFD HID OEM v1.2 key mappings

Add Vol+/Vol-/Mute panel button mappings for iMON VFD HID OEM v1.2. This version differs in the codes that generate the KEY_VOLUMEUP, KEY_VOLUMEDOWN and KEY_MUTE events.

---

Note: this is my first kernel contribution.
Keycodes discovered by parsing USB packets with usbmon:
- modprobe usbmon
- cat /sys/kernel/debug/usb/usbmon/1u | grep Ii
Tested on Thermaltake Mozart Sx case with LibreELEC media center.

 drivers/media/rc/imon.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/media/rc/imon.c +4 -0
index 9bb27ba82..049a73b5f 100644
@@ -290,6 +290,10 @@ static const struct imon_usb_dev_descr imon_OEM_VFD = {
 		{ 0x000100000000ffeell, KEY_VOLUMEUP },
 		{ 0x010000000000ffeell, KEY_VOLUMEDOWN },
 		{ 0x000000000100ffeell, KEY_MUTE },
+		/* iMON VFD HID OEM v1.2 */
+		{ 0x000000000a00ffeell, KEY_VOLUMEUP },
+		{ 0x000000000b00ffeell, KEY_VOLUMEDOWN },
+		{ 0x000000000c00ffeell, KEY_MUTE },
 		/* 0xffdc iMON MCE VFD */
 		{ 0x00010000ffffffeell, KEY_VOLUMEUP },
 		{ 0x01000000ffffffeell, KEY_VOLUMEDOWN },
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 5 lines · Alessandro Baldi

Add Vol+/Vol-/Mute panel button mappings for iMON VFD HID OEM v1.2. This version differs in the codes that generate the KEY_VOLUMEUP, KEY_VOLUMEDOWN and KEY_MUTE events.

Thank you, patch applied.

Sean

Quoted 28 lines

---

Note: this is my first kernel contribution.
Keycodes discovered by parsing USB packets with usbmon:
- modprobe usbmon
- cat /sys/kernel/debug/usb/usbmon/1u | grep Ii
Tested on Thermaltake Mozart Sx case with LibreELEC media center.

 drivers/media/rc/imon.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/media/rc/imon.c +4 -0
index 9bb27ba82..049a73b5f 100644
@@ -290,6 +290,10 @@ static const struct imon_usb_dev_descr imon_OEM_VFD = {
 		{ 0x000100000000ffeell, KEY_VOLUMEUP },
 		{ 0x010000000000ffeell, KEY_VOLUMEDOWN },
 		{ 0x000000000100ffeell, KEY_MUTE },
+		/* iMON VFD HID OEM v1.2 */
+		{ 0x000000000a00ffeell, KEY_VOLUMEUP },
+		{ 0x000000000b00ffeell, KEY_VOLUMEDOWN },
+		{ 0x000000000c00ffeell, KEY_MUTE },
 		/* 0xffdc iMON MCE VFD */
 		{ 0x00010000ffffffeell, KEY_VOLUMEUP },
 		{ 0x01000000ffffffeell, KEY_VOLUMEDOWN },
Signature · 1 line
2.34.1