alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Mack <zonque@gmail.com>
To: Grant Diffey <gdiffey@gmail.com>
Cc: "Frédéric Jaume" <frederic.jaume@gmail.com>,
	alsa-devel@alsa-project.org,
	"Clemens Ladisch" <clemens@ladisch.de>
Subject: Re: Alsa Support for Korg Pandora Mini, Vox ToneLab ST
Date: Sun, 15 May 2011 23:30:33 +0200	[thread overview]
Message-ID: <BANLkTimuaynDA+0wq9kqwizL5kp+b+AuLA@mail.gmail.com> (raw)
In-Reply-To: <BANLkTik5LMFp-W2q9yhadPdJwswYXUbDgA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]

On Sun, May 15, 2011 at 10:43 PM, Daniel Mack <zonque@gmail.com> wrote:
> On Sun, May 15, 2011 at 7:54 PM, Grant Diffey <gdiffey@gmail.com> wrote:
>> So I reverted  7b6717e and... Nope. still no midi ports.
>>
>>
>> Kernel messages are:
>>
>> [  131.484053] usb 3-1: new high speed USB device using ehci_hcd and address
>> 3
>> [  131.617753] usb 3-1: config 1 interface 3 altsetting 0 bulk endpoint 0x7
>> has invalid maxpacket 8
>> [  131.617760] usb 3-1: config 1 interface 3 altsetting 0 bulk endpoint 0x87
>> has invalid maxpacket 8
>> [  131.618750] usb 3-1: New USB device found, idVendor=0763, idProduct=2080
>> [  131.618754] usb 3-1: New USB device strings: Mfr=1, Product=2,
>> SerialNumber=0
>> [  131.618756] usb 3-1: Product: Fast Track Ultra
>> [  131.618758] usb 3-1: Manufacturer: M-Audio
>> [  132.767312] usbcore: registered new interface driver snd-usb-audio
>>
>> And amidi -l reports
>>
>> nevyn@cetacea:~/linux$ amidi -l

Attached is a patch that adds some debug output. If you could apply
that and report what the kernel logs during the probe of the device,
that would be appreciated.


Thanks,
Daniel

[-- Attachment #2: snd-usb-midi-debug.diff --]
[-- Type: application/octet-stream, Size: 1698 bytes --]

diff --git a/sound/usb/card.c b/sound/usb/card.c
index a90662a..1a5b620 100644
--- a/sound/usb/card.c
+++ b/sound/usb/card.c
@@ -141,6 +141,8 @@ static int snd_usb_create_stream(struct snd_usb_audio *chip, int ctrlif, int int
 	struct usb_interface_descriptor *altsd;
 	struct usb_interface *iface = usb_ifnum_to_if(dev, interface);
 
+printk(KERN_ERR "%s() interface %d\n", __func__, interface);
+
 	if (!iface) {
 		snd_printk(KERN_ERR "%d:%u:%d : does not exist\n",
 			   dev->devnum, ctrlif, interface);
@@ -148,16 +150,18 @@ static int snd_usb_create_stream(struct snd_usb_audio *chip, int ctrlif, int int
 	}
 
 	if (usb_interface_claimed(iface)) {
-		snd_printdd(KERN_INFO "%d:%d:%d: skipping, already claimed\n",
+		snd_printk(KERN_ERR "%d:%d:%d: skipping, already claimed\n",
 						dev->devnum, ctrlif, interface);
 		return -EINVAL;
 	}
 
 	alts = &iface->altsetting[0];
 	altsd = get_iface_desc(alts);
+printk(KERN_ERR "%s() .. bInterfaceClass %d bInterfaceSubClass %d\n", __func__, altsd->bInterfaceClass, altsd->bInterfaceSubClass);
 	if ((altsd->bInterfaceClass == USB_CLASS_AUDIO ||
 	     altsd->bInterfaceClass == USB_CLASS_VENDOR_SPEC) &&
 	    altsd->bInterfaceSubClass == USB_SUBCLASS_MIDISTREAMING) {
+printk(KERN_ERR "%s(): creating MIDI interface\n", __func__);
 		int err = snd_usbmidi_create(chip->card, iface,
 					     &chip->midi_list, NULL);
 		if (err < 0) {
@@ -236,6 +240,7 @@ static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif)
 			return -EINVAL;
 		}
 
+printk(KERN_ERR "%s() .. bInCollection %d\n", __func__, h1->bInCollection);
 		for (i = 0; i < h1->bInCollection; i++)
 			snd_usb_create_stream(chip, ctrlif, h1->baInterfaceNr[i]);
 

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



  reply	other threads:[~2011-05-15 21:30 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-19  7:39 Alsa Support for Korg Pandora Mini, Vox ToneLab ST Pawel Siemienski
2011-04-23  8:52 ` Daniel Mack
2011-05-12 16:01 ` Daniel Mack
2011-05-13  9:25   ` Pawel Siemienski
2011-05-13 12:13     ` Daniel Mack
2011-05-14 16:57   ` Frédéric Jaume
2011-05-14 17:13     ` Grant Diffey
2011-05-14 17:24       ` Daniel Mack
2011-05-14 18:16         ` Daniel Mack
2011-05-14 20:34           ` Frédéric Jaume
2011-05-15 13:12             ` Daniel Mack
2011-05-16  6:56               ` Daniel Mack
2011-05-16 12:57                 ` Felix Homann
2011-05-16 15:20                 ` Grant Diffey
2011-05-16 15:25                   ` Daniel Mack
2011-05-16 18:39                     ` Frédéric Jaume
2011-05-15 17:54           ` Grant Diffey
2011-05-15 20:43             ` Daniel Mack
2011-05-15 21:30               ` Daniel Mack [this message]
2011-05-16  2:55                 ` Grant Diffey
2011-05-16  6:48                   ` Daniel Mack
2011-05-17 13:44                     ` Felix Homann
2011-05-15 23:22               ` Grant Diffey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTimuaynDA+0wq9kqwizL5kp+b+AuLA@mail.gmail.com \
    --to=zonque@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@ladisch.de \
    --cc=frederic.jaume@gmail.com \
    --cc=gdiffey@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).