From: Daniel Mack <zonque@gmail.com>
To: Grant Diffey <gdiffey@gmail.com>
Cc: alsa-devel@alsa-project.org, Clemens Ladisch <clemens@ladisch.de>
Subject: Re: Alsa Support for Korg Pandora Mini, Vox ToneLab ST
Date: Mon, 16 May 2011 08:48:11 +0200 [thread overview]
Message-ID: <BANLkTimWSVAGNmfxpXPTWsWAx-MH8WU5KQ@mail.gmail.com> (raw)
In-Reply-To: <BANLkTiksbKfS5QdOobDn=2=o3EwrcYXMtA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1800 bytes --]
On Mon, May 16, 2011 at 4:55 AM, Grant Diffey <gdiffey@gmail.com> wrote:
> On Mon, May 16, 2011 at 7:30 AM, Daniel Mack <zonque@gmail.com> wrote:
>> 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.
>>
>>
> Nothing is leaping out at me after building with he patch above...
Ok, so the reason is clear now to me and it has to do with the way the
device is matched by the driver. Basically, the only thing the drivers
matches on is a standard audio control interface. If that is found,
the USB core calls it to handle that specific interface. Once a
control header is found, it is iterated and MIDI devices are created
when a specific interface associated to the control header is found.
The problem in your case is that the device is matched with a
USB_DEVICE() macro now with no further hints in the quirks table,
which makes the USB core hand over the whole device to the driver, and
not individual interfaces. Because the assumption is that if a driver
announces to handle the whole thing, it knows what it's doing.
In the USB audio driver though, we handle that case by defining a fix
behaviour, which is that only interfaces listed in the quirk are
actually being looked at.
In earlier versions of the driver, the whole quirk for this device was
missing, and hence the last, more generic quirk to look for
MIDI_STREAMING interfaces was applied (the last one in
quirks-table.h). Hence it worked back then but not today.
The solution is most probably rather simple by handling the Fasttrack
as composite device that has non-standard and standard interfaces
mixed. There is a macro for that which we just need to use.
Can you give the attached patch a change?
HTH,
Daniel
[-- Attachment #2: fasttrack-composite.diff --]
[-- Type: application/octet-stream, Size: 445 bytes --]
diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h
index a56fbd8..d8c47f2 100644
--- a/sound/usb/quirks-table.h
+++ b/sound/usb/quirks-table.h
@@ -1979,7 +1979,7 @@ YAMAHA_DEVICE(0x7010, "UB99"),
}
},
{
- USB_DEVICE(0x0763, 0x2080),
+ USB_DEVICE_VENDOR_SPEC(0x0763, 0x2080),
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
/* .vendor_name = "M-Audio", */
/* .product_name = "Fast Track Ultra", */
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2011-05-16 6:48 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
2011-05-16 2:55 ` Grant Diffey
2011-05-16 6:48 ` Daniel Mack [this message]
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=BANLkTimWSVAGNmfxpXPTWsWAx-MH8WU5KQ@mail.gmail.com \
--to=zonque@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=clemens@ladisch.de \
--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).