Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp285833pxj; Wed, 16 Jun 2021 02:16:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmfNJm1W5MlEpn06e/DTSIq+txdCM7dJ5mRwoXCO+VnS3VIEabUNH6lYooTbmpqvyaUPCI X-Received: by 2002:a17:906:b0cb:: with SMTP id bk11mr4339788ejb.310.1623834999119; Wed, 16 Jun 2021 02:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623834999; cv=none; d=google.com; s=arc-20160816; b=ZhHCkVSHOTQzyRokCb1HbwWc6Sx6gV06Y9cB68VChYfCcO4thRB7E3S/72CuDIWF3U mpph3CSpW+3iHpx8c2u0ztWGJ9UKCNU0y1c2Sm472a6FOQMZ4J6DwdevXEqVt+O4PV2D w16aGl1W8YcOob/1K72SuM86z/ba0jUl6oS6CZjo6F5kwpT6ZMHP6Em5SasfbDG9bfSr Cn10lF5aLmiiOTQu+V/OFpBpigbkdyiLR3OwFJtbT+hTHIa8cYHzmjNvgi1Z4Fv0jT33 32B1V74Cp2Nk2JfDsSEwHNYW3TgCQJnrjj2yTrCX7LGxUEHkiIB0VSwzwSlphrKdNRWM PjvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=myOAqeIc6heLE/UNDGthBzZkw4lnE8HqhfmiMgQ+BjI=; b=QPWnd7cVIVetGM/iPDey+buW/oiMG8NI6SsUr+Gqy8qYIqGrQbG6NmbUhvt56R+m2o x02qBvC4mJ9cJgUGCMwdjBNaFNM4c7vKLDWY2WVlD6IAuvXlTKqTYyPb1iWd55BZsbYL NTc/omKflOFNn8YmaE9nucdoyL1/Oa8w8Pemk6aqnWmsuFr7JlAe/Tyhns8PfiMgWKLK BF631vPK9oTmdKWCa3jpPAiXbnf21Y75eGcogTcl1JPeK12rx+AKlRbk/tr4Pr0Ed/uc XkfPTFgOT+m+TgFbdkLlQ+dxE2BAm+TVUZVMWIUk+fjq8WcHDIUHr2k0pTF6VrDmU+cX jgQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=fgRql6hU; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s17si1478056edd.588.2021.06.16.02.16.16; Wed, 16 Jun 2021 02:16:39 -0700 (PDT) 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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=fgRql6hU; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232304AbhFPJR2 (ORCPT + 99 others); Wed, 16 Jun 2021 05:17:28 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:34530 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231336AbhFPJR1 (ORCPT ); Wed, 16 Jun 2021 05:17:27 -0400 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20210616091520epoutp025f542f7d98233bb6a128c45e4e520e8f~JBUHBocxJ0235502355epoutp022 for ; Wed, 16 Jun 2021 09:15:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20210616091520epoutp025f542f7d98233bb6a128c45e4e520e8f~JBUHBocxJ0235502355epoutp022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1623834920; bh=myOAqeIc6heLE/UNDGthBzZkw4lnE8HqhfmiMgQ+BjI=; h=From:To:Cc:Subject:Date:References:From; b=fgRql6hUMAmAcCAvvaIqYbXZl3QDwRb6xI/kBE04vUllF7pPJ4EB1xibGjHxArNMQ Z0cHm0sC61WxRwSrtEWu8eNBrm9mXlVBVOJCxHHb/TIzd1/WW8jFATjkREYO7YsGE6 55aAySbJvHP5lmhP89Et8J0fC98T8fSf6greAjVA= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20210616091520epcas2p29bddba3267c4ba31d5a9c2d61018e0e4~JBUGh0aSq1516115161epcas2p2c; Wed, 16 Jun 2021 09:15:20 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.40.188]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4G4ffZ1FxPz4x9Pp; Wed, 16 Jun 2021 09:15:18 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 1B.8C.09717.421C9C06; Wed, 16 Jun 2021 18:15:16 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20210616091516epcas2p2111c9b941d0e60fb0a6ae9646fb80d26~JBUDNjJbO1490614906epcas2p2M; Wed, 16 Jun 2021 09:15:16 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210616091516epsmtrp185a50060f680492726b0b199e1ac86de~JBUDMtjbx2764927649epsmtrp1g; Wed, 16 Jun 2021 09:15:16 +0000 (GMT) X-AuditID: b6c32a48-4fbff700000025f5-36-60c9c1242619 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 68.5A.08163.421C9C06; Wed, 16 Jun 2021 18:15:16 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [12.36.155.120]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210616091516epsmtip23061ebbfcc75ed4703a1829595f1dffb~JBUC8-5RK2448224482epsmtip2u; Wed, 16 Jun 2021 09:15:16 +0000 (GMT) From: Daehwan Jung To: Greg Kroah-Hartman Cc: Daehwan Jung , Jaroslav Kysela , Takashi Iwai , Lukasz Halman , Johan Hovold , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: ALSA: usb-audio: Fix rate on Ozone Z90 USB headset Date: Wed, 16 Jun 2021 18:01:01 +0900 Message-Id: <1623834063-108482-1-git-send-email-dh10.jung@samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEKsWRmVeSWpSXmKPExsWy7bCmqa7KwZMJBjs3W1tcuXiIyeLOgmlM Fs2L17NZNN3oYbW4vGsOm8Wu/3eZLDp39bNabPi+ltGBw2PD5yY2j52z7rJ7bFrVyeaxf+4a do99b5exefRtWcXosX7LVRaPz5vkAjiicmwyUhNTUosUUvOS81My89JtlbyD453jTc0MDHUN LS3MlRTyEnNTbZVcfAJ03TJzgE5TUihLzCkFCgUkFhcr6dvZFOWXlqQqZOQXl9gqpRak5BQY GhboFSfmFpfmpesl5+daGRoYGJkCVSbkZOxaf5OlYD17xeYNNxgbGG+wdjFyckgImEhMuPuO rYuRi0NIYAejxMEts6GcT4wSGz5+Y4ZwPjNK3N/1iwWmpf/tPXaIxC5GiSW7j7JAOD8YJWbv WgnkcHCwCWhJfF/ICNIgImAs0X92FlgDs8AXRon9s2aygSSEBawlbi1qAStiEVCVuL3gNiNI L6+Am8TunaIQy+Qkbp7rZIawT7FLnJ7tCWG7SFzd+psJwhaWeHV8CzuELSXxsr+NHWSMhEC5 xKL5diBrJQQ6GCXWfDrLCFFjLDHrWTvYKmYBT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2sG4 Z9UHvUOMTByMhxglOJiVRHh1i08kCPGmJFZWpRblxxeV5qQWH2KU5mBREue90HUyXkggPbEk NTs1tSC1CCbLxMEp1cAkMLnd/I0ow2WBP6vniPccXpHQqvtSOHrLa8taXb5ZwXlGHH+1y+S2 BadpsJj3CoSzqc8JO3nxyq8eUYVLQVXnHsYWd8/7VaWS0HVZqHrhXfZ+QW7hgPtOzS8Y9h/K 9b5euWGZWP23Zq2eegeZoM7NSY/LA19nZO6M0PBS+LQ24rnwo5rP9hqOOXpxb7b3zZ4YdUXw zqy8af3CX8sObXgfd+q8wO42hhb53TPTs3as/NP+9fH6J/Zn+5c84nD7bnqv3lC6L/6Hacey brYJv56GxJ1ou7yvQj155zSn7s0nPiVIdco21O92vKkazPm/+trnrSeZP//0tBafo/hQrGXf LfnZAQZhN2VzL6TJpiqxFGckGmoxFxUnAgC02/pbpQIAAA== X-CMS-MailID: 20210616091516epcas2p2111c9b941d0e60fb0a6ae9646fb80d26 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210616091516epcas2p2111c9b941d0e60fb0a6ae9646fb80d26 References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It mislabels its 96 kHz altsetting and that's why it causes some noise Signed-off-by: Daehwan Jung --- sound/usb/format.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/usb/format.c b/sound/usb/format.c index 2287f8c..eb216fe 100644 --- a/sound/usb/format.c +++ b/sound/usb/format.c @@ -223,9 +223,11 @@ static int parse_audio_format_rates_v1(struct snd_usb_audio *chip, struct audiof continue; /* C-Media CM6501 mislabels its 96 kHz altsetting */ /* Terratec Aureon 7.1 USB C-Media 6206, too */ + /* Ozone Z90 USB C-Media, too */ if (rate == 48000 && nr_rates == 1 && (chip->usb_id == USB_ID(0x0d8c, 0x0201) || chip->usb_id == USB_ID(0x0d8c, 0x0102) || + chip->usb_id == USB_ID(0x0d8c, 0x0078) || chip->usb_id == USB_ID(0x0ccd, 0x00b1)) && fp->altsetting == 5 && fp->maxpacksize == 392) rate = 96000; -- 2.7.4