mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
ump: Add helpers to parse / set UMP packet data
This patch defines the structs / unions that can be used for encoding and decoding UMP packets, as well as inline helper functions. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
81b0cf46d1
commit
040356ecf0
4 changed files with 575 additions and 1 deletions
|
|
@ -69,9 +69,11 @@
|
|||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
#define SND_LITTLE_ENDIAN
|
||||
#define SNDRV_LITTLE_ENDIAN
|
||||
#define SNDRV_LITTLE_ENDIAN_BITFIELD
|
||||
#elif __BYTE_ORDER == __BIG_ENDIAN
|
||||
#define SND_BIG_ENDIAN
|
||||
#define SNDRV_BIG_ENDIAN
|
||||
#define SNDRV_BIG_ENDIAN_BITFIELD
|
||||
#else
|
||||
#error "Unsupported endian..."
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue