summaryrefslogtreecommitdiff
path: root/drivers/staging/line6/midi.c
diff options
context:
space:
mode:
authorMarkus Grabner <grabner@icg.tugraz.at>2011-12-05 23:51:53 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-12-08 12:33:49 -0800
commit4c6fb5fc050a4430363d92994132fffa6776c9d4 (patch)
tree2f10b3541ab2ad7442046a721c6b701ae67967fa /drivers/staging/line6/midi.c
parent3b35de4126f03d8df089c5fc908c40bb91485f6c (diff)
staging/line6: refactor device information and add POD HD 500
This patch refactors the device information code and adds preliminary support for the POD HD 500 device. Signed-off-by: Markus Grabner <grabner@icg.tugraz.at> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/line6/midi.c')
-rw-r--r--drivers/staging/line6/midi.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/drivers/staging/line6/midi.c b/drivers/staging/line6/midi.c
index 3013fb522bde..13d02939c3cb 100644
--- a/drivers/staging/line6/midi.c
+++ b/drivers/staging/line6/midi.c
@@ -173,6 +173,7 @@ static int send_midi_async(struct usb_line6 *line6, unsigned char *data,
case LINE6_DEVID_VARIAX:
case LINE6_DEVID_PODHD300:
+ case LINE6_DEVID_PODHD500:
break;
default:
@@ -404,8 +405,19 @@ int line6_init_midi(struct usb_line6 *line6)
}
line6midi->line6 = line6;
- line6midi->midi_mask_transmit = 1;
- line6midi->midi_mask_receive = 4;
+
+ switch(line6->product) {
+ case LINE6_DEVID_PODHD300:
+ case LINE6_DEVID_PODHD500:
+ line6midi->midi_mask_transmit = 1;
+ line6midi->midi_mask_receive = 1;
+ break;
+
+ default:
+ line6midi->midi_mask_transmit = 1;
+ line6midi->midi_mask_receive = 4;
+ }
+
line6->line6midi = line6midi;
err = snd_device_new(line6->card, SNDRV_DEV_RAWMIDI, line6midi,