Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH] ALSA: usb-audio: Add native DSD quirk for HiBy FC4
@ 2026-09-21  2:43 Achilles Zhang
  2026-09-28 11:14 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Achilles Zhang @ 2026-09-21  2:43 UTC (permalink / raw)
  To: Takashi Iwai, Jaroslav Kysela; +Cc: linux-sound, Achilles Zhang

The HiBy FC4 with USB ID 32bb:0004 advertises its native DSD
stream as UAC2 RAW_DATA with a 4-byte, 32-bit subslot. Without a
quirk snd-usb-audio leaves this alternate setting as
SNDRV_PCM_FORMAT_SPECIAL, so userspace cannot select a native DSD
format.

Mark the device with QUIRK_FLAG_DSD_RAW so the existing generic raw
DSD handling exposes the stream as DSD_U32_BE.

Tested on an FC4 at DSD256. With the quirk the playback alternate
setting changes from SPECIAL to DSD_U32_BE and reports DOP=0,
bitrev=0; native DSD256 playback works correctly.

Signed-off-by: Achilles Zhang <bnqzzdf@gmail.com>
---
 sound/usb/quirks.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index c587090..924d930 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -2542,6 +2542,8 @@ static const struct usb_audio_quirk_flags_table quirk_flags_table[] = {
 		   QUIRK_FLAG_IGNORE_CTL_ERROR),
 	DEVICE_FLG(0x3255, 0x0000, /* Luxman D-10X */
 		   QUIRK_FLAG_ITF_USB_DSD_DAC | QUIRK_FLAG_CTL_MSG_DELAY),
+	DEVICE_FLG(0x32bb, 0x0004, /* HiBy FC4 */
+		   QUIRK_FLAG_DSD_RAW),
 	DEVICE_FLG(0x3302, 0x17c2, /* TTGK Technology USB-C Audio */
 		   QUIRK_FLAG_FORCE_IFACE_RESET | QUIRK_FLAG_IFACE_DELAY),
 	DEVICE_FLG(0x339b, 0x3a07, /* Synaptics HONOR USB-C HEADSET */
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ALSA: usb-audio: Add native DSD quirk for HiBy FC4
  2026-09-21  2:43 [PATCH] ALSA: usb-audio: Add native DSD quirk for HiBy FC4 Achilles Zhang
@ 2026-09-28 11:14 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2026-09-28 11:14 UTC (permalink / raw)
  To: Achilles Zhang; +Cc: Takashi Iwai, Jaroslav Kysela, linux-sound

On Mon, 21 Sep 2026 04:43:43 +0200,
Achilles Zhang wrote:
> 
> The HiBy FC4 with USB ID 32bb:0004 advertises its native DSD
> stream as UAC2 RAW_DATA with a 4-byte, 32-bit subslot. Without a
> quirk snd-usb-audio leaves this alternate setting as
> SNDRV_PCM_FORMAT_SPECIAL, so userspace cannot select a native DSD
> format.
> 
> Mark the device with QUIRK_FLAG_DSD_RAW so the existing generic raw
> DSD handling exposes the stream as DSD_U32_BE.
> 
> Tested on an FC4 at DSD256. With the quirk the playback alternate
> setting changes from SPECIAL to DSD_U32_BE and reports DOP=0,
> bitrev=0; native DSD256 playback works correctly.
> 
> Signed-off-by: Achilles Zhang <bnqzzdf@gmail.com>

Applied now.  Thanks.


Takashi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-28 11:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-21  2:43 [PATCH] ALSA: usb-audio: Add native DSD quirk for HiBy FC4 Achilles Zhang
2026-09-28 11:14 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox