diff options
author | Johan Hovold <johan@kernel.org> | 2017-05-12 14:34:38 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-05-15 11:02:08 +0200 |
commit | 5c7e7d586a4318faa3f580ef6f950b8d3bc93d95 (patch) | |
tree | 61b2c35220301fbdd68410bee12e264d14f2a2d9 /sound/usb/usx2y/us122l.h | |
parent | f83914fdfcc3ecb62a5a83eeb609ff59a9c2052d (diff) | |
download | linux-stable-5c7e7d586a4318faa3f580ef6f950b8d3bc93d95.tar.gz linux-stable-5c7e7d586a4318faa3f580ef6f950b8d3bc93d95.tar.bz2 linux-stable-5c7e7d586a4318faa3f580ef6f950b8d3bc93d95.zip |
ALSA: us122l: clean up US144 handling
Use the device-id table and a private flag to determine the device type
(US122 or US144) rather than spreading product-id conditionals
throughout the driver.
This USB driver currently depends on X86 (why?), but we should still add
the missing endianness conversions when accessing the USB
device-descriptor fields.
Compile-tested only.
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/usx2y/us122l.h')
-rw-r--r-- | sound/usb/usx2y/us122l.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/usb/usx2y/us122l.h b/sound/usb/usx2y/us122l.h index f263b3f96c86..3e2a2d0041ee 100644 --- a/sound/usb/usx2y/us122l.h +++ b/sound/usb/usx2y/us122l.h @@ -16,6 +16,8 @@ struct us122l { struct list_head midi_list; atomic_t mmap_count; + + bool is_us144; }; |