I won an iPod, apparently there is some libusb crap out there now that may make
things more useful from userland.
By default, it attaches as a broken uaudio device with no mixer controls and a
bunch of silly hid devices.
Probably more needed for other iTurd.
-Bryan.
Index: uaudio.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/uaudio.c,v
retrieving revision 1.92
diff -u -r1.92 uaudio.c
--- dev/usb/uaudio.c 3 Jul 2011 15:47:17 -0000 1.92
+++ dev/usb/uaudio.c 17 Jul 2011 00:04:11 -0000
@@ -183,6 +183,8 @@
struct usb_devno uv_dev;
int flags;
} uaudio_devs[] = {
+ { { USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPOD_4G },
+ UAUDIO_FLAG_BAD_AUDIO },
{ { USB_VENDOR_ALTEC, USB_PRODUCT_ALTEC_ADA70 },
UAUDIO_FLAG_BAD_ADC } ,
{ { USB_VENDOR_ALTEC, USB_PRODUCT_ALTEC_ASC495 },
Index: usb_quirks.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/usb_quirks.c,v
retrieving revision 1.64
diff -u -r1.64 usb_quirks.c
--- dev/usb/usb_quirks.c 9 Mar 2011 17:03:06 -0000 1.64
+++ dev/usb/usb_quirks.c 17 Jul 2011 00:04:11 -0000
@@ -112,6 +112,7 @@
{ USB_VENDOR_APC, USB_PRODUCT_APC_UPS, ANY, {
UQ_BAD_HID }},
{ USB_VENDOR_APC, USB_PRODUCT_APC_UPS5G, ANY, { UQ_BAD_HID }},
{ USB_VENDOR_APPLE, USB_PRODUCT_APPLE_SPEAKERS, ANY, { UQ_BAD_HID }},
+ { USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPOD_4G, ANY, { UQ_BAD_HID }},
{ USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C100, ANY, { UQ_BAD_HID }},
{ USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C120, ANY, { UQ_BAD_HID }},
{ USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C550AVR, ANY, { UQ_BAD_HID }},
Index: usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.548
diff -u -r1.548 usbdevs
--- dev/usb/usbdevs 8 Jul 2011 23:09:06 -0000 1.548
+++ dev/usb/usbdevs 17 Jul 2011 00:04:12 -0000
@@ -877,6 +877,7 @@
product APPLE OPTMOUSE 0x0302 Optical mouse
product APPLE ADB 0x1000 ADB device
product APPLE SPEAKERS 0x1101 Speakers
+product APPLE IPOD_4G 0x129e iPod Touch 4G
product APPLE ETHERNET 0x1402 Ethernet A1277
product APPLE BLUETOOTH2 0x8205 Bluetooth
product APPLE BLUETOOTH 0x8300 Bluetooth