Lines Matching refs:chset

37 		       struct snd_midi_channel_set *chset,
42 struct snd_midi_channel_set *chset);
45 struct snd_midi_channel_set *chset);
48 int len, struct snd_midi_channel_set *chset);
54 static void reset_all_channels(struct snd_midi_channel_set *chset);
259 struct snd_midi_channel_set *chset, in do_control() argument
315 rpn(ops, drv, chan, chset); in do_control()
317 nrpn(ops, drv, chan, chset); in do_control()
337 if (chset->midi_mode == SNDRV_MIDI_MODE_XG) { in do_control()
378 snd_midi_channel_set_clear(struct snd_midi_channel_set *chset) in snd_midi_channel_set_clear() argument
382 chset->midi_mode = SNDRV_MIDI_MODE_GM; in snd_midi_channel_set_clear()
383 chset->gs_master_volume = 127; in snd_midi_channel_set_clear()
385 for (i = 0; i < chset->max_channels; i++) { in snd_midi_channel_set_clear()
386 struct snd_midi_channel *chan = chset->channels + i; in snd_midi_channel_set_clear()
411 struct snd_midi_channel_set *chset) in rpn() argument
416 if (chset->midi_mode != SNDRV_MIDI_MODE_NONE) { in rpn()
451 struct snd_midi_channel_set *chset) in nrpn() argument
455 ops->nrpn(drv, chan, chset); in nrpn()
479 struct snd_midi_channel_set *chset) in sysex() argument
510 if (chset->midi_mode != SNDRV_MIDI_MODE_GS && in sysex()
511 chset->midi_mode != SNDRV_MIDI_MODE_XG) { in sysex()
512 chset->midi_mode = SNDRV_MIDI_MODE_GM; in sysex()
513 reset_all_channels(chset); in sysex()
521 if (chset->midi_mode != SNDRV_MIDI_MODE_GS && in sysex()
522 chset->midi_mode != SNDRV_MIDI_MODE_XG) in sysex()
523 chset->midi_mode = SNDRV_MIDI_MODE_GS; in sysex()
528 reset_all_channels(chset); in sysex()
534 if (p < chset->max_channels) { in sysex()
537 chset->channels[p].drum_channel = 1; in sysex()
539 chset->channels[p].drum_channel = 0; in sysex()
545 if (p < chset->max_channels && in sysex()
546 ! chset->channels[p].drum_channel) { in sysex()
548 chset->channels[p].midi_program = buf[7]; in sysex()
554 chset->gs_reverb_mode = buf[7]; in sysex()
559 chset->gs_chorus_mode = buf[7]; in sysex()
564 chset->gs_master_volume = buf[7]; in sysex()
573 chset->midi_mode = SNDRV_MIDI_MODE_XG; in sysex()
576 for (i = 0; i < chset->max_channels; i++) { in sysex()
577 if (chset->channels[i].drum_channel) in sysex()
578 chset->channels[i].control[MIDI_CTL_MSB_BANK] = 127; in sysex()
580 chset->channels[i].control[MIDI_CTL_MSB_BANK] = 0; in sysex()
585 ops->sysex(private, buf - 1, len + 1, parsed, chset); in sysex()
666 reset_all_channels(struct snd_midi_channel_set *chset) in reset_all_channels() argument
669 for (ch = 0; ch < chset->max_channels; ch++) { in reset_all_channels()
670 struct snd_midi_channel *chan = chset->channels + ch; in reset_all_channels()
689 struct snd_midi_channel_set *chset; in snd_midi_channel_alloc_set() local
691 chset = kmalloc(sizeof(*chset), GFP_KERNEL); in snd_midi_channel_alloc_set()
692 if (chset) { in snd_midi_channel_alloc_set()
693 chset->channels = snd_midi_channel_init_set(n); in snd_midi_channel_alloc_set()
694 chset->private_data = NULL; in snd_midi_channel_alloc_set()
695 chset->max_channels = n; in snd_midi_channel_alloc_set()
697 return chset; in snd_midi_channel_alloc_set()
716 void snd_midi_channel_free_set(struct snd_midi_channel_set *chset) in snd_midi_channel_free_set() argument
718 if (chset == NULL) in snd_midi_channel_free_set()
720 kfree(chset->channels); in snd_midi_channel_free_set()
721 kfree(chset); in snd_midi_channel_free_set()