Skip to content

Commit

Permalink
ump: Add helpers to parse / set UMP packet data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tiwai committed Jun 6, 2023
1 parent 81b0cf4 commit 040356e
Show file tree
Hide file tree
Showing 4 changed files with 575 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ endif
endif

if BUILD_RAWMIDI
alsainclude_HEADERS += rawmidi.h ump.h
alsainclude_HEADERS += rawmidi.h ump.h ump_msg.h
endif

if BUILD_HWDEP
Expand Down
2 changes: 2 additions & 0 deletions include/local.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 040356e

Please sign in to comment.