Skip to contentSkip to conversation

Keymap with duplicate entries

DISCUSSION Bastien Nocera 3 participants 4 messages Jul 1, 2019 – Jul 3, 2019 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hey Malcolm,

There seems to be a problem in the keymap you provided for inclusion in the kernel.

In media/rc/keymaps/rc-it913x-v2.c, 2 keys are triggered by the same keycode:
53 ↦ { 0x866b18, KEY_VOLUMEDOWN },•
55 ↦ { 0x866b18, KEY_CHANNELDOWN },•

Could you please check what the correct values are for both of those keys?

Thanks!

#1 lore raw
Quoted 9 lines

Hey Malcolm,

There seems to be a problem in the keymap you provided for inclusion in the kernel.

In media/rc/keymaps/rc-it913x-v2.c, 2 keys are triggered by the same keycode:
53 ↦ { 0x866b18, KEY_VOLUMEDOWN },•
55 ↦ { 0x866b18, KEY_CHANNELDOWN },•

Hmm

I don't have this remote only the first one in this file.

I am pretty sure the values for the second type were forwarded to me by another user.

Regards

Malcolm

#2 lore raw
Quoted 9 lines · Malcolm Priestley
Quoted 9 lines

Hey Malcolm,

There seems to be a problem in the keymap you provided for inclusion in the kernel.

In media/rc/keymaps/rc-it913x-v2.c, 2 keys are triggered by the same keycode:
53 ↦ { 0x866b18, KEY_VOLUMEDOWN },•
55 ↦ { 0x866b18, KEY_CHANNELDOWN },•

Quoted 5 lines

Hmm

I don't have this remote only the first one in this file.

I am pretty sure the values for the second type were forwarded to me by another user.

I'm pretty sure (although I have not tested this) that the second mapping will overwite the first, so after the keymap is loaded 0x866b18 will be mapped to KEY_CHANNELDOWN.

The current toml isn't loaded able but the kernel will set the initial keymap.

So, do current kernels work correctly with the remote you have?

Thanks,

Sean

#3 lore raw
Quoted 12 lines · Malcolm Priestley
Quoted 11 lines
Quoted 9 lines

Hey Malcolm,

There seems to be a problem in the keymap you provided for inclusion in the kernel.

In media/rc/keymaps/rc-it913x-v2.c, 2 keys are triggered by the same keycode:
53 ↦ { 0x866b18, KEY_VOLUMEDOWN },•
55 ↦ { 0x866b18, KEY_CHANNELDOWN },•

Hmm

Quoted 7 lines
Quoted 3 lines

I don't have this remote only the first one in this file.

I am pretty sure the values for the second type were forwarded to me by another user.

I'm pretty sure (although I have not tested this) that the second mapping will overwite the first, so after the keymap is loaded 0x866b18 will be mapped to KEY_CHANNELDOWN.

It just finds the first magic number from the scan so KEY_VOLUMEDOWN is hit first

Quoted 5 lines

The current toml isn't loaded able but the kernel will set the initial keymap.

So, do current kernels work correctly with the remote you have?

Yes, it does

I will dig deep in the mailing list but these are cheap bubble button remotes I got a feeling there was a comment at the time that two buttons were the same scan.

Regards

Malcolm