]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: snd-usb: add support for DSD DOP stream transport
authorDaniel Mack <zonque@gmail.com>
Tue, 16 Apr 2013 16:01:38 +0000 (00:01 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Apr 2013 08:03:32 +0000 (10:03 +0200)
commit73dc093738b8a965a0b074d4fcbaa72f7d5bd35a
treef394f2599adac67b13c31dce99e83c3948f6d452
parentd8fdc4199d15777dbbdb416ec47e697d47e42a75
ALSA: snd-usb: add support for DSD DOP stream transport

In order to provide a compatibility way for pushing DSD
samples through ordinary PCM channels, the "DoP open Standard" was
invented. See http://www.dsd-guide.com for the official document.

The host is required to stuff DSD marker bytes (0x05, 0xfa,
alternating) in the MSB of 24 bit wide samples on the bus, in addition
to the 16 bits of actual DSD sample payload.

To support this, the hardware and software stride logic in the driver
has to be tweaked a bit, as we make the userspace believe we're
operating on 16 bit samples, while we in fact push one more byte per
channel down to the hardware.

The DOP runtime information is stored in struct snd_usb_substream, so
we can keep track of our state across multiple calls to
prepare_playback_urb_dsd_dop().

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.h
sound/usb/endpoint.c
sound/usb/pcm.c