ALSA: line6: Pass driver name to line6_probe()
Provide a unique name for each driver instead of using "line6usb" for all of them. This will allow for different configurations based on the driver type. Signed-off-by: Chris Rorvick <chris@rorvick.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:

committed by
Takashi Iwai

parent
f2bd242fa1
commit
12865cac38
@@ -18,8 +18,6 @@
|
||||
|
||||
#include "midi.h"
|
||||
|
||||
#define DRIVER_NAME "line6usb"
|
||||
|
||||
#define USB_INTERVALS_PER_SECOND 1000
|
||||
|
||||
/* Fallback USB interval and max packet size values */
|
||||
@@ -168,6 +166,7 @@ extern int line6_write_data(struct usb_line6 *line6, int address, void *data,
|
||||
|
||||
int line6_probe(struct usb_interface *interface,
|
||||
const struct usb_device_id *id,
|
||||
const char *driver_name,
|
||||
const struct line6_properties *properties,
|
||||
int (*private_init)(struct usb_line6 *, const struct usb_device_id *id),
|
||||
size_t data_size);
|
||||
|
Reference in New Issue
Block a user