Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp130367pxb; Tue, 17 Nov 2020 23:37:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzJR67kH4Eo4aDr4+Gzkp1zF4LFVwMm7Sd+y+7c6PHlCPeLZBrQO589fe239saxHmIbZ2L X-Received: by 2002:a50:a45c:: with SMTP id v28mr7658218edb.329.1605685043537; Tue, 17 Nov 2020 23:37:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605685043; cv=none; d=google.com; s=arc-20160816; b=fTIzr3z5wzsZuJTjcTo2VHlMvymyrcMzT9NjXYILDRNtCjdjP0A2zmFPt6hx3phHDR Xy4MrtICmC/BwvCv8Ol0SWaTVFwh1ODmIrPv4ih2IJZEpahZX7xNDrsJZeDkhZ0ssWzN /KK86ejBvS/YTgLParZ/SQtEYuYk+L/gB8ws3KZBL084LQ0TX26INq1TPzumd0Nl5WEK qLxI3MNEZDd370GpKNGS1qie6GlZ3N+ciUI96suXqjaO+uP1wnP/Y0knC3mXAMMsUsXA mbEnYm+C9p6l+sMrRLdeQF0hRgR98R/Blau1V8+0njfSwQH9Cps1ZTj3cY7Fpk5gfVWa MEYw== 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=An/252Sqjxzmspq5evk0l2l4ZY5pMacbH1RIK00S7Bw=; b=f5zF/WobbZGyI1rcZWZ2ooECb88korGOwK14yLhUJyPe8zvb1v/DtDA/9zKpzDjZE5 /kbeollnquZyhPmBBVEn9kQoEpaJ4Rd2cFoGREnVTGl08UrOZoBPgb1mq4416r5zLe3F aw5ZpVToHuOGwdSpmsFVNupyI2e1OlN5TSbmrn7lASFX42zYD8qoDx3F3DD9x6zvBHJR DpFA6HXajyzmvH1KVSGMoQ5TH7dC5jd2rzaQDcX7IOA7ZDbD5lPkSlhQk/4Yt1cIVpv+ N1qEZ/ajQn5zaOv85CD2V+ZnTTha1eyC2LRKnAxeA2LrH4H7h3cBpA8Aq2BV3lkFJ4E6 DnSQ== 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 v14si15160120edb.336.2020.11.17.23.37.00; Tue, 17 Nov 2020 23:37:23 -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 S1726650AbgKRHe2 (ORCPT + 99 others); Wed, 18 Nov 2020 02:34:28 -0500 Received: from mx2.suse.de ([195.135.220.15]:48366 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725794AbgKRHe2 (ORCPT ); Wed, 18 Nov 2020 02:34:28 -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 5041EABDE; Wed, 18 Nov 2020 07:34:26 +0000 (UTC) Date: Wed, 18 Nov 2020 08:34:25 +0100 Message-ID: From: Takashi Iwai To: Macpaul Lin Cc: Takashi Iwai , Jaroslav Kysela , Matthias Brugger , Alexander Tsoy , "Nicola Lunghi" , Christopher Swenson , Nick Kossifidis , "alsa-devel@alsa-project.org" , Ainge Hsu (=?UTF-8?B?5b6Q5ben5a6c?=) , Eddie Hung (=?UTF-8?B?5rSq5q2j6ZGr?=) , Chunfeng Yun (=?UTF-8?B?5LqR5pil5bOw?=) , wsd_upstream , Macpaul Lin , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-usb@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "stable@vger.kernel.org" Subject: Re: [PATCH v3] ALSA: usb-audio: disable 96khz support for HUAWEI USB-C HEADSET In-Reply-To: <1605677166.23663.4.camel@mtkswgap22> References: <1604996266.2817.1.camel@mtkswgap22> <1604999048-20294-1-git-send-email-macpaul.lin@mediatek.com> <1605677166.23663.4.camel@mtkswgap22> 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 Wed, 18 Nov 2020 06:26:06 +0100, Macpaul Lin wrote: > > On Tue, 2020-11-10 at 17:04 +0800, 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 > > Cc: stable@vger.kernel.org > > --- > > Changes for v2: > > - Fix build error. > > - Add Cc: stable@vger.kernel.org > > Changes for v3: > > - Replace "udev" with "chip->dev" according to Takashi's suggestion. Thanks. > > > > sound/usb/format.c | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/sound/usb/format.c b/sound/usb/format.c > > index 1b28d01..0aff774 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(chip->dev->descriptor.bcdDevice) == 0x49) > > + continue; > > > > fp->rate_table[fp->nr_rates] = rate; > > if (!fp->rate_min || rate < fp->rate_min) > > Sorry for bothering again, please hold-on this patch. > I'm still trying to clarify if there is another approach for this > interoperability issue. > I'll update this thread once the result has came out. OK, thanks for information. Takashi