Server IP : 13.213.54.232 / Your IP : 216.73.216.72 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ip-172-31-17-110 6.8.0-1029-aws #31~22.04.1-Ubuntu SMP Thu Apr 24 21:16:18 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 7.1.33-67+ubuntu22.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/modules/6.8.0-1031-aws/build/include/sound/ |
Upload File : |
// SPDX-License-Identifier: GPL-2.0-or-later #ifndef __SOUND_UMP_CONVERT_H #define __SOUND_UMP_CONVERT_H #include <sound/ump_msg.h> /* context for converting from legacy control messages to UMP packet */ struct ump_cvt_to_ump_bank { bool rpn_set; bool nrpn_set; bool bank_set; unsigned char cc_rpn_msb, cc_rpn_lsb; unsigned char cc_nrpn_msb, cc_nrpn_lsb; unsigned char cc_data_msb, cc_data_lsb; unsigned char cc_bank_msb, cc_bank_lsb; bool cc_data_msb_set, cc_data_lsb_set; }; /* context for converting from MIDI1 byte stream to UMP packet */ struct ump_cvt_to_ump { /* MIDI1 intermediate buffer */ unsigned char buf[4]; int len; int cmd_bytes; /* UMP output packet */ u32 ump[4]; int ump_bytes; /* various status */ unsigned int in_sysex; struct ump_cvt_to_ump_bank bank[16]; /* per channel */ }; int snd_ump_convert_from_ump(const u32 *data, unsigned char *dst, unsigned char *group_ret); void snd_ump_convert_to_ump(struct ump_cvt_to_ump *cvt, unsigned char group, unsigned int protocol, unsigned char c); /* reset the converter context, called at each open to ump */ static inline void snd_ump_convert_reset(struct ump_cvt_to_ump *ctx) { memset(ctx, 0, sizeof(*ctx)); } #endif /* __SOUND_UMP_CONVERT_H */