Received: by 10.223.185.111 with SMTP id b44csp911544wrg; Fri, 9 Mar 2018 16:39:43 -0800 (PST) X-Google-Smtp-Source: AG47ELtYAuC6i+jxS4ohRc9gpitQmvskOjNAqql0Yiq4e51er7dkfFOg4owLdE8sNDwwsNTKCGj7 X-Received: by 10.99.167.66 with SMTP id w2mr281994pgo.357.1520642383442; Fri, 09 Mar 2018 16:39:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520642383; cv=none; d=google.com; s=arc-20160816; b=OoGCOEFyzF5BKwbnedr3jhu6KlWTu1YagUptsLWZDctY62yVbSyseWZNhJ5cjdP2bJ igHCkMUHXHVzXxbSsJGg26ToAL38GRjYtSxr+cLLOsBvoxXyzOSF5I2/N5A/b9E0Gk+e nTU1PiuazGSchsIoiyH9BJ955b+sb1iPM/ylPIhk4kJaVzbGT8yHaMpBVP+CaALETx96 5umCf+A4fyHU6mKolU3VD5ux/dHv/55/T17HJwcO6atEcVz4TEf5QzsLd96kxkf5TaFq dnnGu9SA7gJ2phcceMn6C0mHjUCL1TfC1kHy3H6Da7VkP1FIzTukcVCUsZyKmo4pwYha 6vTA== 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=MqZt78qu28qEJ1tIK8DB9SpgqglGRYnKsTakrMQBWw4=; b=ar3VHO41dmuPj84KUIKhle3NPouDC9B9oUzqhOT7jV9hpudIdarVgVRK37lqSBFbgE xZw0PjiFV5rmhTe1mcBMw9TkyirJjgTDCqecuFSDzLDMh6CDqZDPOLBr6UtCakIwpTto xRbo0J6GvZHtk2SV+zJ1IVNmtFta7mteDV+3bWo8BpWt6vz0uWlGeT+UeK4Rq2yg+KiE 7sfgBNSKwQWlDjG5Vp0VVHMMpYDkIM4nNLxaiW+UvMN0oW24pyCKgMWGPXVMO9VvpPfY yO2mj6T6yBOXW2sq6hShj3KStBWCQxnWaMu1c2gZEsxDMComzZrvXJb0uJvmd1b3YHep 1s9Q== 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 f29si1703460pff.364.2018.03.09.16.39.29; Fri, 09 Mar 2018 16:39:43 -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 S933806AbeCJAiY (ORCPT + 99 others); Fri, 9 Mar 2018 19:38:24 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39640 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933252AbeCJAVh (ORCPT ); Fri, 9 Mar 2018 19:21:37 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 06E1E10F2; Sat, 10 Mar 2018 00:21:36 +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.9 08/65] ALSA: usb-audio: Add a quirck for B&W PX headphones Date: Fri, 9 Mar 2018 16:18:08 -0800 Message-Id: <20180310001825.591385700@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180310001824.927996722@linuxfoundation.org> References: <20180310001824.927996722@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.9-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