2021-06-16 09:50:59

by Jung Daehwan

[permalink] [raw]
Subject: ALSA: usb-audio: fix rate on Ozone Z90 USB headset

It mislabels its 96 kHz altsetting and that's why it causes some noise

Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Daehwan Jung <[email protected]>
---
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


2021-06-16 10:34:07

by Greg KH

[permalink] [raw]
Subject: Re: ALSA: usb-audio: fix rate on Ozone Z90 USB headset

On Wed, Jun 16, 2021 at 06:34:55PM +0900, Daehwan Jung wrote:
> It mislabels its 96 kHz altsetting and that's why it causes some noise
>
> Cc: Greg Kroah-Hartman <[email protected]>

I don't care about this. But the stable tree probably does, please
read:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.

thanks,

greg k-h

2021-06-17 11:00:13

by Takashi Iwai

[permalink] [raw]
Subject: Re: ALSA: usb-audio: fix rate on Ozone Z90 USB headset

On Wed, 16 Jun 2021 11:34:55 +0200,
Daehwan Jung wrote:
>
> It mislabels its 96 kHz altsetting and that's why it causes some noise
>
> Cc: Greg Kroah-Hartman <[email protected]>
> Signed-off-by: Daehwan Jung <[email protected]>

Applied now. Thanks.


Takashi