From patchwork Wed May 22 21:39:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Palatin X-Patchwork-Id: 2603711 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 9786E3FD2B for ; Wed, 22 May 2013 21:40:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756613Ab3EVVkI (ORCPT ); Wed, 22 May 2013 17:40:08 -0400 Received: from mail-gg0-f202.google.com ([209.85.161.202]:62054 "EHLO mail-gg0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755970Ab3EVVkH (ORCPT ); Wed, 22 May 2013 17:40:07 -0400 Received: by mail-gg0-f202.google.com with SMTP id o1so275038ggn.5 for ; Wed, 22 May 2013 14:40:05 -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:in-reply-to:references :x-gm-message-state; bh=MB8aCIHhxQEVY/MfkzESg+ClUyMAg2yKeIytzWIlfh8=; b=G9HwcIMrWufr93xeAuxGqqcWWQNVSdjd172vh8i9fQrSTwFPSU/moNLd8bxH0L66CS vEAmDjye3GTVjv8Idtn0+BMx8jo9HDh3CzlfGdnSBZOxjPN3eM4NLLH/u9QU0EPc8pB8 GK0nQoVKXy+3BWSxx3rwMzPE34I4hXfcPOo6LvhuXyM+GfcYmuoHcwOhyzt5S7q1A+TE YD9M1gcvfxWFGnK2CIfazYo3sJzNPwWEx9DYlBhpPkqW5sREYHqRYAzMmkjsKNLI70Q0 ik2tCsSmWIPX0Si9uApkDt4SIs1Y/PIFIA4rTQWG6rTMNsvbmKaUq7xxFywcaPVW+41i aCVA== X-Received: by 10.236.61.42 with SMTP id v30mr4518053yhc.15.1369258805719; Wed, 22 May 2013 14:40:05 -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 h2si820684yhj.2.2013.05.22.14.40.05 for (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Wed, 22 May 2013 14:40:05 -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 8BFAB36474B; Wed, 22 May 2013 14:40:05 -0700 (PDT) Received: by vp2.mtv.corp.google.com (Postfix, from userid 125455) id 24F3180553; Wed, 22 May 2013 14:40:05 -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:39:50 -0700 Message-Id: <1369258790-30629-1-git-send-email-vpalatin@chromium.org> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: References: X-Gm-Message-State: ALoCoQntDzTckxv2SHq0v3Aequq+kwQtUB5P4PL2Mbf64haCaM6Zb0LORzLtkMvFwU7VzuTVcm9ABBQ1fiPwIJm2CU/SeNW0j6oyWHISPlKs5Gz0j/zYR61N4Mr+AL/g+5pEjKXeOOHrTLOkMqQxiI4fJSV9+E/Atw2avXX0nC77v/88U1hG1ovtGy5XVRtdeWxsjUA1+n/WD4YEQozoemGZVA4M7LL1mg== 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-core.c | 2 ++ drivers/hid/hid-ids.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 264f550..5d2ef66 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -2042,6 +2042,8 @@ static const struct hid_device_id hid_ignore_list[] = { { HID_USB_DEVICE(USB_VENDOR_ID_GTCO, USB_DEVICE_ID_GTCO_1006) }, { HID_USB_DEVICE(USB_VENDOR_ID_GTCO, USB_DEVICE_ID_GTCO_1007) }, { HID_USB_DEVICE(USB_VENDOR_ID_IMATION, USB_DEVICE_ID_DISC_STAKKA) }, + { HID_USB_DEVICE(USB_VENDOR_ID_JABRA, USB_DEVICE_ID_JABRA_SPEAK_410) }, + { HID_USB_DEVICE(USB_VENDOR_ID_JABRA, USB_DEVICE_ID_JABRA_SPEAK_510) }, { HID_USB_DEVICE(USB_VENDOR_ID_KBGEAR, USB_DEVICE_ID_KBGEAR_JAMSTUDIO) }, { HID_USB_DEVICE(USB_VENDOR_ID_KWORLD, USB_DEVICE_ID_KWORLD_RADIO_FM700) }, { HID_USB_DEVICE(USB_VENDOR_ID_KYE, USB_DEVICE_ID_KYE_GPEN_560) }, 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