aboutsummaryrefslogtreecommitdiff
path: root/include/sound
diff options
context:
space:
mode:
authorTakashi Iwai2023-06-21 13:02:39 +0200
committerTakashi Iwai2023-06-21 13:06:18 +0200
commita79807683781d3f215e9d958494e52ed70f4ad27 (patch)
treee1f07631b8f1157b2b98ec6363856def7d32ef83 /include/sound
parentfebdfa0e9c8a5d3a3d895245d1c294c26787daef (diff)
ALSA: ump: Add helper to change MIDI protocol
This is a preliminary patch for MIDI 2.0 USB gadget driver. Export a new helper to allow changing the current MIDI protocol from the outside. Link: https://lore.kernel.org/r/20230621110241.4751-2-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/ump.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/ump.h b/include/sound/ump.h
index 68478e7be3b4..3c7e67475676 100644
--- a/include/sound/ump.h
+++ b/include/sound/ump.h
@@ -108,6 +108,8 @@ static inline int snd_ump_attach_legacy_rawmidi(struct snd_ump_endpoint *ump,
}
#endif
+int snd_ump_switch_protocol(struct snd_ump_endpoint *ump, unsigned int protocol);
+
/*
* Some definitions for UMP
*/