serial-u16550.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | serial-u16550.c (c36f486d7bc71d41ec6b9521574136a280c17803) |
---|---|
1/* 2 * serial.c 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>, 4 * Isaku Yamahata <yamahata@private.email.ne.jp>, 5 * George Hansper <ghansper@apana.org.au>, 6 * Hannu Savolainen 7 * 8 * This code is based on the code from ALSA 0.5.9, but heavily rewritten. --- 738 unchanged lines hidden (view full) --- 747 uart->filemode |= SERIAL_MODE_OUTPUT_TRIGGERED; 748 else 749 uart->filemode &= ~SERIAL_MODE_OUTPUT_TRIGGERED; 750 spin_unlock_irqrestore(&uart->open_lock, flags); 751 if (up) 752 snd_uart16550_output_write(substream); 753} 754 | 1/* 2 * serial.c 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>, 4 * Isaku Yamahata <yamahata@private.email.ne.jp>, 5 * George Hansper <ghansper@apana.org.au>, 6 * Hannu Savolainen 7 * 8 * This code is based on the code from ALSA 0.5.9, but heavily rewritten. --- 738 unchanged lines hidden (view full) --- 747 uart->filemode |= SERIAL_MODE_OUTPUT_TRIGGERED; 748 else 749 uart->filemode &= ~SERIAL_MODE_OUTPUT_TRIGGERED; 750 spin_unlock_irqrestore(&uart->open_lock, flags); 751 if (up) 752 snd_uart16550_output_write(substream); 753} 754 |
755static struct snd_rawmidi_ops snd_uart16550_output = | 755static const struct snd_rawmidi_ops snd_uart16550_output = |
756{ 757 .open = snd_uart16550_output_open, 758 .close = snd_uart16550_output_close, 759 .trigger = snd_uart16550_output_trigger, 760}; 761 | 756{ 757 .open = snd_uart16550_output_open, 758 .close = snd_uart16550_output_close, 759 .trigger = snd_uart16550_output_trigger, 760}; 761 |
762static struct snd_rawmidi_ops snd_uart16550_input = | 762static const struct snd_rawmidi_ops snd_uart16550_input = |
763{ 764 .open = snd_uart16550_input_open, 765 .close = snd_uart16550_input_close, 766 .trigger = snd_uart16550_input_trigger, 767}; 768 769static int snd_uart16550_free(struct snd_uart16550 *uart) 770{ --- 275 unchanged lines hidden --- | 763{ 764 .open = snd_uart16550_input_open, 765 .close = snd_uart16550_input_close, 766 .trigger = snd_uart16550_input_trigger, 767}; 768 769static int snd_uart16550_free(struct snd_uart16550 *uart) 770{ --- 275 unchanged lines hidden --- |