[Bug 443861] libusb-0_1-4 incompatible to libusb (breaks USB support in gpsbabel)
http://bugzilla.novell.com/show_bug.cgi?id=443861
User sndirsch@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=443861#c34
--- Comment #34 from Stefan Dirsch
Hi
I think I missed some details here. The command I'm using is
gpsbabel -t -i garmin -f usb: -o gpx -F /tmp/out.gpx
I'm using gpsbabel 1.3.6.
Best regards, Stefan
On Fri, Apr 17, 2009 at 01:47:57PM +0200, Stefan Dirsch wrote:
Hi
Attached you find a fix for Garmin USB support when using libusb-compat. Without this patch Garmin USB support does not work at all. You just see the message:
Could not start session in a reasonable number of tries.
and that's it. libusb-compat is a wrapper library for libusb 1.0 and is supposed to be compatible to libusb 0.1. libusb 1.0 is not compatibel to libusb 0.1.
We fixed the issue also in libusb-compat and reported it upstream, but I think it's a good idea to fix it in both places, i.e. libusb-compat and gpsbabel.
For more details see
https://bugzilla.novell.com/show_bug.cgi?id=443861
or ask Stanislav.
Best regards, Stefan
--- jeeps/gpslibusb.c +++ jeeps/gpslibusb.c @@ -316,13 +316,13 @@ #define EA(x) x & USB_ENDPOINT_ADDRESS_MASK case USB_ENDPOINT_TYPE_BULK: if (ep->bEndpointAddress & USB_ENDPOINT_DIR_MASK) - gusb_bulk_in_ep = EA(ep->bEndpointAddress); + gusb_bulk_in_ep = EA(ep->bEndpointAddress) | USB_ENDPOINT_IN; else gusb_bulk_out_ep = EA(ep->bEndpointAddress); break; case USB_ENDPOINT_TYPE_INTERRUPT: if (ep->bEndpointAddress & USB_ENDPOINT_DIR_MASK) - gusb_intr_in_ep = EA(ep->bEndpointAddress); + gusb_intr_in_ep = EA(ep->bEndpointAddress) | USB_ENDPOINT_IN; break; } }
-- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com