projects
/
libam7xxx.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
313d4a7
)
am7xxx: detach kernel driver before claiming the interface
author
Antonio Ospite <ao2@ao2.it>
Sun, 25 Jan 2015 23:05:27 +0000
(
00:05
+0100)
committer
Antonio Ospite <ao2@ao2.it>
Sun, 25 Jan 2015 23:05:27 +0000
(
00:05
+0100)
This is needed on some systems like Ubuntu 14.04, but apparently not on
Debian ones.
Thanks-to: Andrea Console <andreaconsole@gmail.com>
src/am7xxx.c
patch
|
blob
|
history
diff --git
a/src/am7xxx.c
b/src/am7xxx.c
index
321a193
..
1b3b758
100644
(file)
--- a/
src/am7xxx.c
+++ b/
src/am7xxx.c
@@
-746,6
+746,8
@@
static int open_device(am7xxx_context *ctx,
}
}
+ libusb_set_auto_detach_kernel_driver((*dev)->usb_device, 1);
+
ret = libusb_claim_interface((*dev)->usb_device,
(*dev)->desc->interface_number);
if (ret < 0) {