From: Abhinav Mahadevan <abhi220204@gmail.com>
To: tiwai@suse.com
Cc: perex@perex.cz, linux-sound@vger.kernel.org,
linux-kernel@vger.kernel.org,
Abhinav Mahadevan <abhi220204@gmail.com>
Subject: [PATCH] ALSA: usb-audio: Add quirk for PreSonus AudioBox USB
Date: Fri, 10 Apr 2026 20:03:35 +0530 [thread overview]
Message-ID: <20260410143335.5974-1-abhi220204@gmail.com> (raw)
The PreSonus AudioBox USB (0x194f:0x0301) only supports S24_3LE
format for both playback and capture. It does not support S16_LE
despite being a USB full-speed device. Add explicit format quirks
for both the playback (interface 2) and capture (interface 3)
interfaces to ensure correct format negotiation.
Signed-off-by: Abhinav Mahadevan <abhi220204@gmail.com>
---
sound/usb/quirks-table.h | 48 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h
index b6dfe3b63..803e03d4d 100644
--- a/sound/usb/quirks-table.h
+++ b/sound/usb/quirks-table.h
@@ -2652,6 +2652,54 @@ YAMAHA_DEVICE(0x7010, "UB99"),
}
}
},
+{
+ /*
+ * The AudioBox USB advertises S24_3LE as the only supported format
+ * for both playback and capture. It does not support S16_LE despite
+ * being a USB full-speed device.
+ */
+ USB_DEVICE(0x194f, 0x0301),
+ QUIRK_DRIVER_INFO {
+ .vendor_name = "PreSonus",
+ .product_name = "AudioBox USB",
+ QUIRK_DATA_COMPOSITE {
+ { QUIRK_DATA_IGNORE(0) },
+ {
+ QUIRK_DATA_AUDIOFORMAT(2) {
+ .formats = SNDRV_PCM_FMTBIT_S24_3LE,
+ .channels = 2,
+ .iface = 2,
+ .altsetting = 1,
+ .altset_idx = 1,
+ .attributes = 0,
+ .endpoint = 0x01,
+ .ep_attr = USB_ENDPOINT_XFER_ISOC,
+ .rates = SNDRV_PCM_RATE_44100 |
+ SNDRV_PCM_RATE_48000,
+ .rate_min = 44100,
+ .rate_max = 48000,
+ }
+ },
+ {
+ QUIRK_DATA_AUDIOFORMAT(3) {
+ .formats = SNDRV_PCM_FMTBIT_S24_3LE,
+ .channels = 2,
+ .iface = 3,
+ .altsetting = 1,
+ .altset_idx = 1,
+ .attributes = 0,
+ .endpoint = 0x82,
+ .ep_attr = USB_ENDPOINT_XFER_ISOC,
+ .rates = SNDRV_PCM_RATE_44100 |
+ SNDRV_PCM_RATE_48000,
+ .rate_min = 44100,
+ .rate_max = 48000,
+ }
+ },
+ QUIRK_COMPOSITE_END
+ }
+ }
+},
#endif /* disabled */
{
--
2.43.0
next reply other threads:[~2026-04-10 14:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-10 14:33 Abhinav Mahadevan [this message]
2026-04-10 15:06 ` [PATCH] ALSA: usb-audio: Add quirk for PreSonus AudioBox USB Takashi Iwai
2026-04-28 0:51 ` [PATCH v2] " Abhinav Mahadevan
2026-04-28 6:04 ` Takashi Iwai
2026-04-28 14:33 ` [PATCH v3] " Abhinav Mahadevan
2026-04-28 14:44 ` Takashi Iwai
2026-04-28 15:50 ` [PATCH v4] ALSA: usb-audio: Fix quirk entry placement " Abhinav Mahadevan
2026-04-29 5:48 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260410143335.5974-1-abhi220204@gmail.com \
--to=abhi220204@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.