From patchwork Thu Aug 4 02:26:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chia-Lin Kao (AceLan)" X-Patchwork-Id: 9262529 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 122D66048F for ; Thu, 4 Aug 2016 02:26:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE64C27D29 for ; Thu, 4 Aug 2016 02:26:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFB2D27FA1; Thu, 4 Aug 2016 02:26:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 528AE27D29 for ; Thu, 4 Aug 2016 02:26:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754958AbcHDC0Y (ORCPT ); Wed, 3 Aug 2016 22:26:24 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:36779 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752806AbcHDC0X (ORCPT ); Wed, 3 Aug 2016 22:26:23 -0400 Received: by mail-pa0-f67.google.com with SMTP id ez1so15270291pab.3 for ; Wed, 03 Aug 2016 19:26:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id; bh=VNTs31emBuGp5D1NG3NfAjECKPC8X+3NUaysundCa3s=; b=h1Y8t2hJvteG0LQy7bw8UzbbS025KE/PfDo3M+JfFrHIc+F60e8e7MtU0+dLfE8uAP gcMiHfytelXqpht2N4A+elmy2z9+SpvkS7CFlHte/NU49v3pXLwK45AHslxLQjNtHYFF GzgF9XEfkN3fxm6qXOJXHBPCQz5FPmNSJAq6t3Byx3eGT12lh6LCHY/I9Ap8w/nwb6P1 uC2hGfs75dUCA+aJcsablo739mtOmcSsOsl/NHvCQXDH2t/OuhVRGuJ1pb5jD2eO6R1E P20nZl98AR2Q4qtEFwChYFD1vtqhY6zDPfcv4y+14YvXtZiJtX/Z5uf25pZ2iDZzgSgA 2wSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id; bh=VNTs31emBuGp5D1NG3NfAjECKPC8X+3NUaysundCa3s=; b=LFXGnC4tS7esslw/tdIOQZZWQ5wtCsY00TsJvafcxyrDWX6BNN/N4tfV5KNZbmXv4s LhG/dIMDcKqSwLYK8xRAMcdE7Al3jKyh8muNXt6cpf7zNV6XM21a5s0yjwz2EZOsrxRw VqAq7lDSbc/zbM5a9mDSiq7YKknU6bKYsWoDAnfCBDlKB0ZemJDqz9KTDU0LQhlPscrD 5io7oVco0ekE2TMSfIh3EgRrlLTzHgg3ojH0T/+kwhzfhuiwZJdVQiGZHtZpaJEzn1tE ckY5iijpXFuo5hJ6p68X4XndLmsu5b/3fLCoSewWq4eYeU45mJd0/Lj+GCgzTyNQBFsW Y9+Q== X-Gm-Message-State: AEkoouvVyhpdihMD0tNwBfY5TWqbzJL9WSeBwByxZtQCDD0YWcb9u29+T2JPMcyeASuOjg== X-Received: by 10.66.32.132 with SMTP id j4mr23223515pai.112.1470277582689; Wed, 03 Aug 2016 19:26:22 -0700 (PDT) Received: from localhost ([175.41.48.77]) by smtp.gmail.com with ESMTPSA id e72sm15530454pfb.49.2016.08.03.19.26.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Aug 2016 19:26:22 -0700 (PDT) From: AceLan Kao To: Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org Subject: [PATCH] HID: input: add mic mute key on HP slim keyboard Date: Thu, 4 Aug 2016 10:26:20 +0800 Message-Id: <1470277580-5517-1-git-send-email-acelan.kao@canonical.com> X-Mailer: git-send-email 2.7.4 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add MIC mute key which is found on HP Business Slim Keyboard T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 23 Spd=1.5 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=03f0 ProdID=2f4a Rev=00.10 S: Manufacturer=Chicony S: Product=HP Business Slim Keyboard C: #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=01 Driver=usbhid I: If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid Signed-off-by: AceLan Kao --- drivers/hid/hid-input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index bcfaf32..d51c43b 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -953,6 +953,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel case HID_UP_HPVENDOR2: set_bit(EV_REP, input->evbit); switch (usage->hid & HID_USAGE) { + case 0x001: map_key_clear(KEY_MICMUTE); break; case 0x003: map_key_clear(KEY_BRIGHTNESSDOWN); break; case 0x004: map_key_clear(KEY_BRIGHTNESSUP); break; default: goto ignore;