/linux/sound/core/ |
H A D | ump.c | 16 #define ump_err(ump, fmt, args...) dev_err((ump)->core.dev, fmt, ##args) argument 17 #define ump_warn(ump, fmt, args...) dev_warn((ump)->core.dev, fmt, ##args) argument 18 #define ump_info(ump, fmt, args...) dev_info((ump)->core.dev, fmt, ##args) argument 19 #define ump_dbg(ump, fmt, args...) dev_dbg((ump)->core.dev, fmt, ##args) argument 33 static void ump_handle_stream_msg(struct snd_ump_endpoint *ump, 36 static int process_legacy_output(struct snd_ump_endpoint *ump, 38 static void process_legacy_input(struct snd_ump_endpoint *ump, const u32 *src, 41 static inline int process_legacy_output(struct snd_ump_endpoint *ump, in process_legacy_output() argument 46 static inline void process_legacy_input(struct snd_ump_endpoint *ump, in process_legacy_input() argument 74 struct snd_ump_endpoint *ump = rawmidi_to_ump(rmidi); in snd_ump_endpoint_free() local [all …]
|
H A D | Makefile | 31 snd-ump-y := ump.o 32 snd-ump-$(CONFIG_SND_UMP_LEGACY_RAWMIDI) += ump_convert.o 49 obj-$(CONFIG_SND_UMP) += snd-ump.o
|
H A D | ump_convert.c | 526 cvt->ump_bytes = do_convert_to_ump(cvt, group, protocol, c, cvt->ump); in snd_ump_convert_to_ump()
|
/linux/sound/core/seq/ |
H A D | seq_ump_client.c | 37 struct snd_ump_endpoint *ump; /* assigned endpoint */ member 60 static void seq_ump_input_receive(struct snd_ump_endpoint *ump, in seq_ump_input_receive() argument 63 struct seq_ump_client *client = ump->seq_client; in seq_ump_input_receive() 75 memcpy(ev.ump, val, words << 2); in seq_ump_input_receive() 97 type = ump_message_type(ump_ev->ump[0]); in seq_ump_process_event() 108 struct snd_ump_endpoint *ump = client->ump; in seq_ump_client_open() local 111 guard(mutex)(&ump->open_mutex); in seq_ump_client_open() 113 err = snd_rawmidi_kernel_open(&ump->core, 0, in seq_ump_client_open() 127 struct snd_ump_endpoint *ump = client->ump; in seq_ump_client_close() local 129 guard(mutex)(&ump->open_mutex); in seq_ump_client_close() [all …]
|
H A D | seq_dummy.c | 62 static int ump; variable 63 module_param(ump, int, 0444); 64 MODULE_PARM_DESC(ump, "UMP conversion (0: no convert, 1: MIDI 1.0, 2: MIDI 2.0)"); 181 switch (ump) { in register_client()
|
H A D | seq_ump_convert.c | 369 const union snd_ump_midi1_msg *midi1 = (const union snd_ump_midi1_msg *)event->ump; in cvt_ump_midi1_to_midi2() 370 union snd_ump_midi2_msg *midi2 = (union snd_ump_midi2_msg *)ev_cvt.ump; in cvt_ump_midi1_to_midi2() 374 memset(&ev_cvt.ump, 0, sizeof(ev_cvt.ump)); in cvt_ump_midi1_to_midi2() 439 union snd_ump_midi1_msg *midi1 = (union snd_ump_midi1_msg *)ev_cvt.ump; in cvt_ump_midi2_to_midi1() 440 const union snd_ump_midi2_msg *midi2 = (const union snd_ump_midi2_msg *)event->ump; in cvt_ump_midi2_to_midi1() 445 memset(&ev_cvt.ump, 0, sizeof(ev_cvt.ump)); in cvt_ump_midi2_to_midi1() 522 len = cvt_ump_system_to_event((union snd_ump_midi1_msg *)ump_ev->ump, in cvt_ump_to_any() 526 len = cvt_ump_midi1_to_event((union snd_ump_midi1_msg *)ump_ev->ump, in cvt_ump_to_any() 530 len = cvt_ump_midi2_to_event((union snd_ump_midi2_msg *)ump_ev->ump, in cvt_ump_to_any() 534 len = cvt_ump_sysex7_to_event(ump_ev->ump, sysex_buf, ev_cvt); in cvt_ump_to_any() [all …]
|
H A D | seq_memory.h | 18 struct snd_seq_ump_event ump; member 32 union __snd_seq_event ump; member
|
H A D | Makefile | 17 snd-seq-ump-client-y := seq_ump_client.o 24 obj-$(CONFIG_SND_SEQ_UMP_CLIENT) += snd-seq-ump-client.o
|
H A D | seq_memory.c | 365 memcpy(&cell->ump, event, size); in snd_seq_event_dup() 368 cell->ump.raw.extra = 0; in snd_seq_event_dup()
|
/linux/include/sound/ |
H A D | ump.h | 34 void (*private_free)(struct snd_ump_endpoint *ump); 76 int (*open)(struct snd_ump_endpoint *ump, int dir); 77 void (*close)(struct snd_ump_endpoint *ump, int dir); 78 void (*trigger)(struct snd_ump_endpoint *ump, int dir, int up); 79 void (*drain)(struct snd_ump_endpoint *ump, int dir); 84 void (*input_receive)(struct snd_ump_endpoint *ump, 86 int (*notify_fb_change)(struct snd_ump_endpoint *ump, 88 int (*switch_protocol)(struct snd_ump_endpoint *ump); 93 struct snd_ump_endpoint *ump; member 106 int snd_ump_parse_endpoint(struct snd_ump_endpoint *ump); [all …]
|
H A D | ump_convert.h | 27 u32 ump[4]; member
|
/linux/sound/usb/ |
H A D | midi2.c | 60 struct snd_ump_endpoint *ump; /* assigned UMP EP */ member 83 struct snd_ump_endpoint *ump; /* assigned UMP EP object */ member 142 count = snd_ump_transmit(ep->ump, urb->transfer_buffer, in prepare_output_urb() 204 snd_ump_receive(ep->ump, (u32 *)urb->transfer_buffer, len); in input_urb_complete() 336 ump_to_endpoint(struct snd_ump_endpoint *ump, int dir) in ump_to_endpoint() argument 338 struct snd_usb_midi2_ump *rmidi = ump->private_data; in ump_to_endpoint() 344 static int snd_usb_midi_v2_open(struct snd_ump_endpoint *ump, int dir) in snd_usb_midi_v2_open() argument 346 struct snd_usb_midi2_endpoint *ep = ump_to_endpoint(ump, dir); in snd_usb_midi_v2_open() 364 static void snd_usb_midi_v2_close(struct snd_ump_endpoint *ump, int dir) in snd_usb_midi_v2_close() argument 366 struct snd_usb_midi2_endpoint *ep = ump_to_endpoint(ump, dir); in snd_usb_midi_v2_close() [all …]
|
/linux/drivers/usb/gadget/function/ |
H A D | f_midi2.c | 78 struct snd_ump_endpoint *ump; /* assigned UMP EP */ member 638 snd_ump_switch_protocol(ep->ump, to_ump_protocol(ep->info.protocol)); in process_ump_stream_msg() 669 const u32 *in_buf = ep->ump->input_buf; in process_ump() 672 if (snd_ump_receive_ump_val(ep->ump, *data) <= 0) in process_ump() 704 snd_ump_receive(ep->ump, req->buf, req->actual & ~3); in f_midi2_ep_out_complete() 732 len = snd_ump_transmit(ep->ump, (u32 *)req->buf, in process_ump_transmit() 991 u32 ump; in process_midi1_transmit() local 1006 len = snd_ump_transmit(ep->ump, &ump, 4); in process_midi1_transmit() 1009 if (snd_ump_receive_ump_val(ep->ump, ump) <= 0) in process_midi1_transmit() 1011 size = snd_ump_convert_from_ump(ep->ump->input_buf, outbuf, in process_midi1_transmit() [all …]
|
/linux/include/uapi/sound/ |
H A D | asequencer.h | 297 unsigned int ump[4]; member
|