Commit 410dca8d authored by Chris Rorvick's avatar Chris Rorvick Committed by Takashi Iwai

staging: line6: Define a device type enum

Define an enum containing the supported devices and associate each entry
in the device table to the respective value.
Signed-off-by: default avatarChris Rorvick <chris@rorvick.com>
Reviewed-by: default avatarStefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent daf54a59
...@@ -34,24 +34,42 @@ ...@@ -34,24 +34,42 @@
/* table of devices that work with this driver */ /* table of devices that work with this driver */
static const struct usb_device_id line6_id_table[] = { static const struct usb_device_id line6_id_table[] = {
{ LINE6_DEVICE(LINE6_DEVID_BASSPODXT) }, { LINE6_DEVICE(LINE6_DEVID_BASSPODXT),
{ LINE6_DEVICE(LINE6_DEVID_BASSPODXTLIVE) }, .driver_info = LINE6_BASSPODXT },
{ LINE6_DEVICE(LINE6_DEVID_BASSPODXTPRO) }, { LINE6_DEVICE(LINE6_DEVID_BASSPODXTLIVE),
{ LINE6_DEVICE(LINE6_DEVID_GUITARPORT) }, .driver_info = LINE6_BASSPODXTLIVE },
{ LINE6_DEVICE(LINE6_DEVID_POCKETPOD) }, { LINE6_DEVICE(LINE6_DEVID_BASSPODXTPRO),
{ LINE6_DEVICE(LINE6_DEVID_PODHD300) }, .driver_info = LINE6_BASSPODXTPRO },
{ LINE6_DEVICE(LINE6_DEVID_PODHD400) }, { LINE6_DEVICE(LINE6_DEVID_GUITARPORT),
{ LINE6_DEVICE(LINE6_DEVID_PODHD500) }, .driver_info = LINE6_GUITARPORT },
{ LINE6_DEVICE(LINE6_DEVID_PODSTUDIO_GX) }, { LINE6_DEVICE(LINE6_DEVID_POCKETPOD),
{ LINE6_DEVICE(LINE6_DEVID_PODSTUDIO_UX1) }, .driver_info = LINE6_POCKETPOD },
{ LINE6_DEVICE(LINE6_DEVID_PODSTUDIO_UX2) }, { LINE6_DEVICE(LINE6_DEVID_PODHD300),
{ LINE6_DEVICE(LINE6_DEVID_PODXT) }, .driver_info = LINE6_PODHD300 },
{ LINE6_DEVICE(LINE6_DEVID_PODXTLIVE) }, { LINE6_DEVICE(LINE6_DEVID_PODHD400),
{ LINE6_DEVICE(LINE6_DEVID_PODXTPRO) }, .driver_info = LINE6_PODHD400 },
{ LINE6_DEVICE(LINE6_DEVID_TONEPORT_GX) }, { LINE6_DEVICE(LINE6_DEVID_PODHD500),
{ LINE6_DEVICE(LINE6_DEVID_TONEPORT_UX1) }, .driver_info = LINE6_PODHD500 },
{ LINE6_DEVICE(LINE6_DEVID_TONEPORT_UX2) }, { LINE6_DEVICE(LINE6_DEVID_PODSTUDIO_GX),
{ LINE6_DEVICE(LINE6_DEVID_VARIAX) }, .driver_info = LINE6_PODSTUDIO_GX },
{ LINE6_DEVICE(LINE6_DEVID_PODSTUDIO_UX1),
.driver_info = LINE6_PODSTUDIO_UX1 },
{ LINE6_DEVICE(LINE6_DEVID_PODSTUDIO_UX2),
.driver_info = LINE6_PODSTUDIO_UX2 },
{ LINE6_DEVICE(LINE6_DEVID_PODXT),
.driver_info = LINE6_PODXT },
{ LINE6_DEVICE(LINE6_DEVID_PODXTLIVE),
.driver_info = LINE6_PODXTLIVE },
{ LINE6_DEVICE(LINE6_DEVID_PODXTPRO),
.driver_info = LINE6_PODXTPRO },
{ LINE6_DEVICE(LINE6_DEVID_TONEPORT_GX),
.driver_info = LINE6_TONEPORT_GX },
{ LINE6_DEVICE(LINE6_DEVID_TONEPORT_UX1),
.driver_info = LINE6_TONEPORT_UX1 },
{ LINE6_DEVICE(LINE6_DEVID_TONEPORT_UX2),
.driver_info = LINE6_TONEPORT_UX2 },
{ LINE6_DEVICE(LINE6_DEVID_VARIAX),
.driver_info = LINE6_VARIAX },
{} {}
}; };
......
...@@ -20,6 +20,27 @@ ...@@ -20,6 +20,27 @@
#define DRIVER_NAME "line6usb" #define DRIVER_NAME "line6usb"
enum line6_device_type {
LINE6_BASSPODXT,
LINE6_BASSPODXTLIVE,
LINE6_BASSPODXTPRO,
LINE6_GUITARPORT,
LINE6_POCKETPOD,
LINE6_PODHD300,
LINE6_PODHD400,
LINE6_PODHD500,
LINE6_PODSTUDIO_GX,
LINE6_PODSTUDIO_UX1,
LINE6_PODSTUDIO_UX2,
LINE6_PODXT,
LINE6_PODXTLIVE,
LINE6_PODXTPRO,
LINE6_TONEPORT_GX,
LINE6_TONEPORT_UX1,
LINE6_TONEPORT_UX2,
LINE6_VARIAX
};
#define LINE6_TIMEOUT 1 #define LINE6_TIMEOUT 1
#define LINE6_BUFSIZE_LISTEN 32 #define LINE6_BUFSIZE_LISTEN 32
#define LINE6_MESSAGE_MAXLEN 256 #define LINE6_MESSAGE_MAXLEN 256
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment