summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2023-06-12 10:10:52 +0200
committerTakashi Iwai <tiwai@suse.de>2023-06-12 18:22:33 +0200
commit6a8b4800ae54e9ceb8d017bcfb61d04ff0da90f2 (patch)
tree3c40c2c483e656616d8f93167b1384fc4a714411 /include/sound
parentALSA: seq: ump: Notify port changes to system port (diff)
downloadlinux-6a8b4800ae54e9ceb8d017bcfb61d04ff0da90f2.tar.xz
linux-6a8b4800ae54e9ceb8d017bcfb61d04ff0da90f2.zip
ALSA: seq: ump: Notify UMP protocol change to sequencer
UMP v1.1 supports the protocol switch via a UMP Stream message. When it's received, we need to take care of the midi_version field in the corresponding sequencer client, too. This patch introduces a new ops to notify the protocol change to snd_seq_ump_ops for handling it. Link: https://lore.kernel.org/r/20230612081054.17200-9-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/ump.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/ump.h b/include/sound/ump.h
index 0e9c048346fa..68478e7be3b4 100644
--- a/include/sound/ump.h
+++ b/include/sound/ump.h
@@ -72,6 +72,7 @@ struct snd_seq_ump_ops {
const u32 *data, int words);
int (*notify_fb_change)(struct snd_ump_endpoint *ump,
struct snd_ump_block *fb);
+ int (*switch_protocol)(struct snd_ump_endpoint *ump);
};
struct snd_ump_block {