2 * Line6 Linux USB driver - 0.9.1beta
4 * Copyright (C) 2004-2010 Markus Grabner (grabner@icg.tugraz.at)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation, version 2.
15 #include <linux/interrupt.h>
16 #include <linux/spinlock.h>
17 #include <linux/usb.h>
19 #include <sound/core.h>
26 #define PODXTLIVE_INTERFACE_POD 0
27 #define PODXTLIVE_INTERFACE_VARIAX 1
30 Locate name in binary program dump
32 #define POD_NAME_OFFSET 0
33 #define POD_NAME_LENGTH 16
38 #define POD_CONTROL_SIZE 0x80
39 #define POD_BUFSIZE_DUMPREQ 7
40 #define POD_STARTUP_DELAY 1000
43 Stages of POD startup procedure
47 POD_STARTUP_VERSIONREQ
,
48 POD_STARTUP_WORKQUEUE
,
50 POD_STARTUP_LAST
= POD_STARTUP_SETUP
- 1
53 struct usb_line6_pod
{
55 Generic Line6 USB data.
57 struct usb_line6 line6
;
60 Instrument monitor level.
65 Timer for device initializaton.
67 struct timer_list startup_timer
;
70 Work handler for device initializaton.
72 struct work_struct startup_work
;
75 Current progress in startup procedure.
80 Serial number of device.
85 Firmware version (x 100).
95 extern void line6_pod_disconnect(struct usb_interface
*interface
);
96 extern int line6_pod_init(struct usb_interface
*interface
,
97 struct usb_line6_pod
*pod
);
98 extern void line6_pod_process_message(struct usb_line6_pod
*pod
);
99 extern void line6_pod_transmit_parameter(struct usb_line6_pod
*pod
, int param
,