You are not logged in.

#1 2025-05-10 00:18:50

zendradix
Member
Registered: 2020-11-17
Posts: 3

USB Audio Device Missing Quirk

I've got an Audioengine D1 that's misreporting the sample rate. The device should have QUIRK_FLAG_GET_SAMPLE_RATE applied, but it currently doesn't.

In the kernel, I see another Audioengine D1 device that does have QUIRK_FLAG_GET_SAMPLE_RATE, but it's under a different vendor & device ID. The one I have is 1101:0003.

$ lsusb | grep Audio
Bus 001 Device 002: ID 1101:0003 EasyPass Industrial Co., Ltd Audioengine D1

This isn't causing any significant issue other than the kernel continuously complaining in the syslog:

kernel: usb 1-2: current rate 8436480 is different from the runtime rate 48000

If anyone knows a way to stop these logs (without also disabling other kernel warning logs), I'd greatly appreciate it.

I can learn how to compile the kernel with that quirk applied, but is that really the best solution? Is such a change something that should be submitted upstream? If so, what's the process for that: ask an arch maintainer for help or do it myself?
I haven't contributed to open-source projects before, so I'm unfamiliar with all of this.

Offline

#2 2025-05-10 12:22:31

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 1,115
Website

Re: USB Audio Device Missing Quirk

Hey I have just compiled a kernel with the following patch applied:

diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index 9112313a9dbc0..93464277e1c5d 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -2336,6 +2336,8 @@ static const struct usb_audio_quirk_flags_table quirk_flags_table[] = {
 		   QUIRK_FLAG_IGNORE_CTL_ERROR),
 	DEVICE_FLG(0x2912, 0x30c8, /* Audioengine D1 */
 		   QUIRK_FLAG_GET_SAMPLE_RATE),
+	DEVICE_FLG(0x1101, 0x0003, /* Audioengine D1 */
+		   QUIRK_FLAG_GET_SAMPLE_RATE),
 	DEVICE_FLG(0x2b53, 0x0023, /* Fiero SC-01 (firmware v1.0.0 @ 48 kHz) */
 		   QUIRK_FLAG_GENERIC_IMPLICIT_FB),
 	DEVICE_FLG(0x2b53, 0x0024, /* Fiero SC-01 (firmware v1.0.0 @ 96 kHz) */

You can find the package here:

sudo pacman -U https://pkgbuild.com/\~gromit/linux-bisection-kernels/linux-6.14.6.arch1-1.1-x86_64.pkg.tar.zst

If you find it working I could send it to the upstream kernel for inclusion smile

If you also want some credit for it you can leave your name and email adress here and I can add a "Reported-by: " to the patch smile

Offline

#3 2025-05-10 20:14:27

zendradix
Member
Registered: 2020-11-17
Posts: 3

Re: USB Audio Device Missing Quirk

Yes, it's working. No more journal spam.

I think that quirk list is sorted by vendor ID and device ID. That entry might need to be moved.

Don't worry about credit- I'm just glad it's working now.

Thank you for taking the time to help me smile

Offline

#4 2025-05-12 20:38:10

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 1,115
Website

Re: USB Audio Device Missing Quirk

Now sent to the lists: https://lore.kernel.org/all/20250512-au … @heusel.eu

(it might take a moment until the link works)

Offline

Board footer

Powered by FluxBB