lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230531125148.892100-1-joakim.tjernlund@infinera.com>
Date:   Wed, 31 May 2023 14:51:48 +0200
From:   Joakim Tjernlund <joakim.tjernlund@...inera.com>
To:     <linux-kernel@...r.kernel.org>, Jaroslav Kysela <perex@...ex.cz>,
        Takashi Iwai <tiwai@...e.com>
CC:     Joakim Tjernlund <joakim.tjernlund@...inera.com>,
        <stable@...r.kernel.org>
Subject: [PATCH] ALSA: usb-audio: Logitech P710e: Add quirk to fix setting sample rate.

P710e, will throw an "cannot set freq 48000 to ep 0x3" error, no
matter adding mdelays around setting sample rate.

Only way to avoid it I can find is to avoid setting it at all.

Signed-off-by: Joakim Tjernlund <joakim.tjernlund@...inera.com>
Cc: stable@...r.kernel.org
---

 I also tried QUIRK_FLAG_FIXED_RATE quirk but that didnt have any effect.
 sound/usb/quirks.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index 3ecd1ba7fd4b..8277bfd3deec 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -1952,7 +1952,8 @@ void snd_usb_audioformat_attributes_quirk(struct snd_usb_audio *chip,
 {
 	switch (chip->usb_id) {
 	case USB_ID(0x0a92, 0x0053): /* AudioTrak Optoplay */
-		/* Optoplay sets the sample rate attribute although
+	case USB_ID(0x046d, 0x0a4e): /* Logitech P710e */
+		/* Optoplay/P710e sets the sample rate attribute although
 		 * it seems not supporting it in fact.
 		 */
 		fp->attributes &= ~UAC_EP_CS_ATTR_SAMPLE_RATE;
-- 
2.39.3

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ