Re: iPod Touch dmesg noise -> ugen(4).
On Tue, Jul 19, 2011 at 07:21:05PM -0400, Brynet wrote: > The userland stuff I found depends on libusb-1.x which currently lacks an > OpenBSD backend. > > So this is pretty much just a cosmetic change until we get that or people > stop > using libusb 1.x and use the widely ported libusb-0.x. > > So this can be ignored, but still a step in the right direction. > > -Bryan. I just noticed that the device supports PTP mode, so with the patch I can upload/download files to the device using the gphoto2 port. So I guess it would help for it to go in, any comments? -Bryan. Index: uaudio.c === RCS file: /cvs/src/sys/dev/usb/uaudio.c,v retrieving revision 1.92 diff -u -r1.92 uaudio.c --- uaudio.c3 Jul 2011 15:47:17 - 1.92 +++ uaudio.c19 Jul 2011 21:09:45 - @@ -187,6 +187,8 @@ UAUDIO_FLAG_BAD_ADC } , { { USB_VENDOR_ALTEC, USB_PRODUCT_ALTEC_ASC495 }, UAUDIO_FLAG_BAD_AUDIO }, + { { USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPOD_4G }, + UAUDIO_FLAG_BAD_AUDIO }, { { USB_VENDOR_CREATIVE, USB_PRODUCT_CREATIVE_EMU0202 }, UAUDIO_FLAG_VENDOR_CLASS | UAUDIO_FLAG_EMU0202 | UAUDIO_FLAG_DEPENDENT }, 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 --- usb_quirks.c9 Mar 2011 17:03:06 - 1.64 +++ usb_quirks.c19 Jul 2011 21:09:45 - @@ -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 --- usbdevs 8 Jul 2011 23:09:06 - 1.548 +++ usbdevs 19 Jul 2011 21:09:46 - @@ -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 BLUETOOTH0x8300 Bluetooth
Re: iPod Touch dmesg noise -> ugen(4).
The userland stuff I found depends on libusb-1.x which currently lacks an OpenBSD backend. So this is pretty much just a cosmetic change until we get that or people stop using libusb 1.x and use the widely ported libusb-0.x. So this can be ignored, but still a step in the right direction. -Bryan.
Re: iPod Touch dmesg noise -> ugen(4).
On Tue, Jul 19, 2011 at 05:13:07PM -0400, Brynet wrote: > Whoops, got the order wrong in uaudio.. I think the rest is right. > > Thanks brad for noticing. > > -Bryan. Might help to attach it, eh? :-) Index: uaudio.c === RCS file: /cvs/src/sys/dev/usb/uaudio.c,v retrieving revision 1.92 diff -u -r1.92 uaudio.c --- uaudio.c3 Jul 2011 15:47:17 - 1.92 +++ uaudio.c19 Jul 2011 21:09:45 - @@ -187,6 +187,8 @@ UAUDIO_FLAG_BAD_ADC } , { { USB_VENDOR_ALTEC, USB_PRODUCT_ALTEC_ASC495 }, UAUDIO_FLAG_BAD_AUDIO }, + { { USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPOD_4G }, + UAUDIO_FLAG_BAD_AUDIO }, { { USB_VENDOR_CREATIVE, USB_PRODUCT_CREATIVE_EMU0202 }, UAUDIO_FLAG_VENDOR_CLASS | UAUDIO_FLAG_EMU0202 | UAUDIO_FLAG_DEPENDENT }, 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 --- usb_quirks.c9 Mar 2011 17:03:06 - 1.64 +++ usb_quirks.c19 Jul 2011 21:09:45 - @@ -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 --- usbdevs 8 Jul 2011 23:09:06 - 1.548 +++ usbdevs 19 Jul 2011 21:09:46 - @@ -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 BLUETOOTH0x8300 Bluetooth
Re: iPod Touch dmesg noise -> ugen(4).
Whoops, got the order wrong in uaudio.. I think the rest is right. Thanks brad for noticing. -Bryan.
iPod Touch dmesg noise -> ugen(4).
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.c3 Jul 2011 15:47:17 - 1.92 +++ dev/usb/uaudio.c17 Jul 2011 00:04:11 - @@ -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.c9 Mar 2011 17:03:06 - 1.64 +++ dev/usb/usb_quirks.c17 Jul 2011 00:04:11 - @@ -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 - 1.548 +++ dev/usb/usbdevs 17 Jul 2011 00:04:12 - @@ -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 BLUETOOTH0x8300 Bluetooth