From patchwork Wed May 22 21:17:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Palatin X-Patchwork-Id: 2603731 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 6AACDDF215 for ; Wed, 22 May 2013 21:47:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756549Ab3EVVr2 (ORCPT ); Wed, 22 May 2013 17:47:28 -0400 Received: from mail-qe0-f73.google.com ([209.85.128.73]:64153 "EHLO mail-qe0-f73.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756513Ab3EVVr2 (ORCPT ); Wed, 22 May 2013 17:47:28 -0400 X-Greylist: delayed 1755 seconds by postgrey-1.27 at vger.kernel.org; Wed, 22 May 2013 17:47:28 EDT Received: by mail-qe0-f73.google.com with SMTP id a11so273773qen.2 for ; Wed, 22 May 2013 14:47:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=wKG03aWensD2w84qPp02rVpdO8sg1q4YhC8vPlDNhdE=; b=m5kEXRSya/fTc49gGnZsol+V4V7XGku8B8uCCqizsMnmpA8E58fk14UJc33BGGKPA9 SlGVIVK7OxS8/PmFgp19LnxSBovXR68rHjmnklau5pYWCuypXgIzHLMjIt4UEA6aG+KH A0ypmD8qrSwN+ri0Fej2gCaol27Q7B+r9FeiRW98kLn1yZlTO5LYlAmxKdg50zmT2OoB 8CiJY/NQOao13ARSBL9OuI4rN43+YtUv1o2z2SB6lcLCnuAA2JFsJMMnBR0F5xYDeLL1 65RnkQHkU1cUgDg27Mrb9kYfHUwVJ3lM6S606aCsIxihyaCmRvhkwdBD/gxUtwQNmJRD 1WTA== X-Received: by 10.236.200.229 with SMTP id z65mr4248011yhn.18.1369257492024; Wed, 22 May 2013 14:18:12 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id o42si804993yhe.5.2013.05.22.14.18.12 for (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Wed, 22 May 2013 14:18:12 -0700 (PDT) Received: from vp2.mtv.corp.google.com (vp2.mtv.corp.google.com [172.22.72.71]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id D60A731D272; Wed, 22 May 2013 14:18:11 -0700 (PDT) Received: by vp2.mtv.corp.google.com (Postfix, from userid 125455) id 619C48068C; Wed, 22 May 2013 14:18:11 -0700 (PDT) From: Vincent Palatin To: linux-usb@vger.kernel.org, linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Alan Stern , Olof Johansson , Vincent Palatin Subject: [PATCH] HID: usbhid: ignore Jabra speakerphones HID interface Date: Wed, 22 May 2013 14:17:54 -0700 Message-Id: <1369257474-26389-1-git-send-email-vpalatin@chromium.org> X-Mailer: git-send-email 1.8.2.1 X-Gm-Message-State: ALoCoQmc17sa3yQMf6xyuxKEzvchPZ+IilHEzCE8dJlWu8Ng0YPcnSSPzWFahBaidLuYLbCCBizVhFXCS/dpG3K14MVxPQ8fidz6gwTOKPzXGs6viW2tVbPU18jzqQ+EmT9/ZxrVfXwVGRst4bcj2YGuLOrYrOfrISQthjBrZZnyWwYnhjRaQA7zbBANSRjFntKvPtunm0KTOzQAOE2PSr8/IOodY5nXMQ== Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Add a quirk to ignore Jabra speakerphone 410 and 510 devices HID interface. On those devices, the USB audio interface is working nicely, but the HID interface is not working with the kernel usbhid driver, and it requires a specific userspace program. We could unbind it from userspace but just attaching the usbhid driver has sometimes nasty effects: either confusing the device state machine or triggering a storm of volume key events making eventual sound UI blinking like crazy. Signed-off-by: Vincent Palatin --- drivers/hid/hid-ids.h | 4 ++++ drivers/hid/usbhid/hid-quirks.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 38535c9..533815b 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -447,6 +447,10 @@ #define USB_VENDOR_ID_IRTOUCHSYSTEMS 0x6615 #define USB_DEVICE_ID_IRTOUCH_INFRARED_USB 0x0070 +#define USB_VENDOR_ID_JABRA 0x0b0e +#define USB_DEVICE_ID_JABRA_SPEAK_410 0x0412 +#define USB_DEVICE_ID_JABRA_SPEAK_510 0x0420 + #define USB_VENDOR_ID_JESS 0x0c45 #define USB_DEVICE_ID_JESS_YUREX 0x1010 diff --git a/drivers/hid/usbhid/hid-quirks.c b/drivers/hid/usbhid/hid-quirks.c index 19b8360..d8c9aaf 100644 --- a/drivers/hid/usbhid/hid-quirks.c +++ b/drivers/hid/usbhid/hid-quirks.c @@ -109,6 +109,9 @@ static const struct hid_blacklist { { USB_VENDOR_ID_SIGMA_MICRO, USB_DEVICE_ID_SIGMA_MICRO_KEYBOARD, HID_QUIRK_NO_INIT_REPORTS }, { USB_VENDOR_ID_KYE, USB_DEVICE_ID_KYE_MOUSEPEN_I608X, HID_QUIRK_MULTI_INPUT }, { USB_VENDOR_ID_KYE, USB_DEVICE_ID_KYE_EASYPEN_M610X, HID_QUIRK_MULTI_INPUT }, + + { USB_VENDOR_ID_JABRA, USB_DEVICE_ID_JABRA_SPEAK_410, HID_QUIRK_IGNORE }, + { USB_VENDOR_ID_JABRA, USB_DEVICE_ID_JABRA_SPEAK_510, HID_QUIRK_IGNORE }, { 0, 0 } };