summaryrefslogtreecommitdiff
path: root/include/sound/seq_midi_emul.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-01-03 09:16:45 +0100
committerTakashi Iwai <tiwai@suse.de>2020-01-03 09:24:19 +0100
commitaad7ebb544072bcb9335fa4eb0fbd1b85a6c495b (patch)
tree313468de9b1e0fdaaa0760a1ba4e578070cce857 /include/sound/seq_midi_emul.h
parentd25ff26840bd0af3283d8e478669abc104bb873a (diff)
ALSA: seq: Constify struct snd_midi_op
Change the argument of snd_midi_process_event() to receive a const snd_midi_op pointer and its callers respectively. This allows further optimizations. There should be no functional changes by this patch. Link: https://lore.kernel.org/r/20200103081714.9560-30-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/seq_midi_emul.h')
-rw-r--r--include/sound/seq_midi_emul.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sound/seq_midi_emul.h b/include/sound/seq_midi_emul.h
index d6b74059b4b1..88799d1e1f53 100644
--- a/include/sound/seq_midi_emul.h
+++ b/include/sound/seq_midi_emul.h
@@ -174,7 +174,8 @@ enum {
};
/* Prototypes for midi_process.c */
-void snd_midi_process_event(struct snd_midi_op *ops, struct snd_seq_event *ev,
+void snd_midi_process_event(const struct snd_midi_op *ops,
+ struct snd_seq_event *ev,
struct snd_midi_channel_set *chanset);
void snd_midi_channel_set_clear(struct snd_midi_channel_set *chset);
struct snd_midi_channel_set *snd_midi_channel_alloc_set(int n);