Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: document meanings of KEY_SCREEN and KEY_ZOOM

It is hard to say what KEY_SCREEN and KEY_ZOOM mean, but historically DVB
folks have used them to indicate switch to full screen mode. Later, they
converged on using KEY_ZOOM to switch into full screen mode and KEY)SCREEN
to control aspect ratio (see Documentation/media/uapi/rc/rc-tables.rst).

Let's commit to these uses, and define:

- KEY_FULL_SCREEN (and make KEY_ZOOM its alias)
- KEY_ASPECT_RATIO (and make KEY_SCREEN its alias)

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

+4 -2
+4 -2
include/uapi/linux/input-event-codes.h
··· 439 439 #define KEY_TITLE 0x171 440 440 #define KEY_SUBTITLE 0x172 441 441 #define KEY_ANGLE 0x173 442 - #define KEY_ZOOM 0x174 442 + #define KEY_FULL_SCREEN 0x174 /* AC View Toggle */ 443 + #define KEY_ZOOM KEY_FULL_SCREEN 443 444 #define KEY_MODE 0x175 444 445 #define KEY_KEYBOARD 0x176 445 - #define KEY_SCREEN 0x177 446 + #define KEY_ASPECT_RATIO 0x177 /* HUTRR37: Aspect */ 447 + #define KEY_SCREEN KEY_ASPECT_RATIO 446 448 #define KEY_PC 0x178 /* Media Select Computer */ 447 449 #define KEY_TV 0x179 /* Media Select TV */ 448 450 #define KEY_TV2 0x17a /* Media Select Cable */