Lines Matching refs:protocol
522 snd_iprintf(buffer, "Protocol: 0x%08x\n", ump->info.protocol); in snd_ump_proc_read()
690 if (ump->info.protocol & SNDRV_UMP_EP_INFO_PROTO_MIDI_MASK) in choose_default_protocol()
693 ump->info.protocol |= SNDRV_UMP_EP_INFO_PROTO_MIDI2; in choose_default_protocol()
695 ump->info.protocol |= SNDRV_UMP_EP_INFO_PROTO_MIDI1; in choose_default_protocol()
723 ump->info.protocol_caps = (buf->ep_info.protocol << 8) | in ump_handle_ep_info_msg()
729 ump->info.protocol &= ump->info.protocol_caps; in ump_handle_ep_info_msg()
812 int snd_ump_switch_protocol(struct snd_ump_endpoint *ump, unsigned int protocol) in snd_ump_switch_protocol() argument
816 protocol &= ump->info.protocol_caps; in snd_ump_switch_protocol()
817 if (protocol == ump->info.protocol) in snd_ump_switch_protocol()
820 type = protocol & SNDRV_UMP_EP_INFO_PROTO_MIDI_MASK; in snd_ump_switch_protocol()
825 ump->info.protocol = protocol; in snd_ump_switch_protocol()
827 protocol, ump->info.protocol_caps); in snd_ump_switch_protocol()
837 unsigned int protocol = in ump_handle_stream_cfg_msg() local
838 (buf->stream_cfg.protocol << 8) | buf->stream_cfg.jrts; in ump_handle_stream_cfg_msg()
840 snd_ump_switch_protocol(ump, protocol); in ump_handle_stream_cfg_msg()
1237 unsigned int protocol; in process_legacy_output() local
1250 protocol = ump->info.protocol; in process_legacy_output()
1251 if ((protocol & SNDRV_UMP_EP_INFO_PROTO_MIDI2) && in process_legacy_output()
1253 protocol = SNDRV_UMP_EP_INFO_PROTO_MIDI1; in process_legacy_output()
1256 snd_ump_convert_to_ump(ctx, group, protocol, c); in process_legacy_output()