summaryrefslogtreecommitdiffstats
path: root/sound/usb/usx2y/us122l.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-05-12 14:34:38 +0200
committerTakashi Iwai <tiwai@suse.de>2017-05-15 11:02:08 +0200
commit5c7e7d586a4318faa3f580ef6f950b8d3bc93d95 (patch)
tree61b2c35220301fbdd68410bee12e264d14f2a2d9 /sound/usb/usx2y/us122l.h
parentf83914fdfcc3ecb62a5a83eeb609ff59a9c2052d (diff)
downloadop-kernel-dev-5c7e7d586a4318faa3f580ef6f950b8d3bc93d95.zip
op-kernel-dev-5c7e7d586a4318faa3f580ef6f950b8d3bc93d95.tar.gz
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/usb/usx2y/us122l.h b/sound/usb/usx2y/us122l.h
index f263b3f..3e2a2d0 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;
};
OpenPOWER on IntegriCloud