@@ -30,22 +30,25 @@ MODULE_DESCRIPTION("Advanced Linux Sound Architecture sequencer MIDI emulation."
3030MODULE_LICENSE ("GPL" );
3131
3232/* Prototypes for static functions */
33- static void note_off (struct snd_midi_op * ops , void * drv ,
33+ static void note_off (const struct snd_midi_op * ops , void * drv ,
3434 struct snd_midi_channel * chan ,
3535 int note , int vel );
36- static void do_control (struct snd_midi_op * ops , void * private ,
36+ static void do_control (const struct snd_midi_op * ops , void * private ,
3737 struct snd_midi_channel_set * chset ,
3838 struct snd_midi_channel * chan ,
3939 int control , int value );
40- static void rpn (struct snd_midi_op * ops , void * drv , struct snd_midi_channel * chan ,
40+ static void rpn (const struct snd_midi_op * ops , void * drv ,
41+ struct snd_midi_channel * chan ,
4142 struct snd_midi_channel_set * chset );
42- static void nrpn (struct snd_midi_op * ops , void * drv , struct snd_midi_channel * chan ,
43+ static void nrpn (const struct snd_midi_op * ops , void * drv ,
44+ struct snd_midi_channel * chan ,
4345 struct snd_midi_channel_set * chset );
44- static void sysex (struct snd_midi_op * ops , void * private , unsigned char * sysex ,
46+ static void sysex (const struct snd_midi_op * ops , void * private ,
47+ unsigned char * sysex ,
4548 int len , struct snd_midi_channel_set * chset );
46- static void all_sounds_off (struct snd_midi_op * ops , void * private ,
49+ static void all_sounds_off (const struct snd_midi_op * ops , void * private ,
4750 struct snd_midi_channel * chan );
48- static void all_notes_off (struct snd_midi_op * ops , void * private ,
51+ static void all_notes_off (const struct snd_midi_op * ops , void * private ,
4952 struct snd_midi_channel * chan );
5053static void snd_midi_reset_controllers (struct snd_midi_channel * chan );
5154static void reset_all_channels (struct snd_midi_channel_set * chset );
@@ -66,7 +69,7 @@ static void reset_all_channels(struct snd_midi_channel_set *chset);
6669 * be interpreted.
6770 */
6871void
69- snd_midi_process_event (struct snd_midi_op * ops ,
72+ snd_midi_process_event (const struct snd_midi_op * ops ,
7073 struct snd_seq_event * ev ,
7174 struct snd_midi_channel_set * chanset )
7275{
@@ -229,7 +232,8 @@ EXPORT_SYMBOL(snd_midi_process_event);
229232 * release note
230233 */
231234static void
232- note_off (struct snd_midi_op * ops , void * drv , struct snd_midi_channel * chan ,
235+ note_off (const struct snd_midi_op * ops , void * drv ,
236+ struct snd_midi_channel * chan ,
233237 int note , int vel )
234238{
235239 if (chan -> gm_hold ) {
@@ -251,7 +255,8 @@ note_off(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan,
251255 * events that need to take place immediately to the driver.
252256 */
253257static void
254- do_control (struct snd_midi_op * ops , void * drv , struct snd_midi_channel_set * chset ,
258+ do_control (const struct snd_midi_op * ops , void * drv ,
259+ struct snd_midi_channel_set * chset ,
255260 struct snd_midi_channel * chan , int control , int value )
256261{
257262 int i ;
@@ -402,7 +407,7 @@ EXPORT_SYMBOL(snd_midi_channel_set_clear);
402407 * Process a rpn message.
403408 */
404409static void
405- rpn (struct snd_midi_op * ops , void * drv , struct snd_midi_channel * chan ,
410+ rpn (const struct snd_midi_op * ops , void * drv , struct snd_midi_channel * chan ,
406411 struct snd_midi_channel_set * chset )
407412{
408413 int type ;
@@ -442,7 +447,7 @@ rpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan,
442447 * Process an nrpn message.
443448 */
444449static void
445- nrpn (struct snd_midi_op * ops , void * drv , struct snd_midi_channel * chan ,
450+ nrpn (const struct snd_midi_op * ops , void * drv , struct snd_midi_channel * chan ,
446451 struct snd_midi_channel_set * chset )
447452{
448453 /* parse XG NRPNs here if possible */
@@ -470,7 +475,7 @@ get_channel(unsigned char cmd)
470475 * Process a sysex message.
471476 */
472477static void
473- sysex (struct snd_midi_op * ops , void * private , unsigned char * buf , int len ,
478+ sysex (const struct snd_midi_op * ops , void * private , unsigned char * buf , int len ,
474479 struct snd_midi_channel_set * chset )
475480{
476481 /* GM on */
@@ -584,7 +589,8 @@ sysex(struct snd_midi_op *ops, void *private, unsigned char *buf, int len,
584589 * all sound off
585590 */
586591static void
587- all_sounds_off (struct snd_midi_op * ops , void * drv , struct snd_midi_channel * chan )
592+ all_sounds_off (const struct snd_midi_op * ops , void * drv ,
593+ struct snd_midi_channel * chan )
588594{
589595 int n ;
590596
@@ -602,7 +608,8 @@ all_sounds_off(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan
602608 * all notes off
603609 */
604610static void
605- all_notes_off (struct snd_midi_op * ops , void * drv , struct snd_midi_channel * chan )
611+ all_notes_off (const struct snd_midi_op * ops , void * drv ,
612+ struct snd_midi_channel * chan )
606613{
607614 int n ;
608615
0 commit comments