forked from luck/tmp_suning_uos_patched
d82af9f9aa
Remove the dependecy from the USB MIDI code on the snd_usb_audio structure. This allows using the USB MIDI module from another driver without having to pretend to be the generic USB audio driver. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
29 lines
461 B
C
29 lines
461 B
C
#ifndef US122L_H
|
|
#define US122L_H
|
|
|
|
|
|
struct us122l {
|
|
struct snd_usb_audio chip;
|
|
int stride;
|
|
struct usb_stream_kernel sk;
|
|
|
|
struct mutex mutex;
|
|
struct file *first;
|
|
unsigned second_periods_polled;
|
|
struct file *master;
|
|
struct file *slave;
|
|
struct list_head midi_list;
|
|
|
|
atomic_t mmap_count;
|
|
};
|
|
|
|
|
|
#define US122L(c) ((struct us122l *)(c)->private_data)
|
|
|
|
#define NAME_ALLCAPS "US-122L"
|
|
|
|
#define USB_ID_US122L 0x800E
|
|
#define USB_ID_US144 0x800F
|
|
|
|
#endif
|