rpms/bluez-utils/devel bluez-utils-dell-hci.patch, NONE, 1.1 bluez-utils.spec, 1.98, 1.99
Bastien Nocera (hadess)
fedora-extras-commits at redhat.com
Sun Apr 6 22:44:27 UTC 2008
- Previous message (by thread): rpms/lxpanel/F-8 .cvsignore, 1.4, 1.5 lxpanel.spec, 1.6, 1.7 sources, 1.4, 1.5
- Next message (by thread): rpms/poppler/devel poppler-0.8.0-ocg-crash.patch, NONE, 1.1 poppler.spec, 1.69, 1.70
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: hadess
Update of /cvs/pkgs/rpms/bluez-utils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4448
Modified Files:
bluez-utils.spec
Added Files:
bluez-utils-dell-hci.patch
Log Message:
* Sun Apr 06 2008 - Bastien Nocera <bnocera at redhat.com> - 3.30-2
- Add support for Dell HID/HCI switch
bluez-utils-dell-hci.patch:
--- NEW FILE bluez-utils-dell-hci.patch ---
--- bluez-utils-3.26/tools/hid2hci.c 2008-02-01 17:16:34.000000000 -0600
+++ bluez-utils-3.26/tools/hid2hci.c 2008-04-05 10:57:17.000000000 -0500
@@ -211,6 +211,41 @@
return err;
}
+static int switch_dell(struct device_info *devinfo)
+{
+ char report[] = { 0x7F, 0x13, 0x00, 0x00};
+
+ struct usb_dev_handle *handle;
+ int err;
+
+ /* release any locks that the kernel may have on this device */
+ handle = usb_open(devinfo->dev);
+ if (handle) {
+ usb_claim_interface(handle, 0);
+ usb_detach_kernel_driver_np(handle,0);
+ }
+
+ /* switch device modes */
+ err = usb_control_msg(handle,
+ USB_ENDPOINT_OUT + USB_TYPE_CLASS + USB_RECIP_INTERFACE,
+ 0x09,
+ 0x7f + (0x03 << 8),
+ 0,
+ (char*)report, 4, 10000);
+
+ if (err == 0) {
+ err = -1;
+ errno = EALREADY;
+ } else {
+ if (errno == ETIMEDOUT)
+ err = 0;
+ }
+
+ usb_close(handle);
+
+ return err;
+}
+
static struct device_id device_list[] = {
{ HCI, 0x0a12, 0x1000, switch_hidproxy },
{ HID, 0x0a12, 0x0001, switch_hidproxy },
@@ -229,6 +264,8 @@
{ HCI, 0x046d, 0xc70e, switch_logitech }, /* Logitech diNovo keyboard */
{ HCI, 0x046d, 0xc713, switch_logitech }, /* Logitech diNovo Edge */
{ HCI, 0x046d, 0xc714, switch_logitech }, /* Logitech diNovo Edge */
+ { HCI, 0x413c, 0x8158, switch_dell }, /* Dell Wireless 370 */
+ { HCI, 0x413c, 0x8154, switch_dell }, /* Dell Wireless 410 */
{ -1 }
};
Index: bluez-utils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/bluez-utils/devel/bluez-utils.spec,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -r1.98 -r1.99
--- bluez-utils.spec 4 Apr 2008 11:09:13 -0000 1.98
+++ bluez-utils.spec 6 Apr 2008 22:43:48 -0000 1.99
@@ -1,7 +1,7 @@
Summary: Bluetooth utilities
Name: bluez-utils
Version: 3.30
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+
Group: Applications/System
Source: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
@@ -13,6 +13,8 @@
Source9: bluetooth.conf
Patch0: bluez-utils-2.3-conf.patch
Patch1: bluez-utils-oui-usage.patch
+# http://thread.gmane.org/gmane.linux.bluez.devel/15604
+Patch2: bluez-utils-dell-hci.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
URL: http://www.bluez.org/
@@ -74,6 +76,7 @@
%setup -q
%patch0 -p1
%patch1 -p0 -b .oui
+%patch2 -p1 -b .dell
%build
%configure --with-bluez-libs=%{_libdir} --enable-pie --enable-debug \
@@ -160,6 +163,9 @@
%{_libdir}/alsa-lib/*.so
%changelog
+* Sun Apr 06 2008 - Bastien Nocera <bnocera at redhat.com> - 3.30-2
+- Add support for Dell HID/HCI switch
+
* Fri Apr 04 2008 - Bastien Nocera <bnocera at redhat.com> - 3.30-1
- Update to 3.30
- Previous message (by thread): rpms/lxpanel/F-8 .cvsignore, 1.4, 1.5 lxpanel.spec, 1.6, 1.7 sources, 1.4, 1.5
- Next message (by thread): rpms/poppler/devel poppler-0.8.0-ocg-crash.patch, NONE, 1.1 poppler.spec, 1.69, 1.70
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list