Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3817793pxb; Tue, 10 Nov 2020 00:15:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkCgDPg1ZGgMcf1C1RDYx7e+tYuubx/Fd8dYpBSEtdyxO+L4XpPBMMZPEuMAZ48Ez/5qho X-Received: by 2002:a17:906:7f95:: with SMTP id f21mr18608895ejr.340.1604996111520; Tue, 10 Nov 2020 00:15:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604996111; cv=none; d=google.com; s=arc-20160816; b=iOEp6sh33iWPadLTKb7H9nizXniZ05kbkNBNbz2h9p8CKvQkMX4yiGOlgO8OZTo1SX V+VCE5lxe1Puf+yJI+4RofnpTG6P23Uq1/rAqtz7jBUQXuXdCp8y5jFReIwk3dC9t0xr cF4woifCyQRdATFACD5rnPvTVlPD9S2tiP3W3t3ogt7JNyjsw9z6cXSIAFw1Pe/Uwdn0 5s1346WmKPQ79lv3chjmL1XGOzJRzUHysUMOg3jaQeOujdr45im7pTaFvclDr2zCZq72 xrDMizBdZpwR1I9y63uCUwR+oI1wQUakgk1rwPVYOFm0WCpqQ4TsaVlWB1Yppmy5bTrb Sz3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=cnh0dLS2Na7xvxlZu43wiHvfuChCOsJNKf1STh5jpC8=; b=DJw0R+W5Envr2LExnTrRZF3jFFRomRr2CuNQj09ag+6H6k02npSF3rHtaZrIUW5n1w KXUU4BDaoLUuMRPETKXJXfHsf1GYayosILCas93hsLRLr1rSdFl3drKCZU8BcdXJji94 LkJCRxxN0fmWm54ghMBSDeKJI/X4tOPJoveiKD+I+N1Hm0jpNgMj3C0FIFSoMdjNcVN9 Esf0MuOLCZXgRd9vw9Upbj9xZuZ2JZPoJxbazJKd3+PnH0UWyH+b1ySzT9ho+lZFHFqv EQLu9UlzKeDfkYhT/kRXdc7AaIdISvkFfjHLM4XBDfOtW+o+BDpE+abLk3quODtS4cXr Cxpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ec19si8971900ejb.669.2020.11.10.00.14.48; Tue, 10 Nov 2020 00:15:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731787AbgKJIMc (ORCPT + 99 others); Tue, 10 Nov 2020 03:12:32 -0500 Received: from mx2.suse.de ([195.135.220.15]:39004 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731729AbgKJIMb (ORCPT ); Tue, 10 Nov 2020 03:12:31 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 36DF5AE07; Tue, 10 Nov 2020 08:12:29 +0000 (UTC) Date: Tue, 10 Nov 2020 09:12:28 +0100 Message-ID: From: Takashi Iwai To: Macpaul Lin Cc: Jaroslav Kysela , Takashi Iwai , Matthias Brugger , Alexander Tsoy , Nicola Lunghi , Christopher Swenson , Nick Kossifidis , , Ainge Hsu , Eddie Hung , Chunfeng Yun , Mediatek WSD Upstream , Macpaul Lin , , , , Subject: Re: [PATCH] ALSA: usb-audio: disable 96khz support for HUAWEI USB-C HEADSET In-Reply-To: <1604995443-30453-1-git-send-email-macpaul.lin@mediatek.com> References: <1604995443-30453-1-git-send-email-macpaul.lin@mediatek.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Nov 2020 09:04:03 +0100, Macpaul Lin wrote: > > The HUAWEI USB-C headset (VID:0x12d1, PID:0x3a07) reported it supports > 96khz. However there will be some random issue under 96khz. > Not sure if there is any alternate setting could be applied. > Hence 48khz is suggested to be applied at this moment. > > Signed-off-by: Macpaul Lin > Signed-off-by: Eddie Hung > --- > sound/usb/format.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/sound/usb/format.c b/sound/usb/format.c > index 1b28d01..6f6e79b 100644 > --- a/sound/usb/format.c > +++ b/sound/usb/format.c > @@ -217,6 +217,11 @@ static int parse_audio_format_rates_v1(struct snd_usb_audio *chip, struct audiof > (chip->usb_id == USB_ID(0x041e, 0x4064) || > chip->usb_id == USB_ID(0x041e, 0x4068))) > rate = 8000; > + /* Huawei headset can't support 96kHz fully */ > + if (rate == 96000 && > + chip->usb_id == USB_ID(0x12d1, 0x3a07) && > + le16_to_cpu(udev->descriptor.bcdDevice) == 0x49) This causes the compile error due to the unknown udev. Is this bcdDevice check mandatory? thanks, Takashi