summaryrefslogtreecommitdiffstats
path: root/include/sound/ump.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2023-06-21 13:02:39 +0200
committerTakashi Iwai <tiwai@suse.de>2023-06-21 13:06:18 +0200
commita79807683781d3f215e9d958494e52ed70f4ad27 (patch)
treee1f07631b8f1157b2b98ec6363856def7d32ef83 /include/sound/ump.h
parentfebdfa0e9c8a5d3a3d895245d1c294c26787daef (diff)
downloadlinux-a79807683781d3f215e9d958494e52ed70f4ad27.tar.gz
linux-a79807683781d3f215e9d958494e52ed70f4ad27.tar.bz2
linux-a79807683781d3f215e9d958494e52ed70f4ad27.zip
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/ump.h')
-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
*/