diff options
author | marcus <marcus@FreeBSD.org> | 2011-07-03 02:21:45 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2011-07-03 02:21:45 +0800 |
commit | 514c589dc1d61a0634acde9e52e1d95efc4cd6c1 (patch) | |
tree | cb8d5d8a7c30cba826eeada125fefb6a4984d347 /sysutils | |
parent | 2fb14e2259d76525fdf79eb930159a9cbb36f169 (diff) | |
download | freebsd-ports-gnome-514c589dc1d61a0634acde9e52e1d95efc4cd6c1.tar.gz freebsd-ports-gnome-514c589dc1d61a0634acde9e52e1d95efc4cd6c1.tar.zst freebsd-ports-gnome-514c589dc1d61a0634acde9e52e1d95efc4cd6c1.zip |
Fix some minor issues with USB device properties.
Submitted by: hps
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/hal/Makefile | 2 | ||||
-rw-r--r-- | sysutils/hal/files/patch-hald_freebsd_probe-usb2-device.c | 32 |
2 files changed, 33 insertions, 1 deletions
diff --git a/sysutils/hal/Makefile b/sysutils/hal/Makefile index 5e97f9e9a43d..356b4bb40542 100644 --- a/sysutils/hal/Makefile +++ b/sysutils/hal/Makefile @@ -8,7 +8,7 @@ PORTNAME= hal DISTVERSION= 0.5.14 -PORTREVISION= 15 +PORTREVISION= 16 CATEGORIES= sysutils MASTER_SITES= http://hal.freedesktop.org/releases/ diff --git a/sysutils/hal/files/patch-hald_freebsd_probe-usb2-device.c b/sysutils/hal/files/patch-hald_freebsd_probe-usb2-device.c new file mode 100644 index 000000000000..35a8690095d8 --- /dev/null +++ b/sysutils/hal/files/patch-hald_freebsd_probe-usb2-device.c @@ -0,0 +1,32 @@ +--- hald/freebsd/probing/probe-usb2-device.c.orig 2011-06-30 13:46:55.000000000 +0200 ++++ hald/freebsd/probing/probe-usb2-device.c 2011-06-30 13:49:19.000000000 +0200 +@@ -148,15 +148,16 @@ + bcdspeed = 0x01200; + break; + case LIBUSB20_SPEED_HIGH: ++ case LIBUSB20_SPEED_VARIABLE: + speed = 480.0; + bcdspeed = 0x48000; + break; + case LIBUSB20_SPEED_SUPER: +- speed = 4800.0; +- bcdspeed = 0x480000; ++ speed = 5000.0; ++ bcdspeed = 0x500000; + break; + default: +- ; ++ break; + } + + libhal_device_set_property_double(hfp_ctx, hfp_udi, "usb_device.speed", +@@ -169,6 +170,9 @@ + case UD_USB_2_0: + version = 2.0; + break; ++ case 0x0250: ++ version = 2.5; ++ break; + case UD_USB_3_0: + version = 3.0; + break; |