Received: by 10.223.185.111 with SMTP id b44csp916615wrg; Fri, 9 Mar 2018 16:48:10 -0800 (PST) X-Google-Smtp-Source: AG47ELtLKeKII6vCT+afrXmZ523mLAYRknXMP2JPWSk/OyoQQD3p8r0Gx5CGLu+6D8Altd6dsB2b X-Received: by 10.98.62.14 with SMTP id l14mr371261pfa.206.1520642890084; Fri, 09 Mar 2018 16:48:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520642890; cv=none; d=google.com; s=arc-20160816; b=F12lz3ryrrcUNqAMiT6hoqI6UY1hiYSAmDmYDd5pVpyb6xcmCfWpM9KJQynWR+bB9B 3J/0H1lhZgpRWn1GqwPeILgCwcCct7/R6J0qorG9bzV0SQbc1gU+HY/AnpxOE5CLHrwx 3TuhFFTJ0KfZqjmimuruqTalcQuK4Vm/f/noZIjVD61W8t30T8RppO9vfHaQHhlX4xhK CeVJA7Ihu4LyjbsDor8nptwlcQ6PEuKA4tHQnDjAtxlMbufVHrGnU1MioSEEFvf1KFz3 eRgSwUFZ8dBujE9k1QQBE9IvJfmGJAmrGz79YyxdfecHodOiISBy+QclTuBhX4PmfO3j TBEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Hpa+03HJNnvVeZt4O7i7IqrrSJtJpCd1FOIJlC9ddPA=; b=itBieAZh6rYmREUYIi8QjN9EOJBRztILN0BWQnI+z+Gq5g3RU1XB+OFXcGuPVK1Caq 0meOlnbXXguWPI+tEsZxaV99GuxU9OIBqqcc7GtdZHJ1fqyBCPnxBytnCOr1U4nafvMB O06P+1r5dbiztwC5hzYU3hn6/nyu59Kz29jk1T/d9ld14t0mgViGcQEDuVz/1YWh4vo8 WD0J6FtLWO2bYLrG6+otf6VRycCGsrvKul/QwtPONbJ0wZSObs0i+nMtAPJFzUykP4j0 v57yoeoH9wOgO12z2zsNpDlUKLPfMizzT8tgVFp5K4m2Z2Hj5xyoo9ho9w6d+HKFm7uk M9EA== 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 be7-v6si1766225plb.201.2018.03.09.16.47.55; Fri, 09 Mar 2018 16:48:10 -0800 (PST) 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 S933416AbeCJAqE (ORCPT + 99 others); Fri, 9 Mar 2018 19:46:04 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39038 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933333AbeCJAUP (ORCPT ); Fri, 9 Mar 2018 19:20:15 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 6EB1CF73; Sat, 10 Mar 2018 00:20:14 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Erik Veijola , Takashi Iwai Subject: [PATCH 4.4 04/36] ALSA: usb-audio: Add a quirck for B&W PX headphones Date: Fri, 9 Mar 2018 16:18:20 -0800 Message-Id: <20180310001807.437629481@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180310001807.213987241@linuxfoundation.org> References: <20180310001807.213987241@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable 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 Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/usb/quirks-table.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h @@ -3277,4 +3277,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