Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3814670pxb; Tue, 10 Nov 2020 00:08:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzSD6iYGiX/d3zCm4AlCxVaq4evrYh7CjIKkpp2pspyGI5gdd+0xXZYv2s1rSPKHMC30wnK X-Received: by 2002:a50:85c6:: with SMTP id q6mr20351208edh.126.1604995724860; Tue, 10 Nov 2020 00:08:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604995724; cv=none; d=google.com; s=arc-20160816; b=okaZ3bJt/E4ovYC39zXr789HHxuqeEyS6UXhxwR45ExDajpUy+PZa3PVIaZ6OnRkam EcIOcONt1J9nfhNZFH94J4FFbgLp0yvQV43DdZszZnLnk9oSanhGV59kyjxnT3xHqY/C yieGchsaKZpfnSC8KjWdx/ZSyVL2NOfh5xp52Auj+vg7xK49f7g2YFBwYwhNh4np5jv/ i2SzscfE4bSlnb7/rvLfMxDAA3ShZSsd/KybEaiVZogNlF2meGF6BUAd2DYSH5rxYEV1 xZNyF50AYT/jdaNjam6NQGBe2NdRd1/5mX1RVD7KWJm9X/s6JxCUiGRhLqTH7gcyoVcE sMSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=BBEhBwKm4fm1l09dvflak9KbT6EV6O7bRc/36cEWuEw=; b=dlyx9I5LsNxPTg0gZHBfgBmJ4kfbzz1UoLApjJ9cPGabLlEAdH1hv416by1Bx7jPeS lZPdlWPIE/Ow0llRTP8LMATYs6KF3KEog0IDfO9dZecIArU7mEXprxPdkChK5XHY4ZiC ORpdfHIvjHadUsScZrfhQh3oP/cdVBCfdhms7Mdj2zQTBSE6TlQyhVbbCfUFuQYNtbiW kGb1XVVVWzzNejxpxS7ctVFe658m+wlLqc7cmkH+k0lKtD+OjPs6RKP7RB162Z67HpbY tF4dxOs3a9LP1U7zFQSeVdu/nEot0+vgqCEZfglnuBNv5YiqU2vwtkX/jkaHpCw4GbcP 5qIA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i5si8975104edn.310.2020.11.10.00.08.22; Tue, 10 Nov 2020 00:08:44 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729795AbgKJIE0 (ORCPT + 99 others); Tue, 10 Nov 2020 03:04:26 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:41637 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727019AbgKJIEZ (ORCPT ); Tue, 10 Nov 2020 03:04:25 -0500 X-UUID: 11ecea745cf34cf1b480769982905ca6-20201110 X-UUID: 11ecea745cf34cf1b480769982905ca6-20201110 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 708621736; Tue, 10 Nov 2020 16:04:19 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 10 Nov 2020 16:04:18 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 10 Nov 2020 16:04:18 +0800 From: Macpaul Lin To: Jaroslav Kysela , Takashi Iwai , Matthias Brugger , Alexander Tsoy , Nicola Lunghi , Christopher Swenson , Nick Kossifidis , CC: Ainge Hsu , Eddie Hung , Chunfeng Yun , Mediatek WSD Upstream , Macpaul Lin , Macpaul Lin , , , , Subject: [PATCH] ALSA: usb-audio: disable 96khz support for HUAWEI USB-C HEADSET Date: Tue, 10 Nov 2020 16:04:03 +0800 Message-ID: <1604995443-30453-1-git-send-email-macpaul.lin@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) + continue; fp->rate_table[fp->nr_rates] = rate; if (!fp->rate_min || rate < fp->rate_min) -- 1.7.9.5