/* * Line 6 Linux USB driver * * Copyright (C) 2004-2010 Markus Grabner (grabner@icg.tugraz.at) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation, version 2. * */ #ifndef MIDI_H #define MIDI_H #include #include "midibuf.h" #define MIDI_BUFFER_SIZE 1024 struct snd_line6_midi { /* Pointer back to the Line 6 driver data structure */ struct usb_line6 *line6; /* MIDI substream for receiving (or NULL if not active) */ struct snd_rawmidi_substream *substream_receive; /* MIDI substream for transmitting (or NULL if not active) */ struct snd_rawmidi_substream *substream_transmit; /* Number of currently active MIDI send URBs */ int num_active_send_urbs; /* Spin lock to protect MIDI buffer handling */ spinlock_t lock; /* Wait queue for MIDI transmission */ wait_queue_head_t send_wait; /* Buffer for incoming MIDI stream */ struct midi_buffer midibuf_in; /* Buffer for outgoing MIDI stream */ struct midi_buffer midibuf_out; }; extern int line6_init_midi(struct usb_line6 *line6); extern void line6_midi_receive(struct usb_line6 *line6, unsigned char *data, int length); #endif ption> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/sound/soc/jz4740
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-22 12:47:48 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-22 12:47:48 -0800
commit095cbe66973771fecd8e8b1e8763181363ef703e (patch)
treec361a93d62ed171ac958deb0d4ff0faa980bb290 /sound/soc/jz4740
parent24b86839fab8e8059d2b16e0067dc86a1a0d3514 (diff)
parent020eb3daaba2857b32c4cf4c82f503d6a00a67de (diff)
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fix from Thomas Gleixner: "Restore the retrigger callbacks in the IO APIC irq chips. That addresses a long standing regression which got introduced with the rewrite of the x86 irq subsystem two years ago and went unnoticed so far" * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/ioapic: Restore IO-APIC irq_chip retrigger callback
Diffstat (limited to 'sound/soc/jz4740')