summaryrefslogtreecommitdiffstats
path: root/sound/usb/card.h
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2013-04-17 00:01:39 +0800
committerTakashi Iwai <tiwai@suse.de>2013-04-18 10:03:47 +0200
commit44dcbbb1cd615634c09d1bf31c124332795903a8 (patch)
treeef2b5642e14bcbb8fe082e1e60c83975556ac1aa /sound/usb/card.h
parentd24f5061ee7b9b58a7e97f3c2a72f0a9b115e7e0 (diff)
downloadlinux-stable-44dcbbb1cd615634c09d1bf31c124332795903a8.tar.gz
linux-stable-44dcbbb1cd615634c09d1bf31c124332795903a8.tar.bz2
linux-stable-44dcbbb1cd615634c09d1bf31c124332795903a8.zip
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>
Diffstat (limited to 'sound/usb/card.h')
-rw-r--r--sound/usb/card.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/usb/card.h b/sound/usb/card.h
index ac55477ce6dd..bf2889a2cae5 100644
--- a/sound/usb/card.h
+++ b/sound/usb/card.h
@@ -29,6 +29,7 @@ struct audioformat {
unsigned char clock; /* associated clock */
struct snd_pcm_chmap_elem *chmap; /* (optional) channel map */
bool dsd_dop; /* add DOP headers in case of DSD samples */
+ bool dsd_bitrev; /* reverse the bits of each DSD sample */
};
struct snd_usb_substream;