<br><div class="gmail_quote">2009/9/3 Charles Lepple <span dir="ltr">&lt;<a href="mailto:clepple@gmail.com">clepple@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is there a particular reason why we are setting the alternate<br>
interface to 0 in drivers/libusb.c?<br>
<br>
I have seen some documentation which indicates that this should<br>
already done by the OS when the device is enumerated. If that is the<br>
case, then there is no reason why we should hardcode the alternate<br>
interface to 0.<br></blockquote><div><br>iirc, this is indeed done automatically on Linux (and possibly OSX) when there&#39;s only one interface (the same goes for the config). but it&#39;s not the case on windows.<br> </div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If I remove the following code, tripplite_usb seems to work*:<br>
<br>
                        /* set default interface */<br>
                       usb_set_altinterface(udev, 0);<br></blockquote><div><br>prefer to flag it for windows (#ifdef WIN32...) so that we don&#39;t face a problem when porting to windows.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Any objections to removing this? Can I get some volunteers to try this<br>
out on their non-OS X systems?<br>
<br>
I am using libusb-0.1.12 on Mac OS X 10.5.8.<br>
<br>
* I did have to monkey with a codeless kext in order to allow libusb<br>
to claim the device. However, it doesn&#39;t seem like OS X allows you to<br>
bypass the claim operation anymore.<br></blockquote></div><br clear="all">I&#39;ll be interested in the result since usbhid-ups, bcmxcp_usb and richcomm are in the same case.<br>I&#39;ll try to make an OS X test on usbhid-ups with an Eaton...<br>
<br>cheers,<br>Arnaud<br>-- <br>Linux / Unix Expert R&amp;D - Eaton - <a href="http://www.eaton.com/mgeops">http://www.eaton.com/mgeops</a><br>Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/">http://www.networkupstools.org/</a><br>
Debian Developer - <a href="http://www.debian.org">http://www.debian.org</a><br>Free Software Developer - <a href="http://arnaud.quette.free.fr/">http://arnaud.quette.free.fr/</a><br>