Received: by 10.223.185.116 with SMTP id b49csp5438940wrg; Wed, 7 Mar 2018 11:45:58 -0800 (PST) X-Google-Smtp-Source: AG47ELuV/MPmzSQKOcv5BwFtJ13luO2zYNbLBoHVTJH25LmpFr+XnaauKr0/yY3ar5dYiWoN5Xp4 X-Received: by 10.101.92.196 with SMTP id b4mr18630835pgt.27.1520451958529; Wed, 07 Mar 2018 11:45:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520451958; cv=none; d=google.com; s=arc-20160816; b=TL9Qio6qBZizc6xRHq0hwdCLVHBdXEB5V3ImjgcWGlIObNXvTHvFMozzJxt7/d9CoZ zf/Weh6bZmzhF7mLBfbA3Kp2W+H1uEQz66Wsm197d+sjejlazC81oca21kybSvDg/sfD 4n/ilO3wTxT+GxkSlhmHbUOtY/gvbkl9h8DPYcLTxNiENwxt/fUKfQ7luZmu5lr6+sDE E4mgEagpyOhqG7Fhg0GOdvnY79NFYPbwl+KOWyERo9Fh9ephhdPBuFk7Q2XmpXXxvnTm P29LVVjeQluvt66CJu/2jAzeHkf6CzGGXZqSaPcG4xPxbPzjc+YVedyNYB7zzHRKrRgi snqw== 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=/QgoGylc0WyA/QYL+oKqwZecEDphpBhP2hIcGDbxQb0=; b=K0oEwIA/xMWA7YFQU5R9DV08M6zuCmO6QBXpydnuJMrXropoAaLb7oPRzMpSgZPoKn KoyOza+5oMli0RnvO+rCQCjD1EPeRcvrCUw69uaxrkpUoKwIL1y9SkQc5BxkRqZTChem QzKB61WyO56MhscmDPNDcDu+U8Yv3cpJuuN2MQuA9N3U+xUfKsnveE1sx7KOP+3I+UvB ZkeNEqHmBVpoMVjFmzHLg1hiTCWw+HYYp3truwnEfG9DtVUAeq+XMzFZF9POAbgQcDXD LIQsk/uz0LYMQIS/7RwCiKWYKbJuGYAetwoWxVd1qydhFxsqX0+RP+dlywUMFjHhofSJ /WrQ== 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 i9si11717424pgp.499.2018.03.07.11.45.43; Wed, 07 Mar 2018 11:45:58 -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 S965105AbeCGTof (ORCPT + 99 others); Wed, 7 Mar 2018 14:44:35 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:43806 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965096AbeCGToc (ORCPT ); Wed, 7 Mar 2018 14:44:32 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 0E901EFD; Wed, 7 Mar 2018 19:44:31 +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.14 010/110] ALSA: usb-audio: Add a quirck for B&W PX headphones Date: Wed, 7 Mar 2018 11:37:53 -0800 Message-Id: <20180307191041.068515722@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180307191039.748351103@linuxfoundation.org> References: <20180307191039.748351103@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.14-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