ALSA: us122l: clean up US144 handling
authorJohan Hovold <johan@kernel.org>
Fri, 12 May 2017 12:34:38 +0000 (14:34 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 May 2017 09:02:08 +0000 (11:02 +0200)
commit5c7e7d586a4318faa3f580ef6f950b8d3bc93d95
tree61b2c35220301fbdd68410bee12e264d14f2a2d9
parentf83914fdfcc3ecb62a5a83eeb609ff59a9c2052d
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>
sound/usb/usx2y/us122l.c
sound/usb/usx2y/us122l.h