HID: input: fix mapping of aspect ratio key
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 18 Jan 2019 21:44:23 +0000 (13:44 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 27 Mar 2019 00:41:30 +0000 (17:41 -0700)
According to HUTRR37 usage 0x6d from the consumer usage page corresponds
to action that selects the next available supported aspect ratio option
on a device which outputs or displays video. However KEY_ZOOM means
activate "Full Screen" mode, KEY_ASPECT_RATIO should be used instead.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/hid/hid-input.c

index d6fab579848743555c53534ad933419ad69318a9..def58c6aa8353eb21e21a55cf9c867656db67cc6 100644 (file)
@@ -891,7 +891,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
                case 0x06a: map_key_clear(KEY_GREEN);           break;
                case 0x06b: map_key_clear(KEY_BLUE);            break;
                case 0x06c: map_key_clear(KEY_YELLOW);          break;
-               case 0x06d: map_key_clear(KEY_ZOOM);            break;
+               case 0x06d: map_key_clear(KEY_ASPECT_RATIO);    break;
 
                case 0x06f: map_key_clear(KEY_BRIGHTNESSUP);            break;
                case 0x070: map_key_clear(KEY_BRIGHTNESSDOWN);          break;