@@ -30,22 +30,25 @@ MODULE_DESCRIPTION("Advanced Linux Sound Architecture sequencer MIDI emulation."
30
30
MODULE_LICENSE ("GPL" );
31
31
32
32
/* 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 ,
34
34
struct snd_midi_channel * chan ,
35
35
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 ,
37
37
struct snd_midi_channel_set * chset ,
38
38
struct snd_midi_channel * chan ,
39
39
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 ,
41
42
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 ,
43
45
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 ,
45
48
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 ,
47
50
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 ,
49
52
struct snd_midi_channel * chan );
50
53
static void snd_midi_reset_controllers (struct snd_midi_channel * chan );
51
54
static 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);
66
69
* be interpreted.
67
70
*/
68
71
void
69
- snd_midi_process_event (struct snd_midi_op * ops ,
72
+ snd_midi_process_event (const struct snd_midi_op * ops ,
70
73
struct snd_seq_event * ev ,
71
74
struct snd_midi_channel_set * chanset )
72
75
{
@@ -229,7 +232,8 @@ EXPORT_SYMBOL(snd_midi_process_event);
229
232
* release note
230
233
*/
231
234
static 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 ,
233
237
int note , int vel )
234
238
{
235
239
if (chan -> gm_hold ) {
@@ -251,7 +255,8 @@ note_off(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan,
251
255
* events that need to take place immediately to the driver.
252
256
*/
253
257
static 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 ,
255
260
struct snd_midi_channel * chan , int control , int value )
256
261
{
257
262
int i ;
@@ -402,7 +407,7 @@ EXPORT_SYMBOL(snd_midi_channel_set_clear);
402
407
* Process a rpn message.
403
408
*/
404
409
static 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 ,
406
411
struct snd_midi_channel_set * chset )
407
412
{
408
413
int type ;
@@ -442,7 +447,7 @@ rpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan,
442
447
* Process an nrpn message.
443
448
*/
444
449
static 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 ,
446
451
struct snd_midi_channel_set * chset )
447
452
{
448
453
/* parse XG NRPNs here if possible */
@@ -470,7 +475,7 @@ get_channel(unsigned char cmd)
470
475
* Process a sysex message.
471
476
*/
472
477
static 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 ,
474
479
struct snd_midi_channel_set * chset )
475
480
{
476
481
/* GM on */
@@ -584,7 +589,8 @@ sysex(struct snd_midi_op *ops, void *private, unsigned char *buf, int len,
584
589
* all sound off
585
590
*/
586
591
static 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 )
588
594
{
589
595
int n ;
590
596
@@ -602,7 +608,8 @@ all_sounds_off(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan
602
608
* all notes off
603
609
*/
604
610
static 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 )
606
613
{
607
614
int n ;
608
615
0 commit comments