#include <linux/module.h>
#include <linux/export.h>
#include <sound/core.h>
#include <sound/asound.h>
#include <sound/ump.h>
#include <sound/ump_convert.h>
static u8 downscale_32_to_7bit(u32 src)
{ … }
static u16 downscale_32_to_14bit(u32 src)
{ … }
static u8 downscale_16_to_7bit(u16 src)
{ … }
static u16 upscale_7_to_16bit(u8 src)
{ … }
static u32 upscale_7_to_32bit(u8 src)
{ … }
static u32 upscale_14_to_32bit(u16 src)
{ … }
static int cvt_ump_system_to_legacy(u32 data, unsigned char *buf)
{ … }
static int cvt_ump_midi1_to_legacy(u32 data, unsigned char *buf)
{ … }
static int cvt_ump_midi2_to_legacy(const union snd_ump_midi2_msg *midi2,
unsigned char *buf)
{ … }
static int cvt_ump_sysex7_to_legacy(const u32 *data, unsigned char *buf)
{ … }
int snd_ump_convert_from_ump(const u32 *data,
unsigned char *buf,
unsigned char *group_ret)
{ … }
EXPORT_SYMBOL_GPL(…);
static int cvt_legacy_sysex_to_ump(struct ump_cvt_to_ump *cvt,
unsigned char group, u32 *data, bool finish)
{ … }
static int cvt_legacy_system_to_ump(struct ump_cvt_to_ump *cvt,
unsigned char group, u32 *data)
{ … }
static void reset_rpn(struct ump_cvt_to_ump_bank *cc)
{ … }
static int fill_rpn(struct ump_cvt_to_ump_bank *cc,
union snd_ump_midi2_msg *midi2,
bool flush)
{ … }
static int cvt_legacy_cmd_to_ump(struct ump_cvt_to_ump *cvt,
unsigned char group,
unsigned int protocol,
u32 *data, unsigned char bytes)
{ … }
static int do_convert_to_ump(struct ump_cvt_to_ump *cvt, unsigned char group,
unsigned int protocol, unsigned char c, u32 *data)
{ … }
void snd_ump_convert_to_ump(struct ump_cvt_to_ump *cvt, unsigned char group,
unsigned int protocol, unsigned char c)
{ … }
EXPORT_SYMBOL_GPL(…);