ALSA: ump: Export MIDI1 / UMP conversion helpers
authorTakashi Iwai <tiwai@suse.de>
Fri, 23 Jun 2023 07:55:30 +0000 (09:55 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 23 Jun 2023 07:56:11 +0000 (09:56 +0200)
commit33cd7630782df2230529c3e8f1a6d0ae9cd6ab49
tree5bc63f156a3e2d83cec8c1b3d9991052e810371b
parent4dce2f076b7d0a0a99867b58eea7c212ff4e2be5
ALSA: ump: Export MIDI1 / UMP conversion helpers

Yet more preliminary work for the upcoming USB gadget support.

Now export the helpers to convert between legacy MIDI1 and UMP data
for handling the MIDI 1.0 USB interface.  The header file is moved to
include/sound.

The API functions are slightly changed, so that they can be used
without the direct access to snd_ump object.  The allocation is done
in ump.c itself as it's a simple kcalloc().

Link: https://lore.kernel.org/r/20230623075530.10976-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/ump_convert.h [moved from sound/core/ump_convert.h with 60% similarity]
sound/core/ump.c
sound/core/ump_convert.c