diff options
Diffstat (limited to 'sound/usb/usbmidi.c')
-rw-r--r-- | sound/usb/usbmidi.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sound/usb/usbmidi.c b/sound/usb/usbmidi.c index aae50df06232..2c59afd99611 100644 --- a/sound/usb/usbmidi.c +++ b/sound/usb/usbmidi.c | |||
@@ -46,6 +46,8 @@ | |||
46 | #include <linux/timer.h> | 46 | #include <linux/timer.h> |
47 | #include <linux/usb.h> | 47 | #include <linux/usb.h> |
48 | #include <linux/wait.h> | 48 | #include <linux/wait.h> |
49 | #include <linux/usb/audio.h> | ||
50 | |||
49 | #include <sound/core.h> | 51 | #include <sound/core.h> |
50 | #include <sound/control.h> | 52 | #include <sound/control.h> |
51 | #include <sound/rawmidi.h> | 53 | #include <sound/rawmidi.h> |
@@ -1419,6 +1421,12 @@ static struct port_info { | |||
1419 | EXTERNAL_PORT(0x086a, 0x0001, 8, "%s Broadcast"), | 1421 | EXTERNAL_PORT(0x086a, 0x0001, 8, "%s Broadcast"), |
1420 | EXTERNAL_PORT(0x086a, 0x0002, 8, "%s Broadcast"), | 1422 | EXTERNAL_PORT(0x086a, 0x0002, 8, "%s Broadcast"), |
1421 | EXTERNAL_PORT(0x086a, 0x0003, 4, "%s Broadcast"), | 1423 | EXTERNAL_PORT(0x086a, 0x0003, 4, "%s Broadcast"), |
1424 | /* Access Music Virus TI */ | ||
1425 | EXTERNAL_PORT(0x133e, 0x0815, 0, "%s MIDI"), | ||
1426 | PORT_INFO(0x133e, 0x0815, 1, "%s Synth", 0, | ||
1427 | SNDRV_SEQ_PORT_TYPE_MIDI_GENERIC | | ||
1428 | SNDRV_SEQ_PORT_TYPE_HARDWARE | | ||
1429 | SNDRV_SEQ_PORT_TYPE_SYNTHESIZER), | ||
1422 | }; | 1430 | }; |
1423 | 1431 | ||
1424 | static struct port_info *find_port_info(struct snd_usb_midi* umidi, int number) | 1432 | static struct port_info *find_port_info(struct snd_usb_midi* umidi, int number) |
@@ -1534,7 +1542,7 @@ static int snd_usbmidi_get_ms_info(struct snd_usb_midi* umidi, | |||
1534 | if (hostif->extralen >= 7 && | 1542 | if (hostif->extralen >= 7 && |
1535 | ms_header->bLength >= 7 && | 1543 | ms_header->bLength >= 7 && |
1536 | ms_header->bDescriptorType == USB_DT_CS_INTERFACE && | 1544 | ms_header->bDescriptorType == USB_DT_CS_INTERFACE && |
1537 | ms_header->bDescriptorSubtype == HEADER) | 1545 | ms_header->bDescriptorSubtype == UAC_HEADER) |
1538 | snd_printdd(KERN_INFO "MIDIStreaming version %02x.%02x\n", | 1546 | snd_printdd(KERN_INFO "MIDIStreaming version %02x.%02x\n", |
1539 | ms_header->bcdMSC[1], ms_header->bcdMSC[0]); | 1547 | ms_header->bcdMSC[1], ms_header->bcdMSC[0]); |
1540 | else | 1548 | else |
@@ -1550,7 +1558,7 @@ static int snd_usbmidi_get_ms_info(struct snd_usb_midi* umidi, | |||
1550 | if (hostep->extralen < 4 || | 1558 | if (hostep->extralen < 4 || |
1551 | ms_ep->bLength < 4 || | 1559 | ms_ep->bLength < 4 || |
1552 | ms_ep->bDescriptorType != USB_DT_CS_ENDPOINT || | 1560 | ms_ep->bDescriptorType != USB_DT_CS_ENDPOINT || |
1553 | ms_ep->bDescriptorSubtype != MS_GENERAL) | 1561 | ms_ep->bDescriptorSubtype != UAC_MS_GENERAL) |
1554 | continue; | 1562 | continue; |
1555 | if (usb_endpoint_dir_out(ep)) { | 1563 | if (usb_endpoint_dir_out(ep)) { |
1556 | if (endpoints[epidx].out_ep) { | 1564 | if (endpoints[epidx].out_ep) { |
@@ -1762,9 +1770,9 @@ static int snd_usbmidi_detect_yamaha(struct snd_usb_midi* umidi, | |||
1762 | cs_desc < hostif->extra + hostif->extralen && cs_desc[0] >= 2; | 1770 | cs_desc < hostif->extra + hostif->extralen && cs_desc[0] >= 2; |
1763 | cs_desc += cs_desc[0]) { | 1771 | cs_desc += cs_desc[0]) { |
1764 | if (cs_desc[1] == USB_DT_CS_INTERFACE) { | 1772 | if (cs_desc[1] == USB_DT_CS_INTERFACE) { |
1765 | if (cs_desc[2] == MIDI_IN_JACK) | 1773 | if (cs_desc[2] == UAC_MIDI_IN_JACK) |
1766 | endpoint->in_cables = (endpoint->in_cables << 1) | 1; | 1774 | endpoint->in_cables = (endpoint->in_cables << 1) | 1; |
1767 | else if (cs_desc[2] == MIDI_OUT_JACK) | 1775 | else if (cs_desc[2] == UAC_MIDI_OUT_JACK) |
1768 | endpoint->out_cables = (endpoint->out_cables << 1) | 1; | 1776 | endpoint->out_cables = (endpoint->out_cables << 1) | 1; |
1769 | } | 1777 | } |
1770 | } | 1778 | } |