]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: snd-usb: add support for bit-reversed byte formats
authorDaniel Mack <zonque@gmail.com>
Tue, 16 Apr 2013 16:01:39 +0000 (00:01 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Apr 2013 08:03:47 +0000 (10:03 +0200)
commit02ab8b24c79a657d7164f51335f31e80721dff5f
treeef2b5642e14bcbb8fe082e1e60c83975556ac1aa
parent73dc093738b8a965a0b074d4fcbaa72f7d5bd35a
ALSA: snd-usb: add support for bit-reversed byte formats

There is quite some confusion around the bit-ordering in DSD samples,
and no general agreement that defines whether hardware is supposed to
expect the oldest sample in the MSB or the LSB of a byte.

ALSA will hence set the rule that on the software API layer, bytes
always carry the oldest bit in the most significant bit of a byte, and
the driver has to translate that at runtime in order to match the
hardware layout.

This patch adds support for this by adding a boolean flag to the
audio format struct.

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