From patchwork Mon Jan 28 19:49:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Chiluk X-Patchwork-Id: 216352 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 145692C009A for ; Tue, 29 Jan 2013 06:49:52 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TzuiA-0002gx-6N; Mon, 28 Jan 2013 19:49:46 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1Tzui8-0002gs-8b for kernel-team@lists.ubuntu.com; Mon, 28 Jan 2013 19:49:44 +0000 Received: from cpe-70-124-70-187.austin.res.rr.com ([70.124.70.187] helo=[192.168.1.101]) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1Tzui8-0001an-2w for kernel-team@lists.ubuntu.com; Mon, 28 Jan 2013 19:49:44 +0000 Message-ID: <5106D654.8040404@canonical.com> Date: Mon, 28 Jan 2013 13:49:40 -0600 From: Dave Chiluk User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: kernel-team@lists.ubuntu.com Subject: [quantal] SRU: LP1007575 USB Headset interferes with mouse function X-Enigmail-Version: 1.5 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com SRU Justification: Impact: * Plugging in a SB Arena USB headset or a number of other usb headsets causes the current window to hold focus, and prevent other windows from being selected essentially making the desktop unusable. * Without this patch users are forced to not use these devices. Fix: * cherry picked from upstream commit 929578ab0339fe42bb3ceeaa2e6607189cddf70b * This fix was arrived at via bisection, and has been verified in LP1080882 * Fixes the button mappings for the volume control which shows up as a hid device which is attached to the headset. Testcase: * Create 2 windows * With focus set on one of them * Plug in the headset * Attempt to change focus using the mouse to the other window. * User will not be able to select focus on the other window. Patch for Quantal attached. Dave. Acked-by: Leann Ogasawara From 289de7981abc6581c034dbd8baa3354f61262ed7 Mon Sep 17 00:00:00 2001 From: Keng-Yu Lin Date: Fri, 6 Jul 2012 18:06:11 +0800 Subject: [PATCH] HID: Add suport for the brightness control keys on HP keyboards The keys are found on the keyboards bundled with HP All-In-One machines with USB VID/PID of 04ca:004d and 04f2:1061. Signed-off-by: Keng-Yu Lin Signed-off-by: Jiri Kosina (cherry picked from commit 929578ab0339fe42bb3ceeaa2e6607189cddf70b) Signed-off-by: David Chiluk --- drivers/hid/hid-input.c | 9 +++++++++ include/linux/hid.h | 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 5301006..811bfad 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -837,6 +837,15 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel } break; + case HID_UP_HPVENDOR2: + set_bit(EV_REP, input->evbit); + switch (usage->hid & HID_USAGE) { + case 0x003: map_key_clear(KEY_BRIGHTNESSDOWN); break; + case 0x004: map_key_clear(KEY_BRIGHTNESSUP); break; + default: goto ignore; + } + break; + case HID_UP_MSVENDOR: goto ignore; diff --git a/include/linux/hid.h b/include/linux/hid.h index 449fa38..42970de 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -200,6 +200,7 @@ struct hid_item { #define HID_UP_DIGITIZER 0x000d0000 #define HID_UP_PID 0x000f0000 #define HID_UP_HPVENDOR 0xff7f0000 +#define HID_UP_HPVENDOR2 0xff010000 #define HID_UP_MSVENDOR 0xff000000 #define HID_UP_CUSTOM 0x00ff0000 #define HID_UP_LOGIVENDOR 0xffbc0000 -- 1.7.9.5