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=0000
> 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
> 
> ----------

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org

Reply via email to