diff options
| author | 2009-09-23 13:23:22 +0200 | |
|---|---|---|
| committer | 2009-09-23 13:23:22 +0200 | |
| commit | b6e197667f5c94edca5f6617b897cf9b879e4a2a (patch) | |
| tree | 769b016e87a3764e22014739f2294b1054219171 /daemon | |
| parent | a93c66e2bff0065ad2ac93998048f065e51a784c (diff) | |
| download | usbmuxd-b6e197667f5c94edca5f6617b897cf9b879e4a2a.tar.gz usbmuxd-b6e197667f5c94edca5f6617b897cf9b879e4a2a.tar.bz2 | |
Match a range of supported USB IDs and make iPod Touch 64GB work
Diffstat (limited to 'daemon')
| -rw-r--r-- | daemon/usb-linux.c | 7 | ||||
| -rw-r--r-- | daemon/usb.h | 7 |
2 files changed, 4 insertions, 10 deletions
diff --git a/daemon/usb-linux.c b/daemon/usb-linux.c index 6f25ed4..f1be612 100644 --- a/daemon/usb-linux.c +++ b/daemon/usb-linux.c | |||
| @@ -274,11 +274,8 @@ static int usb_discover(void) | |||
| 274 | } | 274 | } |
| 275 | if(devdesc.idVendor != VID_APPLE) | 275 | if(devdesc.idVendor != VID_APPLE) |
| 276 | continue; | 276 | continue; |
| 277 | if( (devdesc.idProduct != PID_IPHONE2G) && | 277 | if((devdesc.idProduct < PID_RANGE_LOW) && |
| 278 | (devdesc.idProduct != PID_ITOUCH1G) && | 278 | (devdesc.idProduct > PID_RANGE_MAX)) |
| 279 | (devdesc.idProduct != PID_IPHONE3G) && | ||
| 280 | (devdesc.idProduct != PID_ITOUCH2G) && | ||
| 281 | (devdesc.idProduct != PID_IPHONE3GS)) | ||
| 282 | continue; | 279 | continue; |
| 283 | libusb_device_handle *handle; | 280 | libusb_device_handle *handle; |
| 284 | usbmuxd_log(LL_INFO, "Found new device with v/p %04x:%04x at %d-%d", devdesc.idVendor, devdesc.idProduct, bus, address); | 281 | usbmuxd_log(LL_INFO, "Found new device with v/p %04x:%04x at %d-%d", devdesc.idVendor, devdesc.idProduct, bus, address); |
diff --git a/daemon/usb.h b/daemon/usb.h index 621ccb2..7e20dce 100644 --- a/daemon/usb.h +++ b/daemon/usb.h | |||
| @@ -42,11 +42,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
| 42 | #define USB_PACKET_SIZE 512 | 42 | #define USB_PACKET_SIZE 512 |
| 43 | 43 | ||
| 44 | #define VID_APPLE 0x5ac | 44 | #define VID_APPLE 0x5ac |
| 45 | #define PID_IPHONE2G 0x1290 | 45 | #define PID_RANGE_LOW 0x1290 |
| 46 | #define PID_ITOUCH1G 0x1291 | 46 | #define PID_RANGE_MAX 0x1299 |
| 47 | #define PID_IPHONE3G 0x1292 | ||
| 48 | #define PID_ITOUCH2G 0x1293 | ||
| 49 | #define PID_IPHONE3GS 0x1294 | ||
| 50 | 47 | ||
| 51 | #define USB_INTERFACE 1 | 48 | #define USB_INTERFACE 1 |
| 52 | 49 | ||
