Skip to content

ALSA: snd-usb: add support for DSD

Daniel Mack alsa-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 7 repliesIn review
  2. v12 patches 6 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ALSA: add DSD formatsinclude/sound/pcm.h include/uapi/sound/asound.h sound/core/pcm.c +1 more+15 -10 replies
2/5ALSA: snd-usb: use ep->stride from urb callbackssound/usb/pcm.c+7 -70 replies
3/5ALSA: snd-usb: add support for DSD DOP stream transportsound/usb/card.h sound/usb/endpoint.c sound/usb/pcm.c+92 -110 replies
4/5ALSA: snd-usb: add support for bit-reversed byte formatssound/usb/card.h sound/usb/pcm.c+19 -10 replies
5/5ALSA: snd-usb: add quirks handler for DSD streamssound/usb/format.c sound/usb/quirks.c sound/usb/quirks.h+35 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/5] ALSA: snd-usb: add support for DSD

In contrast to the first two approaches, this one keeps the userspace unaware of the actual transport on the bus.

More specifically, the DSD_U16_LE format may be implemented to actually send DOP samples to the device, depending on the quirks entries.

Also, as there is quite some confusion in both data file formats as well as hardware sample formats about whether to stuff the oldest bit in the MSB or the LSB of a byte, ALSA defines that now to be in the MSB, as far as the ALSA userspace layer is concerned. The driver learned functions to re-encode the bytes according to what the hardware supports.

I also wrote a very basic test tool which I published here:

https://github.com/zonque/alsa-dsd-player

Thanks,
Daniel

Daniel Mack (5):
ALSA: add DSD formats
ALSA: snd-usb: use ep->stride from urb callbacks
ALSA: snd-usb: add support for DSD DOP stream transport
ALSA: snd-usb: add support for bit-reversed byte formats
ALSA: snd-usb: add quirks handler for DSD streams

 include/sound/pcm.h         |    2 +
 include/uapi/sound/asound.h |    4 +-
 sound/core/pcm.c            |    2 +
 sound/core/pcm_misc.c       |    8 +++
 sound/usb/card.h            |    8 +++
 sound/usb/endpoint.c        |    9 ++++
 sound/usb/format.c          |    3 ++
 sound/usb/pcm.c             |  118 ++++++++++++++++++++++++++++++++++++-------
 sound/usb/quirks.c          |   28 ++++++++++
 sound/usb/quirks.h          |    4 ++
 10 files changed, 167 insertions(+), 19 deletions(-)
Signature · 1 line
1.7.10.4