Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3698650imu; Fri, 18 Jan 2019 15:32:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN52YtWUBmCJoi0mR6q+jRLh5piBlN/sONSaLGdOwE84PPbDafRCaDEy//suuq2P3Mb/zFQW X-Received: by 2002:a63:e711:: with SMTP id b17mr19139459pgi.363.1547854341253; Fri, 18 Jan 2019 15:32:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547854341; cv=none; d=google.com; s=arc-20160816; b=Ck+q/jFkRXpHG/4VnrUCyE1ypu/z1uK0vEeQAP5mkNtr22CH1LP245mEqAKaH0mQbQ aOGb3I6KFdw09TdFwgclHtr9/SqkZ+kxbDT7CTfaPbGrkft9BaHAFIlASDLdKPaC8r0N MNsvnMirdN3k4dT9vFbrpeMWMXbAokcOHNWEuWUCfATT/wfBYeELSEmFkhZcq6EKyaZL beKDr+QuiaUwn+UZR4urzy1z15CdYgZUxKxNJMWYswQO/agJQBDfWgEH3jvl+q+tkQID bt2moss9KuiWV2YaydjmG/elpZSbqCFco3H4wn7CpOzKzrfF2pp/ougYccj8Bl7ezulk 0aHQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Da91/n9DUgE7qrDB5BTP/g0fCKFOWWyecOgir9w/o6A=; b=uJaPTnPggTnGPNdLuqv9YA6u2AoKjZfjB4r0pDvcJgS3XA4xfu8vmv9g1iEKB/Vu1T n4isYw9CeWBMbLkp3OMofMxFFtd0jSXCTtBHIkdUIYukt6LRRvLPfZawikHlwnhzeEBv fXq+duyZ+2Zsz11V8LRNRdsQADPLuo5PHHNmf0a2XZn8u2pvTSKUV7kudYhIAmzR1uit FjhN9qj3POuHe5BAK+nhLwquCL3ObTe/U0tqsCxPWO7r5eUW0FmVhnt2wSuQy3jT+mTa LzwObsbCctBa+rnoo4Fh4jShu8DpAIp2QWaq0Rky+QKz4vEllYuHJE+j9QbTlZ05NXHI fdoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jqGuJd8m; 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 69si3271985pgc.164.2019.01.18.15.32.05; Fri, 18 Jan 2019 15:32:21 -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=jqGuJd8m; 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 S1730209AbfARXaq (ORCPT + 99 others); Fri, 18 Jan 2019 18:30:46 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:44074 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729842AbfARXan (ORCPT ); Fri, 18 Jan 2019 18:30:43 -0500 Received: by mail-pl1-f196.google.com with SMTP id e11so6978113plt.11; Fri, 18 Jan 2019 15:30:43 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=Da91/n9DUgE7qrDB5BTP/g0fCKFOWWyecOgir9w/o6A=; b=jqGuJd8mIM0DpcLWzq+lfpcEXyMvaC+Up0KKuuc+uS1wiV3SPF+JHl5ioL1vqr2Ee7 4cgKu33ztLGUyIFjK0Rk5LIbUIipSqqmzX1/xvPHPYTKPD3SSGtHO3siPSO5br6EPdma TBnR15PHV4YRmAKPQnXDX50rBNXIaKIdWZdqonPM/5/ctXGUjNPkQsbDp4v37fzfIwHM wBzDQa+ibeXH0+DrSb38YMvPa2rZvD0qdB+yIDQKjdvJSssEqJ3ksHxe+odfKdwgo8DB AaNPpMUjKrFDNMux2xd9ePRr2I5bU5dpZV2QhssLqPauhvmuqaJhFpEJs/gq26SNHhDc x/5w== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Da91/n9DUgE7qrDB5BTP/g0fCKFOWWyecOgir9w/o6A=; b=Y8A25aSEkhatar3u2hsahqVgcn9h4RKgagI3VoNzxecyeSJnNXuUKm70EE90vFCkCl qr6S8Cuq/hLPNxFytKTnZl+9UYVqT2VOPHEKkTK7nS+fPt5WG2aXhJzXxk65NsRDBQLn uhiUWyw7XuZp6M00bNfShwOWbeyaSLrRT5DZmYyrpumCgT11o557Ox7j1udiQgrhsJfu kbWUEeh9nmBXGCgQfUsKCpQWrv6kKwrloD6PtLWfOGnc6GPIQyQlOQbiUoUtIc/uztwm hmZYxiPXEUhirPPoZgVa3xt5IZ4lI4U160jdlDDTcxatw1L+9lymu9Zokvtf0tL1VVjf 9EfA== X-Gm-Message-State: AJcUukcFNnDlmiDYUHsV33G+UBBrw+9Kjnb9bKH5OMclran+b6bN2s5k NKlKBnUuQ2Lgf0RTRLA17Ow= X-Received: by 2002:a17:902:830a:: with SMTP id bd10mr21001011plb.321.1547854242450; Fri, 18 Jan 2019 15:30:42 -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.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jan 2019 15:30:41 -0800 (PST) From: Dmitry Torokhov To: Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab Subject: [PATCH 3/7] HID: input: fix mapping of aspect ratio key Date: Fri, 18 Jan 2019 15:30:33 -0800 Message-Id: <20190118233037.87318-3-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.20.1.321.g9e740568ce-goog In-Reply-To: <20190118233037.87318-1-dmitry.torokhov@gmail.com> References: <20190118233037.87318-1-dmitry.torokhov@gmail.com> 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 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 --- drivers/hid/hid-input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index d6fab5798487..def58c6aa835 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -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; -- 2.20.1.321.g9e740568ce-goog