2 * Line6 Linux USB driver - 0.8.0
4 * Copyright (C) 2004-2009 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.
18 #include <linux/spinlock.h>
19 #include <linux/usb.h>
20 #include <linux/wait.h>
22 #include <sound/core.h>
24 #include "dumprequest.h"
27 #define VARIAX_ACTIVATE_DELAY 10
28 #define VARIAX_STARTUP_DELAY 3
32 VARIAX_DUMP_PASS1 = LINE6_DUMP_CURRENT,
39 Binary Variax model dump
43 Header information (including program name).
45 unsigned char name[18];
50 unsigned char control[78 * 2];
53 struct usb_line6_variax {
55 Generic Line6 USB data.
57 struct usb_line6 line6;
60 Dump request structure.
61 Append two extra buffers for 3-pass data query.
63 struct line6_dump_request dumpreq; struct line6_dump_reqbuf extrabuf[2];
66 Buffer for activation code.
68 unsigned char *buffer_activate;
76 Current model settings.
78 struct variax_model model_data;
81 Name of current model bank.
83 unsigned char bank[18];
86 Position of volume dial.
91 Position of tone control dial.
96 Timer for delayed activation request.
98 struct timer_list activate_timer;
102 extern void variax_disconnect(struct usb_interface *interface);
103 extern int variax_init(struct usb_interface *interface,
104 struct usb_line6_variax *variax);
105 extern void variax_process_message(struct usb_line6_variax *variax);