media: imon: Add iMON VFD HID OEM v1.2 key mappings
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
@@ -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
Sean Young
maintainerQuoted 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_VOLUMEDOWNandKEY_MUTEevents.Signed-off-by Alessandro Baldi <[email protected]>
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@@ -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