mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
pcm: Fix DSD sample format endianess and add big-endian format
This patch adds big-endian DSD sample format and fixes return value of DSD formats for snd_pcm_format_little_endian(). Signed-off-by: Jussi Laako <jussi@sonarnerd.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
984db83aa1
commit
b14c49ab3d
4 changed files with 26 additions and 5 deletions
|
|
@ -213,7 +213,11 @@ typedef enum _snd_pcm_format {
|
|||
SND_PCM_FORMAT_DSD_U16_LE,
|
||||
/* Direct Stream Digital (DSD) in 4-byte samples (x32) */
|
||||
SND_PCM_FORMAT_DSD_U32_LE,
|
||||
SND_PCM_FORMAT_LAST = SND_PCM_FORMAT_DSD_U32_LE,
|
||||
/* Direct Stream Digital (DSD) in 2-byte samples (x16) */
|
||||
SND_PCM_FORMAT_DSD_U16_BE,
|
||||
/* Direct Stream Digital (DSD) in 4-byte samples (x32) */
|
||||
SND_PCM_FORMAT_DSD_U32_BE,
|
||||
SND_PCM_FORMAT_LAST = SND_PCM_FORMAT_DSD_U32_BE,
|
||||
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
/** Signed 16 bit CPU endian */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue