Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple configurations problem



Title: Re: Multiple configurations problem
On 6/28/05 11:23 PM, "Fernando Urbina" <email@hidden> wrote:

With respect to your other problem:  We do not just use the bNumInterfaces field of the config descriptor to figure out how many interfaces there are:  We start with that and allocate our structures depending on bNumInterfaces.  However, we then go and find all the interface descriptors using FindNextDescriptor.  As you see in the sources, we iterate from i = 0 to i < bNumInterfaces.  However, we then check to see if we actually found the interfaceDescritpor before proceeding.  So, my guess is that your config descriptor does not actually have 6 interface descriptors but only 5.  Do you have a CATC trace where we get the full configuration descriptor?  This will show us how many interface descriptors there are.  You could also look at your config descriptor dump, but I'm guessing that it would be painful to decode all the descriptors in it.

When I call GetFullConfigurationDescriptor(0) I get 332 bytes of descriptors with 5 interfaces, and when I call GetFullConfigurationDescriptor(1) I get 1099 bytes and a set with 6 interface descriptors.  I’ve done a quick hand parse of the second set, paying particular attention to the last two interfaces, and I don’t see anything wrong with them.  I’d be happy to send you the two (reasonably nicely formatted) hex dumps that I have, though I’m not inclined to post them.

Prober still doesn’t parse Audio Streaming MIDI interfaces, and since that’s the second interface in both descriptor sets, it gags and shows the same thing for both configurations, even though they are quite different.

Unfortunately, I don’t have a CATC here, it’s located in the office of the guy doing the firmware development, but at this point, I’m pretty sure the right information is going over the bus.

Can you give a quick how-to on how to make and install the debug build of IOUSBFamily.kext so that I can add some more logging to it in an attempt to figure out why it’s not finding that last interface?

Thanks,
Mark
--
Mark Cookson
M-Audio, a part of Avid
225 Locust St.
Hudson, WI 54016
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden

References: 
 >Re: Multiple configurations problem (From: Fernando Urbina <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.