diff options
author | Karsten Wiese <fzu@wemgehoertderstaat.de> | 2008-07-30 17:13:29 +0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-08-01 15:37:12 +0400 |
commit | 030a07e441296c372f946cd4065b5d831d8dc40c (patch) | |
tree | 4032eba646f9bf1c6f146adc40b449cf50b59a47 /sound/usb/usx2y/us122l.h | |
parent | 896e6cc20e67038af12e1a7711eef32647e62f23 (diff) | |
download | linux-030a07e441296c372f946cd4065b5d831d8dc40c.tar.xz |
ALSA: Add USB US122L driver
Added a new US122L usb-audio driver. This driver works together with a
dedicated alsa-lib plugin.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/usb/usx2y/us122l.h')
-rw-r--r-- | sound/usb/usx2y/us122l.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sound/usb/usx2y/us122l.h b/sound/usb/usx2y/us122l.h new file mode 100644 index 000000000000..3d10c4b2a0f5 --- /dev/null +++ b/sound/usb/usx2y/us122l.h @@ -0,0 +1,27 @@ +#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; + + 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 |