Re: Webcam detected as uaudio(4) device
On Sun, Mar 20, 2011 at 11:47:19AM -0600, Anthony J. Bentley wrote: > Hi Jacob, > > > > uaudio0 at uhub1 port 1 configuration 1 interface 1 "Logitech Camera" rev > > > 2.0 > > 0/1.00 addr 2 > > > uaudio0: audio descriptors make no sense, error=4 > > > ugen0 at uhub1 port 1 configuration 1 "Logitech Camera" rev 2.00/1.00 > > > addr 2 > > > > > > Should it should be connecting to uvideo(4) instead? > > > > > > > > > usbdevs -v: > > > > you need to look at the descriptors. usbctl from the usbutil package. > > > > > Controller /dev/usb0: > > > > > port 5 addr 4: high speed, power 500 mA, config 1, BisonCam, NB > > > Pro(0x0203 > > ), Bison Electronics Inc.(0x5986), rev 3.08 > > > > usbctl -f /dev/usb0 -a 4 > > Here is the output of usbctl -f /dev/usb1 -a 2. (The BisonCam is a > different built-in webcam that works.) Someone pointed out that the > Logitech may have a microphone built in that makes it come up as uaudio. > But even then it doesn't work--comes up as /dev/uaudio0 in the log, but > "ls /dev/uaudio0" says it doesn't exist. there won't ever be a /dev/uaudio*. you only get access to the generic audio(4) interface for all audio devices. > DEVICE addr 2 > DEVICE descriptor: > bLength=18 bDescriptorType=device(1) bcdUSB=2.00 bDeviceClass=255 > bDeviceSubClass=255 > bDeviceProtocol=255 bMaxPacketSize=8 idVendor=0x046d idProduct=0x08f5 > bcdDevice=100 > iManufacturer=0() iProduct=1(Camera) iSerialNumber=0() bNumConfigurations=1 > > CONFIGURATION descriptor 0: > bLength=9 bDescriptorType=config(2) wTotalLength=173 bNumInterface=3 > bConfigurationValue=1 iConfiguration=0() bmAttributes=80 bMaxPower=100 mA > > INTERFACE descriptor 0: > bLength=9 bDescriptorType=interface(4) bInterfaceNumber=0 bAlternateSetting=0 > bNumEndpoints=2 bInterfaceClass=255 bInterfaceSubClass=255 > bInterfaceProtocol=255 iInterface=0() > > ENDPOINT descriptor: > bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=1-in > bmAttributes=isochronous wMaxPacketSize=0 bInterval=1 > > ENDPOINT descriptor: > bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=2-in > bmAttributes=interrupt wMaxPacketSize=1 bInterval=16 > > INTERFACE descriptor 1: > bLength=9 bDescriptorType=interface(4) bInterfaceNumber=0 bAlternateSetting=1 > bNumEndpoints=2 bInterfaceClass=255 bInterfaceSubClass=255 > bInterfaceProtocol=255 iInterface=0() > > ENDPOINT descriptor: > bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=1-in > bmAttributes=isochronous wMaxPacketSize=1023 bInterval=1 > > ENDPOINT descriptor: > bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=2-in > bmAttributes=interrupt wMaxPacketSize=1 bInterval=16 > the above interfaces are probably the video interfaces. they are not uvc compliant. below are all audio interfaces. this claims to be usb audio 2.0 compliant. uaudio(4) does not have full support for usb audio 2.0 at this time. > INTERFACE descriptor 2: > bLength=9 bDescriptorType=interface(4) bInterfaceNumber=1 bAlternateSetting=0 > bNumEndpoints=0 bInterfaceClass=1 bInterfaceSubClass=1 > bInterfaceProtocol=0 iInterface=0() > > AC interface descriptor > bLength=9 bDescriptorType=cs_interface(36) bDescriptorSubtype=header(1) > bcdADC=2.00 > wTotalLength=39 bInCollection=1 > baInterfaceNr[0]=2 > > AC unit descriptor > Input terminal descriptor > bLength=12 bDescriptorType=cs_interface(36) bDescriptorSubtype=2 > bTerminalId=1 wTerminalType=513 bAssocTerminal=0 > bNrChannels=1 wChannelConfig= > iChannelNames=0 iTerminal=0 > > AC unit descriptor > Feature unit descriptor > bLength=9 bDescriptorType=cs_interface(36) bDescriptorSubtype=6 > bUnitId=2 bSourceId=1 bControlSize=2 > bmaControls[0]=0043 > > AC unit descriptor > Output terminal descriptor > bLength=9 bDescriptorType=cs_interface(36) bDescriptorSubtype=3 > bTerminalId=3 wTerminalType=257 bAssocTerminal=0 > bSourceId=2 iTerminal=0 > > INTERFACE descriptor 3: > bLength=9 bDescriptorType=interface(4) bInterfaceNumber=2 bAlternateSetting=0 > bNumEndpoints=1 bInterfaceClass=1 bInterfaceSubClass=2 > bInterfaceProtocol=0 iInterface=0() > > ENDPOINT descriptor: > bLength=9 bDescriptorType=endpoint(5) bEndpointAddress=3-in > bmAttributes=isochronous wMaxPacketSize=0 bInterval=1 > > INTERFACE descriptor 4: > bLength=9 bDescriptorType=interface(4) bInterfaceNumber=2 bAlternateSetting=1 > bNumEndpoints=1 bInterfaceClass=1 bInterfaceSubClass=2 > bInterfaceProtocol=0 iInterface=0() > > bLength=7 bDescriptorType=cs_interface(36) bDescriptorSubtype=as_general(1) > bTerminalLink=3 bDelay=1 wFormatTag=1 > > bLength=20 bDescriptorType=cs_interface(36) bDescriptorSubtype=format_type(2) > bFormatType=1 bNrChannels=1 bSubFrameSize=2 > bBitResolution=16 bSamFreqType=4 > tSamFreq[0]=8000 > tSamFreq[1]=11025 > tSamFreq[2]=16000 > tSamFreq[3]=22050 > > ENDPOINT descriptor: > bLength=9 bDescriptorType=endpoint(5) bEndpointAddress=3-in > bmAttributes=isochronous wMaxPacketSize=52 bInterval=1 > > bLength=7 bDescriptorType=cs_endpoint(37) bDescriptorSubtype=as_ge
Re: Webcam detected as uaudio(4) device
Hi Jacob, > > uaudio0 at uhub1 port 1 configuration 1 interface 1 "Logitech Camera" rev > > 2.0 > 0/1.00 addr 2 > > uaudio0: audio descriptors make no sense, error=4 > > ugen0 at uhub1 port 1 configuration 1 "Logitech Camera" rev 2.00/1.00 addr 2 > > > > Should it should be connecting to uvideo(4) instead? > > > > > > usbdevs -v: > > you need to look at the descriptors. usbctl from the usbutil package. > > > Controller /dev/usb0: > > > port 5 addr 4: high speed, power 500 mA, config 1, BisonCam, NB Pro(0x0203 > ), Bison Electronics Inc.(0x5986), rev 3.08 > > usbctl -f /dev/usb0 -a 4 Here is the output of usbctl -f /dev/usb1 -a 2. (The BisonCam is a different built-in webcam that works.) Someone pointed out that the Logitech may have a microphone built in that makes it come up as uaudio. But even then it doesn't work--comes up as /dev/uaudio0 in the log, but "ls /dev/uaudio0" says it doesn't exist. DEVICE addr 2 DEVICE descriptor: bLength=18 bDescriptorType=device(1) bcdUSB=2.00 bDeviceClass=255 bDeviceSubClass=255 bDeviceProtocol=255 bMaxPacketSize=8 idVendor=0x046d idProduct=0x08f5 bcdDevice=100 iManufacturer=0() iProduct=1(Camera) iSerialNumber=0() bNumConfigurations=1 CONFIGURATION descriptor 0: bLength=9 bDescriptorType=config(2) wTotalLength=173 bNumInterface=3 bConfigurationValue=1 iConfiguration=0() bmAttributes=80 bMaxPower=100 mA INTERFACE descriptor 0: bLength=9 bDescriptorType=interface(4) bInterfaceNumber=0 bAlternateSetting=0 bNumEndpoints=2 bInterfaceClass=255 bInterfaceSubClass=255 bInterfaceProtocol=255 iInterface=0() ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=1-in bmAttributes=isochronous wMaxPacketSize=0 bInterval=1 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=2-in bmAttributes=interrupt wMaxPacketSize=1 bInterval=16 INTERFACE descriptor 1: bLength=9 bDescriptorType=interface(4) bInterfaceNumber=0 bAlternateSetting=1 bNumEndpoints=2 bInterfaceClass=255 bInterfaceSubClass=255 bInterfaceProtocol=255 iInterface=0() ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=1-in bmAttributes=isochronous wMaxPacketSize=1023 bInterval=1 ENDPOINT descriptor: bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=2-in bmAttributes=interrupt wMaxPacketSize=1 bInterval=16 INTERFACE descriptor 2: bLength=9 bDescriptorType=interface(4) bInterfaceNumber=1 bAlternateSetting=0 bNumEndpoints=0 bInterfaceClass=1 bInterfaceSubClass=1 bInterfaceProtocol=0 iInterface=0() AC interface descriptor bLength=9 bDescriptorType=cs_interface(36) bDescriptorSubtype=header(1) bcdADC=2.00 wTotalLength=39 bInCollection=1 baInterfaceNr[0]=2 AC unit descriptor Input terminal descriptor bLength=12 bDescriptorType=cs_interface(36) bDescriptorSubtype=2 bTerminalId=1 wTerminalType=513 bAssocTerminal=0 bNrChannels=1 wChannelConfig= iChannelNames=0 iTerminal=0 AC unit descriptor Feature unit descriptor bLength=9 bDescriptorType=cs_interface(36) bDescriptorSubtype=6 bUnitId=2 bSourceId=1 bControlSize=2 bmaControls[0]=0043 AC unit descriptor Output terminal descriptor bLength=9 bDescriptorType=cs_interface(36) bDescriptorSubtype=3 bTerminalId=3 wTerminalType=257 bAssocTerminal=0 bSourceId=2 iTerminal=0 INTERFACE descriptor 3: bLength=9 bDescriptorType=interface(4) bInterfaceNumber=2 bAlternateSetting=0 bNumEndpoints=1 bInterfaceClass=1 bInterfaceSubClass=2 bInterfaceProtocol=0 iInterface=0() ENDPOINT descriptor: bLength=9 bDescriptorType=endpoint(5) bEndpointAddress=3-in bmAttributes=isochronous wMaxPacketSize=0 bInterval=1 INTERFACE descriptor 4: bLength=9 bDescriptorType=interface(4) bInterfaceNumber=2 bAlternateSetting=1 bNumEndpoints=1 bInterfaceClass=1 bInterfaceSubClass=2 bInterfaceProtocol=0 iInterface=0() bLength=7 bDescriptorType=cs_interface(36) bDescriptorSubtype=as_general(1) bTerminalLink=3 bDelay=1 wFormatTag=1 bLength=20 bDescriptorType=cs_interface(36) bDescriptorSubtype=format_type(2) bFormatType=1 bNrChannels=1 bSubFrameSize=2 bBitResolution=16 bSamFreqType=4 tSamFreq[0]=8000 tSamFreq[1]=11025 tSamFreq[2]=16000 tSamFreq[3]=22050 ENDPOINT descriptor: bLength=9 bDescriptorType=endpoint(5) bEndpointAddress=3-in bmAttributes=isochronous wMaxPacketSize=52 bInterval=1 bLength=7 bDescriptorType=cs_endpoint(37) bDescriptorSubtype=as_general(1) bmAttributes=1 bLockDelayUnits=0 wLockDelay=0 current configuration 1 --
Re: Webcam detected as uaudio(4) device
On Sat, Mar 19, 2011 at 05:06:44PM -0600, Anthony J. Bentley wrote: > Hi, > > I have a USB webcam. No model number on the cam, but looks to be a > Logitech QuickCam Communicate STX. > > When I plug it in, I get this: > > uaudio0 at uhub1 port 1 configuration 1 interface 1 "Logitech Camera" rev > 2.00/1.00 addr 2 > uaudio0: audio descriptors make no sense, error=4 > ugen0 at uhub1 port 1 configuration 1 "Logitech Camera" rev 2.00/1.00 addr 2 > > Should it should be connecting to uvideo(4) instead? > > > usbdevs -v: you need to look at the descriptors. usbctl from the usbutil package. > Controller /dev/usb0: > port 5 addr 4: high speed, power 500 mA, config 1, BisonCam, NB Pro(0x0203), > Bison Electronics Inc.(0x5986), rev 3.08 usbctl -f /dev/usb0 -a 4 -- jake...@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org
Webcam detected as uaudio(4) device
Hi, I have a USB webcam. No model number on the cam, but looks to be a Logitech QuickCam Communicate STX. When I plug it in, I get this: uaudio0 at uhub1 port 1 configuration 1 interface 1 "Logitech Camera" rev 2.00/1.00 addr 2 uaudio0: audio descriptors make no sense, error=4 ugen0 at uhub1 port 1 configuration 1 "Logitech Camera" rev 2.00/1.00 addr 2 Should it should be connecting to uvideo(4) instead? usbdevs -v: Controller /dev/usb0: addr 1: high speed, self powered, config 1, EHCI root hub(0x), Intel(0x8086), rev 1.00 port 1 powered port 2 powered port 3 addr 3: high speed, power 500 mA, config 1, USB2.0 WLAN(0x1002), ATHER(0x0cf3), rev 1.06, iSerialNumber 12345 port 4 powered port 5 addr 4: high speed, power 500 mA, config 1, BisonCam, NB Pro(0x0203), Bison Electronics Inc.(0x5986), rev 3.08 port 6 addr 2: high speed, power 500 mA, config 1, USB2.0-CRW(0x0158), Generic(0x0bda), rev 58.87, iSerialNumber 2007111417340 port 7 powered port 8 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x), Intel(0x8086), rev 1.00 port 1 addr 2: full speed, power 100 mA, config 1, Camera(0x08f5), Logitech(0x046d), rev 1.00 port 2 powered Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x), Intel(0x8086), rev 1.00 port 1 powered port 2 powered Controller /dev/usb3: addr 1: full speed, self powered, config 1, UHCI root hub(0x), Intel(0x8086), rev 1.00 port 1 powered port 2 powered Controller /dev/usb4: addr 1: full speed, self powered, config 1, UHCI root hub(0x), Intel(0x8086), rev 1.00 port 1 powered port 2 powered OpenBSD 4.9-beta (GENERIC.MP) #767: Sat Jan 29 10:01:32 MST 2011 t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel(R) Atom(TM) CPU N280 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE real mem = 1062502400 (1013MB) avail mem = 1034964992 (987MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 02/08/08, SMBIOS rev. 2.4 @ 0x3f607010 (45 entries) bios0: vendor American Megatrends Inc. version "4.6.3" date 02/23/2009 bios0: MICRO-STAR INTERNATIONAL CO., LTD MS-N033 acpi0 at bios0: rev 2 acpi0: sleep states S0 S1 S3 S4 S5 acpi0: tables DSDT FACP APIC SSDT SSDT SSDT acpi0: wakeup devices P0P2(S4) PEGP(S4) USB0(S1) USB1(S1) USB2(S1) USB3(S1) EHCI(S1) MC97(S4) P0P1(S4) P0P4(S4) P0P5(S4) P0P6(S4) P0P7(S4) P0P8(S4) P0P9(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 166MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Atom(TM) CPU N280 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (P0P2) acpiprt2 at acpi0: bus 1 (P0P4) acpiprt3 at acpi0: bus -1 (P0P5) acpiprt4 at acpi0: bus 2 (P0P6) acpiprt5 at acpi0: bus -1 (P0P7) acpiprt6 at acpi0: bus -1 (P0P8) acpiprt7 at acpi0: bus -1 (P0P9) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2, C1, PSS acpicpu1 at acpi0: C3, C2, C1, PSS acpitz0 at acpi0: critical temperature 100 degC acpiac0 at acpi0: AC unit online acpibat0 at acpi0: BAT1 model "MS-N033 " serial type LION oem "MSI Corp. " acpibtn0 at acpi0: LID0 acpibtn1 at acpi0: PWRB acpibtn2 at acpi0: SLPB acpivideo0 at acpi0: IGD_ acpivout0 at acpivideo0: CRT_ acpivout1 at acpivideo0: LCD_ bios0: ROM list: 0xc/0xea00! 0xcf000/0x1000 cpu0: Enhanced SpeedStep 1667 MHz: speeds: 1333, 1067, 800 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82945GME Host" rev 0x03 vga1 at pci0 dev 2 function 0 "Intel 82945GME Video" rev 0x03 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0xc000, size 0x1000 inteldrm0 at vga1: apic 2 int 16 (irq 11) drm0 at inteldrm0 "Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: apic 2 int 16 (irq 11) azalia0: codecs: Realtek ALC888 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 2 int 16 (irq 11) pci1 at ppb0 bus 1 re0 at pci1 dev 0 function 0 "Realtek 8101E" rev 0x02: RTL8102E (0x3480), apic 2 int 16 (irq 11), address 00:24:21:62:f5:5d rlphy0 at re0 phy 7: RTL8201L 10/100 PHY, rev. 1 ppb1 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 2 int 18 (irq 10) pci2 at ppb1 bus 2 "Realtek 8187SE" rev 0x22 at pci2 dev 0 function 0 not configured uhci0 at pci0 dev 29