2009-02-27 20:43:04 -07:00
|
|
|
/*
|
2010-08-22 17:08:25 -06:00
|
|
|
* Line6 Linux USB driver - 0.9.1beta
|
2009-02-27 20:43:04 -07:00
|
|
|
*
|
2010-08-11 17:35:30 -06:00
|
|
|
* Copyright (C) 2004-2010 Markus Grabner (grabner@icg.tugraz.at)
|
2009-02-27 20:43:04 -07:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation, version 2.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef TONEPORT_H
|
|
|
|
#define TONEPORT_H
|
|
|
|
|
|
|
|
#include <linux/usb.h>
|
|
|
|
#include <sound/core.h>
|
|
|
|
|
2010-08-11 17:35:30 -06:00
|
|
|
#include "driver.h"
|
|
|
|
|
2009-02-27 20:43:04 -07:00
|
|
|
struct usb_line6_toneport {
|
|
|
|
/**
|
2010-08-11 17:35:30 -06:00
|
|
|
Generic Line6 USB data.
|
2009-02-27 20:43:04 -07:00
|
|
|
*/
|
|
|
|
struct usb_line6 line6;
|
|
|
|
|
|
|
|
/**
|
2010-08-11 17:35:30 -06:00
|
|
|
Source selector.
|
|
|
|
*/
|
|
|
|
int source;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Serial number of device.
|
2009-02-27 20:43:04 -07:00
|
|
|
*/
|
|
|
|
int serial_number;
|
|
|
|
|
|
|
|
/**
|
2010-08-11 17:35:30 -06:00
|
|
|
Firmware version (x 100).
|
2009-02-27 20:43:04 -07:00
|
|
|
*/
|
|
|
|
int firmware_version;
|
2010-08-11 17:35:30 -06:00
|
|
|
|
|
|
|
/**
|
|
|
|
Timer for delayed PCM startup.
|
|
|
|
*/
|
|
|
|
struct timer_list timer;
|
2009-02-27 20:43:04 -07:00
|
|
|
};
|
|
|
|
|
2010-08-11 17:35:30 -06:00
|
|
|
extern void line6_toneport_disconnect(struct usb_interface *interface);
|
|
|
|
extern int line6_toneport_init(struct usb_interface *interface,
|
|
|
|
struct usb_line6_toneport *toneport);
|
|
|
|
extern void line6_toneport_reset_resume(struct usb_line6_toneport *toneport);
|
2009-02-27 20:43:04 -07:00
|
|
|
|
|
|
|
#endif
|