mts64.c (8c57a5e7b2820f349c95b8c8393fec1e0f4070d2) | mts64.c (c36f486d7bc71d41ec6b9521574136a280c17803) |
---|---|
1/* 2 * ALSA Driver for Ego Systems Inc. (ESI) Miditerminal 4140 3 * Copyright (c) 2006 by Matthias König <mk@phasorlab.de> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 735 unchanged lines hidden (view full) --- 744 if (up) 745 mts->mode[substream->number] |= MTS64_MODE_INPUT_TRIGGERED; 746 else 747 mts->mode[substream->number] &= ~MTS64_MODE_INPUT_TRIGGERED; 748 749 spin_unlock_irqrestore(&mts->lock, flags); 750} 751 | 1/* 2 * ALSA Driver for Ego Systems Inc. (ESI) Miditerminal 4140 3 * Copyright (c) 2006 by Matthias König <mk@phasorlab.de> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 735 unchanged lines hidden (view full) --- 744 if (up) 745 mts->mode[substream->number] |= MTS64_MODE_INPUT_TRIGGERED; 746 else 747 mts->mode[substream->number] &= ~MTS64_MODE_INPUT_TRIGGERED; 748 749 spin_unlock_irqrestore(&mts->lock, flags); 750} 751 |
752static struct snd_rawmidi_ops snd_mts64_rawmidi_output_ops = { | 752static const struct snd_rawmidi_ops snd_mts64_rawmidi_output_ops = { |
753 .open = snd_mts64_rawmidi_open, 754 .close = snd_mts64_rawmidi_close, 755 .trigger = snd_mts64_rawmidi_output_trigger 756}; 757 | 753 .open = snd_mts64_rawmidi_open, 754 .close = snd_mts64_rawmidi_close, 755 .trigger = snd_mts64_rawmidi_output_trigger 756}; 757 |
758static struct snd_rawmidi_ops snd_mts64_rawmidi_input_ops = { | 758static const struct snd_rawmidi_ops snd_mts64_rawmidi_input_ops = { |
759 .open = snd_mts64_rawmidi_open, 760 .close = snd_mts64_rawmidi_close, 761 .trigger = snd_mts64_rawmidi_input_trigger 762}; 763 764/* Create and initialize the rawmidi component */ 765static int snd_mts64_rawmidi_create(struct snd_card *card) 766{ --- 305 unchanged lines hidden --- | 759 .open = snd_mts64_rawmidi_open, 760 .close = snd_mts64_rawmidi_close, 761 .trigger = snd_mts64_rawmidi_input_trigger 762}; 763 764/* Create and initialize the rawmidi component */ 765static int snd_mts64_rawmidi_create(struct snd_card *card) 766{ --- 305 unchanged lines hidden --- |