portman2x4.c (8c57a5e7b2820f349c95b8c8393fec1e0f4070d2) portman2x4.c (c36f486d7bc71d41ec6b9521574136a280c17803)
1/*
2 * Driver for Midiman Portman2x4 parallel port midi interface
3 *
4 * Copyright (c) by Levent Guendogdu <levon@feature-it.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 532 unchanged lines hidden (view full) ---

541 spin_lock_irqsave(&pm->reg_lock, flags);
542 if (up) {
543 while ((snd_rawmidi_transmit(substream, &byte, 1) == 1))
544 portman_write_midi(pm, substream->number, byte);
545 }
546 spin_unlock_irqrestore(&pm->reg_lock, flags);
547}
548
1/*
2 * Driver for Midiman Portman2x4 parallel port midi interface
3 *
4 * Copyright (c) by Levent Guendogdu <levon@feature-it.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 532 unchanged lines hidden (view full) ---

541 spin_lock_irqsave(&pm->reg_lock, flags);
542 if (up) {
543 while ((snd_rawmidi_transmit(substream, &byte, 1) == 1))
544 portman_write_midi(pm, substream->number, byte);
545 }
546 spin_unlock_irqrestore(&pm->reg_lock, flags);
547}
548
549static struct snd_rawmidi_ops snd_portman_midi_output = {
549static const struct snd_rawmidi_ops snd_portman_midi_output = {
550 .open = snd_portman_midi_open,
551 .close = snd_portman_midi_close,
552 .trigger = snd_portman_midi_output_trigger,
553};
554
550 .open = snd_portman_midi_open,
551 .close = snd_portman_midi_close,
552 .trigger = snd_portman_midi_output_trigger,
553};
554
555static struct snd_rawmidi_ops snd_portman_midi_input = {
555static const struct snd_rawmidi_ops snd_portman_midi_input = {
556 .open = snd_portman_midi_open,
557 .close = snd_portman_midi_close,
558 .trigger = snd_portman_midi_input_trigger,
559};
560
561/* Create and initialize the rawmidi component */
562static int snd_portman_rawmidi_create(struct snd_card *card)
563{

--- 307 unchanged lines hidden ---
556 .open = snd_portman_midi_open,
557 .close = snd_portman_midi_close,
558 .trigger = snd_portman_midi_input_trigger,
559};
560
561/* Create and initialize the rawmidi component */
562static int snd_portman_rawmidi_create(struct snd_card *card)
563{

--- 307 unchanged lines hidden ---