Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2248200imm; Thu, 7 Jun 2018 07:40:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJjtCM44f/qjEb1wbrFE7XN2On3AClhvHbWDiKTnT9CxaVeeG2o0/v21/vMoqtXJ2I9kC5y X-Received: by 2002:a62:3a59:: with SMTP id h86-v6mr2051738pfa.209.1528382449151; Thu, 07 Jun 2018 07:40:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528382449; cv=none; d=google.com; s=arc-20160816; b=qwSSfDyYS7W6Ac8xt0A54r+ymBIZgh++dcF/gXskgeg2MSEZ5rRYbgSynzB57wdXi8 IIMjOYt2EaebSH1o1XYKYqOM95jdj/JSsS3NbhBWzkxS2UZxh683tIhOeE7mqWCA83m7 jyvR6WZzmPwbxymWulvwe7FHgmeXQWwA/u9HNFFwT45xTYYQwaorZB0njAU26UV2eOXI /knfh3VDAAXT6JTw3hvitfIwrPnttsY58sSoGsGJW5qUV50oHShHpyqVp1SQ0mM01tHj XAiaCePqlnmLcM23Td64LRAVMD87Vqn6rNOzZQy4fXw8lcg70aWcLCbsRD894jcb+FHL nDXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=HadlxlEmeAv/rqYWOJZ1JRJpJggF03ucJDaRX5pfgow=; b=MKAAP7mKPine4ddRaSJDHF3YzJQIM7GqiYSw2GFOuLDeHd+pcWAbmG/vxJW8yXsCJw ZDX9wIGGJHh0s0EhtzWgsTwEQV4/cYgB3fX4QwyJZfE/oHf3RKd9CF1kxsFXvjIE5kzI 9/K7nRR+FiImt9If0bquTFIKciz6LolGguhpZgFWzzZtGe1L8Snj8jJC56jJ9IGhuFbe 8eKUT9CS82gIxeuCWvZXE40Fg4sS1kVl54p0k3V9pcB14c9piVYEVRhO2uFG5wFX11sS NSovjKCTSOIUWH7ZXlbtM4TnD9ujTeVlgKBO2k//YilFl6m0hEmIoKKHhaWwlUk6oSzf xXMQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12-v6si44519709pgn.155.2018.06.07.07.40.34; Thu, 07 Jun 2018 07:40:49 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934298AbeFGOj0 (ORCPT + 99 others); Thu, 7 Jun 2018 10:39:26 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:40497 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933906AbeFGOjY (ORCPT ); Thu, 7 Jun 2018 10:39:24 -0400 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvbX-0005a0-C9; Thu, 07 Jun 2018 15:09:31 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvb9-00037L-Ls; Thu, 07 Jun 2018 15:09:07 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Takashi Iwai" , "Erik Veijola" Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 281/410] ALSA: usb-audio: Add a quirck for B&W PX headphones In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.57-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Erik Veijola commit 240a8af929c7c57dcde28682725b29cf8474e8e5 upstream. The capture interface doesn't work and the playback interface only supports 48 kHz sampling rate even though it advertises more rates. Signed-off-by: Erik Veijola Signed-off-by: Takashi Iwai Signed-off-by: Ben Hutchings --- sound/usb/quirks-table.h | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h @@ -3266,4 +3266,51 @@ AU0828_DEVICE(0x2040, 0x7270, "Hauppauge } }, +{ + /* + * Bower's & Wilkins PX headphones only support the 48 kHz sample rate + * even though it advertises more. The capture interface doesn't work + * even on windows. + */ + USB_DEVICE(0x19b5, 0x0021), + .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { + .ifnum = QUIRK_ANY_INTERFACE, + .type = QUIRK_COMPOSITE, + .data = (const struct snd_usb_audio_quirk[]) { + { + .ifnum = 0, + .type = QUIRK_AUDIO_STANDARD_MIXER, + }, + /* Capture */ + { + .ifnum = 1, + .type = QUIRK_IGNORE_INTERFACE, + }, + /* Playback */ + { + .ifnum = 2, + .type = QUIRK_AUDIO_FIXED_ENDPOINT, + .data = &(const struct audioformat) { + .formats = SNDRV_PCM_FMTBIT_S16_LE, + .channels = 2, + .iface = 2, + .altsetting = 1, + .altset_idx = 1, + .attributes = UAC_EP_CS_ATTR_FILL_MAX | + UAC_EP_CS_ATTR_SAMPLE_RATE, + .endpoint = 0x03, + .ep_attr = USB_ENDPOINT_XFER_ISOC, + .rates = SNDRV_PCM_RATE_48000, + .rate_min = 48000, + .rate_max = 48000, + .nr_rates = 1, + .rate_table = (unsigned int[]) { + 48000 + } + } + }, + } + } +}, + #undef USB_DEVICE_VENDOR_SPEC