Update hid2hci tool from udev codebase
Subsystems (2)
PATCH 1/1 Update hid2hci tool from udev codebase
commit 4a2b9643b6e81d12c3c5fb863d1cca353437e102
Author: Kay Sievers <[email protected]> Date: Thu Apr 28 11:02:24 2011 +0200
Update hid2hci tool from udev codebase
Makefile.tools +1 -1
@@ -102,7 +102,7 @@ endif if HID2HCI sbin_PROGRAMS += tools/hid2hci -tools_hid2hci_LDADD = @USB_LIBS@ +tools_hid2hci_LDADD = @USB_LIBS@ @UDEV_LIBS@ dist_man_MANS += tools/hid2hci.8 else
acinclude.m4 +6 -0
@@ -148,6 +148,12 @@ AC_DEFUN([AC_PATH_USB], [ [Define to 1 if you need the usb_interrupt_read() function.])) ]) +AC_DEFUN([AC_PATH_UDEV], [ + PKG_CHECK_MODULES(UDEV, libudev, udev_found=yes, udev_found=no) + AC_SUBST(UDEV_CFLAGS) + AC_SUBST(UDEV_LIBS) +]) + AC_DEFUN([AC_PATH_SNDFILE], [ PKG_CHECK_MODULES(SNDFILE, sndfile, sndfile_found=yes, sndfile_found=no) AC_SUBST(SNDFILE_CFLAGS)
configure.ac +1 -0
@@ -40,6 +40,7 @@ AC_PATH_GLIB AC_PATH_ALSA AC_PATH_GSTREAMER AC_PATH_USB +AC_PATH_UDEV AC_PATH_SNDFILE AC_PATH_OUI AC_PATH_READLINE
scripts/bluetooth-hid2hci.rules +26 -32
62 lines not on this page · raw message
tools/hid2hci.8 +8 -13
@@ -29,23 +29,18 @@ is used to set up switch supported Bluetooth devices into the HCI mode and back. .SH OPTIONS .TP -.BI -h -Gives a list of possible options. -.TP -.BI -q -Don't display any messages. -.TP -.BI -r [hid,hci] +.B --mode= [hid, hci] Sets the mode to switch the device into .TP -.BI -v -Specifies the 4 digit vendor ID assigned to the device being switched +.B --method= [csr, logitech-hid, dell] +Which vendor method to use for switching the device. .TP -.BI -p -Specifies the 4 digit product ID assigned to the device being switched +.B --devpath= +Specifies the device path in /sys +.TP +.B --help +Gives a list of possible options. .TP -.BI -m [csr, logitech, dell] -Which vendor method to use for switching the device. .SH AUTHOR Written by Marcel Holtmann <[email protected]>. .br
tools/hid2hci.c +205 -229
531 lines not on this page · raw message
Hi Kay,
Quoted 5 lines · Kay Sievers
commit
4a2b9643b6e81d12c3c5fb863d1cca353437e102Author: Kay Sievers <[email protected]> Date: Thu Apr 28 11:02:24 2011 +0200Update hid2hci tool from udev codebase
Pushed upstream. Thanks.
Johan