Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3708560imu; Fri, 18 Jan 2019 15:48:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN5DSb7J17JenxBXSPpCKxcc/yH9J0AM2zcHPBPQbrvoLvUlToOlY232pqXCzp5dkWljLyhr X-Received: by 2002:a62:1992:: with SMTP id 140mr21344778pfz.33.1547855326914; Fri, 18 Jan 2019 15:48:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547855326; cv=none; d=google.com; s=arc-20160816; b=cBoICbXVxeVqnNUfOi8PJFYwnTalFiBh5pSZQfQWqNWMTpNLJbgH0OostPthFCSkuH caxcGC1m0glTtNfEXGXs0EGBR1xPiTWwUfUw39xRQ/n9v+0bw5MFwHEDzDrjvkDI2DDs foqWzaleyD8OQaVWtH8mZQo7HTIpVX1b/BOa7kZ0bKPC/wDtO/GKUdn3it3StIWqXbGh lsLSv5lQnFcbWZqPu3U9dCURCKH5qRInAiimgtYGZnMbKKh1CJJB1hUG3x1mWvrO2hR/ MIXK0bJGUdF/NAmGQZAjh8A2dgCxnaz8WrSuq8sjbByPw0bpGyc4lwAYRvS97ZPAidPT M9Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=kNUf+iB/LoK2OdmSM9fbNdTqLzr17MC+P0LbuoGYOrI=; b=RSo3OXIaiNL6KRePFjU24FfvxNnzKvo5oG41C070YQQZqQcC5fVTdUNkWcLYDZ4DAg hKqHxezmP5Lc3+K99RlvqWLq6NHbeZWVm0P3PFZQN5QUOvJxtWSvVWCKmcrHDk4jEWaq zptdtcnNOoJU2nwAl4KlJkV1uUUPyRLrv+NxxGo8qIw14SKuDrW4CzpmZ9CkYXxoMgSj 7E7I7Xpk7EDDPoJnfh3Uc8wLPmJKGnwgGj3sU8YiXfDVzezgFCZmtI/ZYWMNfQH+3tXW G0r25obg3T8zUyXrRgVWEA0xo8J6Z3AyvUcEuVavQSaDlT7XBtYXCApU/SA4kjbn/FLy SQNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WZHXE0YF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l24si6035091pgj.171.2019.01.18.15.48.28; Fri, 18 Jan 2019 15:48:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WZHXE0YF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730180AbfARXam (ORCPT + 99 others); Fri, 18 Jan 2019 18:30:42 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:38807 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729842AbfARXam (ORCPT ); Fri, 18 Jan 2019 18:30:42 -0500 Received: by mail-pg1-f193.google.com with SMTP id g189so6753169pgc.5; Fri, 18 Jan 2019 15:30:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kNUf+iB/LoK2OdmSM9fbNdTqLzr17MC+P0LbuoGYOrI=; b=WZHXE0YFfXV5zDSuK4FfeEGDlRf5P7cjbnqBHEiNsKXSxuB7aohCDLJYX+743V2qkC swY79GOejVcsH+LZwNsJnON3pKxbChQA+SQ73a7UH5fZAQboITfCNZ5w4CZHv1XrFSAH Qpg1wlbUBcrJij0lpyGKedLcird1NXhr/8D+4RrVUUd6uS1qzrBLZwvMSVug03I7dv0y ZeM+2kDBTlpExs2hwEH5VJ0dmCJaWrj8UsF2cvvIgusmMV0mm9RkRtJ5ZSwWufv3HJ/e 6ed53Sw1dj9ouhHKEkFC7WJny6Q76a14FJ3ezlimyEAhZNPTT7rUBSoqryXBWmDAmDkc wGgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kNUf+iB/LoK2OdmSM9fbNdTqLzr17MC+P0LbuoGYOrI=; b=fgV0NupRm0J72SUgjpFS1uCNgMv/QfB/fkXlE4bn3mSmKcQdMFFiw02TXZXKnQmGZy EK2w04kmPAM+2Fym3jOO66dTKb5eJbSA2y1W1HfzoyzjBYjkVJGU0cXqL3tyEbX2Cmsb ayNGmMmHtI4s+iBCL4sk1PpZLpiGPpvWscOPOfo/z1HZbjmfz2ZurvWCYK4DqVQmABmq sOd0FryzlW7f6UPoCk1Hi54g7o6G4lv59imf0xTpFbctTfy6gIEWeRpGq8mK6MGAy0u6 W9/NkzRf3RPMYtpHwXy5B6C8HZhZjJga+e+KS1QSunmjFf94PdR7q3lYqjLYDuwVQrI2 LdRw== X-Gm-Message-State: AJcUukdGPBInzQE3LyueQkJova1TiVVEmbD2j8hiHAaDA2YpFF9esLUp SczrZ+AvDZlI+yb/ZvGq6zY= X-Received: by 2002:a63:334a:: with SMTP id z71mr19807787pgz.400.1547854240660; Fri, 18 Jan 2019 15:30:40 -0800 (PST) Received: from dtor-ws.mtv.corp.google.com ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id f6sm11857163pfg.188.2019.01.18.15.30.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jan 2019 15:30:40 -0800 (PST) From: Dmitry Torokhov To: Jiri Kosina , Benjamin Tissoires Cc: Mauro Carvalho Chehab , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH 1/7] Input: document meanings of KEY_SCREEN and KEY_ZOOM Date: Fri, 18 Jan 2019 15:30:31 -0800 Message-Id: <20190118233037.87318-1-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.20.1.321.g9e740568ce-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Please let me know how we want merge this. Some of patches can be applied independently and I tried marking them as such, but some require new key names from input.h include/uapi/linux/input-event-codes.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h index ae366b87426a..bc5054e51bef 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -439,10 +439,12 @@ #define KEY_TITLE 0x171 #define KEY_SUBTITLE 0x172 #define KEY_ANGLE 0x173 -#define KEY_ZOOM 0x174 +#define KEY_FULL_SCREEN 0x174 /* AC View Toggle */ +#define KEY_ZOOM KEY_FULL_SCREEN #define KEY_MODE 0x175 #define KEY_KEYBOARD 0x176 -#define KEY_SCREEN 0x177 +#define KEY_ASPECT_RATIO 0x177 /* HUTRR37: Aspect */ +#define KEY_SCREEN KEY_ASPECT_RATIO #define KEY_PC 0x178 /* Media Select Computer */ #define KEY_TV 0x179 /* Media Select TV */ #define KEY_TV2 0x17a /* Media Select Cable */ -- 2.20.1.321.g9e740568ce-goog