From bb33ccdf06f261dca033d70772bc256c890c76f7 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Fri, 19 Jun 2009 14:34:16 +0200 Subject: Add product ids to support iPhone 3GS Signed-off-by: Nikias Bassen --- src/main.c | 4 ++-- udev/85-usbmuxd.rules.in | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index 1ee2480..1a62f17 100644 --- a/src/main.c +++ b/src/main.c @@ -662,7 +662,7 @@ static void *usbmuxd_client_init_thread(void *arg) for (dev = bus->devices; dev; dev = dev->next) { if (dev->descriptor.idVendor == 0x05ac && dev->descriptor.idProduct >= 0x1290 - && dev->descriptor.idProduct <= 0x1293) { + && dev->descriptor.idProduct <= 0x1294) { if (verbose >= 1) logmsg(LOG_NOTICE, "%s[%x]: Found device on bus %s, id %s", @@ -1072,7 +1072,7 @@ static int devices_attached() for (dev = bus->devices; dev; dev = dev->next) { if (dev->descriptor.idVendor == 0x05ac && dev->descriptor.idProduct >= 0x1290 - && dev->descriptor.idProduct <= 0x1293) { + && dev->descriptor.idProduct <= 0x1294) { res++; } } diff --git a/udev/85-usbmuxd.rules.in b/udev/85-usbmuxd.rules.in index 3acc944..4f28cdf 100644 --- a/udev/85-usbmuxd.rules.in +++ b/udev/85-usbmuxd.rules.in @@ -3,8 +3,8 @@ # Skip anything non Apple ACTION=="add|remove", SUBSYSTEM!="usb|usb_endpoint", ATTRS{idVendor}!="05ac", GOTO="usbmuxd_rules_end" -# Forces iPhone 1.0, 3G and iPodTouch 1 and 2 to USB configuration 3 -ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="1290|1291|1292|1293", ATTR{bConfigurationValue}!="3", ATTR{bConfigurationValue}="3", GOTO="usbmuxd_rules_end" +# Forces iPhone 1.0, 3G, 3GS and iPodTouch 1 and 2 to USB configuration 3 +ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="1290|1291|1292|1293|1294", ATTR{bConfigurationValue}!="3", ATTR{bConfigurationValue}="3", GOTO="usbmuxd_rules_end" LABEL="usbmuxd_rules_usbmux" -- cgit v1.1-32-gdbae