Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Linux driver for TerraTec DMX 6Fire USB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Author:	Torsten Schenk <torsten.schenk@zoho.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * Created:	Jan 01, 2011
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * Copyright:	(C) Torsten Schenk
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #ifndef USB6FIRE_MIDI_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define USB6FIRE_MIDI_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include "common.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) struct midi_runtime {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	struct sfire_chip *chip;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	struct snd_rawmidi *instance;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	struct snd_rawmidi_substream *in;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	char in_active;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	spinlock_t in_lock;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	spinlock_t out_lock;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	struct snd_rawmidi_substream *out;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	struct urb out_urb;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	u8 out_serial; /* serial number of out packet */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	u8 *out_buffer;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	int buffer_offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	void (*in_received)(struct midi_runtime *rt, u8 *data, int length);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) int usb6fire_midi_init(struct sfire_chip *chip);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) void usb6fire_midi_abort(struct sfire_chip *chip);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) void usb6fire_midi_destroy(struct sfire_chip *chip);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #endif /* USB6FIRE_MIDI_H */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)