[alsa-devel] usb sound cannot get frequency from enpoind
hi all: My kernel is 3.8.0. and when I plug in "microsoft LifeCam", I get message at the end of mail about cannot get min/max values from camera. is there any usb audio class initial sequence we need to check when this message pop out? Appreciate your help in advance,
usb 3-1: new high-speed USB device number 2 using Platform-ehci Platform-ehci Platform-ehci.0: port 1 reset complete, port enabled Platform-ehci Platform-ehci.0: GetStatus port:1 status 00000d 0 ACK sig=se0 PEC PE CONNECT usb 3-1: skipped 1 descriptor after configuration usb 3-1: skipped 6 descriptors after interface usb 3-1: skipped 1 descriptor after endpoint usb 3-1: skipped 28 descriptors after interface usb 3-1: skipped 1 descriptor after endpoint usb 3-1: skipped 4 descriptors after interface usb 3-1: skipped 2 descriptors after interface usb 3-1: skipped 1 descriptor after endpoint usb 3-1: default language 0x0409 usb 3-1: udev 2, busnum 3, minor = 257 usb 3-1: New USB device found, idVendor=045e, idProduct=075d usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb 3-1: Product: Microsoft® LifeCam Cinema(TM) usb 3-1: Manufacturer: Microsoft usb 3-1: usb_probe_device usb 3-1: configuration #1 chosen from 1 choice usb 3-1: adding 3-1:1.0 (config #1, interface 0) uvcvideo 3-1:1.0: usb_probe_interface uvcvideo 3-1:1.0: usb_probe_interface - got id uvcvideo: Found UVC 1.00 device Microsoft® LifeCam Cinema(TM) (045e:075d) input: Microsoft® LifeCam Cinema(TM) as /devices/platform/Platform-ehci.0/usb3/3-1/3-1:1.0/input/input4 usb 3-1: adding 3-1:1.1 (config #1, interface 1) usb 3-1: adding 3-1:1.2 (config #1, interface 2) snd-usb-audio 3-1:1.2: usb_probe_interface snd-usb-audio 3-1:1.2: usb_probe_interface - got id ALSA sound/usb/stream.c:682 2:3:1: add audio endpoint 0x82 usb 3-1: khubd timed out on ep0in len=0/3 ALSA sound/usb/clock.c:237 2:3:1: cannot get freq at ep 0x82 ALSA sound/usb/mixer.c:1305 [5] FU [Mic Capture Switch] ch = 1, val = 0/1/1 ALSA sound/usb/mixer.c:929 5:2: cannot get min/max values for control 2 (id 5) ALSA sound/usb/mixer.c:1305 [5] FU [Mic Capture Volume] ch = 1, val = 0/1/1 ALSA sound/usb/mixer.c:929 5:2: cannot get min/max values for control 2 (id 5) usb 3-1: adding 3-1:1.3 (config #1, interface 3) hub 3-0:1.0: state 7 ports 1 chg 0000 evt 0002 Platform-ehci Platform-ehci.0: GetStatus port:1 status 00000d 0 ACK sig=se0 PEC PE CONNECT hub 3-0:1.0: port 1 enable change, status 00000403
hi all: I get the same message on kernel 3.16.0 and attach the device information as well. (from the description, the ep 0x82 did have different sample rate configuration, but why uac cannot get it?) appreciate your help,
Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 3 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 0 iInterface 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 3 bAlternateSetting 1 bNumEndpoints 1 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 0 iInterface 0 AudioStreaming Interface Descriptor: bLength 7 bDescriptorType 36 bDescriptorSubtype 1 (AS_GENERAL) bTerminalLink 3 bDelay 1 frames wFormatTag 1 PCM AudioStreaming Interface Descriptor: bLength 29 bDescriptorType 36 bDescriptorSubtype 2 (FORMAT_TYPE) bFormatType 1 (FORMAT_TYPE_I) bNrChannels 1 bSubframeSize 2 bBitResolution 16 bSamFreqType 7 Discrete tSamFreq[ 0] 8000 tSamFreq[ 1] 16000 tSamFreq[ 2] 22050 tSamFreq[ 3] 24000 tSamFreq[ 4] 32000 tSamFreq[ 5] 44100 tSamFreq[ 6] 48000 Endpoint Descriptor: bLength 9 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 5 Transfer Type Isochronous Synch Type Asynchronous Usage Type Data wMaxPacketSize 0x0100 1x 256 bytes bInterval 4 bRefresh 0 bSynchAddress 0 AudioControl Endpoint Descriptor: bLength 7 bDescriptorType 37 bDescriptorSubtype 1 (EP_GENERAL) bmAttributes 0x01 Sampling Frequency bLockDelayUnits 0 Undefined wLockDelay 0 Undefined Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 239 Miscellaneous Device bDeviceSubClass 2 ? bDeviceProtocol 1 Interface Association bMaxPacketSize0 64 bNumConfigurations 1 Device Status: 0x0000 (Bus Powered)
2014-09-12 13:46 GMT+08:00 vichy vichy.kuo@gmail.com:
hi all: My kernel is 3.8.0. and when I plug in "microsoft LifeCam", I get message at the end of mail about cannot get min/max values from camera. is there any usb audio class initial sequence we need to check when this message pop out? Appreciate your help in advance,
usb 3-1: new high-speed USB device number 2 using Platform-ehci Platform-ehci Platform-ehci.0: port 1 reset complete, port enabled Platform-ehci Platform-ehci.0: GetStatus port:1 status 00000d 0 ACK sig=se0 PEC PE CONNECT usb 3-1: skipped 1 descriptor after configuration usb 3-1: skipped 6 descriptors after interface usb 3-1: skipped 1 descriptor after endpoint usb 3-1: skipped 28 descriptors after interface usb 3-1: skipped 1 descriptor after endpoint usb 3-1: skipped 4 descriptors after interface usb 3-1: skipped 2 descriptors after interface usb 3-1: skipped 1 descriptor after endpoint usb 3-1: default language 0x0409 usb 3-1: udev 2, busnum 3, minor = 257 usb 3-1: New USB device found, idVendor=045e, idProduct=075d usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb 3-1: Product: Microsoft® LifeCam Cinema(TM) usb 3-1: Manufacturer: Microsoft usb 3-1: usb_probe_device usb 3-1: configuration #1 chosen from 1 choice usb 3-1: adding 3-1:1.0 (config #1, interface 0) uvcvideo 3-1:1.0: usb_probe_interface uvcvideo 3-1:1.0: usb_probe_interface - got id uvcvideo: Found UVC 1.00 device Microsoft® LifeCam Cinema(TM) (045e:075d) input: Microsoft® LifeCam Cinema(TM) as /devices/platform/Platform-ehci.0/usb3/3-1/3-1:1.0/input/input4 usb 3-1: adding 3-1:1.1 (config #1, interface 1) usb 3-1: adding 3-1:1.2 (config #1, interface 2) snd-usb-audio 3-1:1.2: usb_probe_interface snd-usb-audio 3-1:1.2: usb_probe_interface - got id ALSA sound/usb/stream.c:682 2:3:1: add audio endpoint 0x82 usb 3-1: khubd timed out on ep0in len=0/3 ALSA sound/usb/clock.c:237 2:3:1: cannot get freq at ep 0x82 ALSA sound/usb/mixer.c:1305 [5] FU [Mic Capture Switch] ch = 1, val = 0/1/1 ALSA sound/usb/mixer.c:929 5:2: cannot get min/max values for control 2 (id 5) ALSA sound/usb/mixer.c:1305 [5] FU [Mic Capture Volume] ch = 1, val = 0/1/1 ALSA sound/usb/mixer.c:929 5:2: cannot get min/max values for control 2 (id 5) usb 3-1: adding 3-1:1.3 (config #1, interface 3) hub 3-0:1.0: state 7 ports 1 chg 0000 evt 0002 Platform-ehci Platform-ehci.0: GetStatus port:1 status 00000d 0 ACK sig=se0 PEC PE CONNECT hub 3-0:1.0: port 1 enable change, status 00000403
vichy wrote:
ALSA sound/usb/clock.c:237 2:3:1: cannot get freq at ep 0x82 ALSA sound/usb/mixer.c:929 5:2: cannot get min/max values for control 2 (id 5) ALSA sound/usb/mixer.c:929 5:2: cannot get min/max values for control 2 (id 5)
(from the description, the ep 0x82 did have different sample rate configuration, but why uac cannot get it?)
This is likely to be a bug in the device's firmware.
Regards, Clemens
hi Clements:
2014-09-12 14:41 GMT+08:00 Clemens Ladisch clemens@ladisch.de:
vichy wrote:
ALSA sound/usb/clock.c:237 2:3:1: cannot get freq at ep 0x82 ALSA sound/usb/mixer.c:929 5:2: cannot get min/max values for control 2 (id 5) ALSA sound/usb/mixer.c:929 5:2: cannot get min/max values for control 2 (id 5)
(from the description, the ep 0x82 did have different sample rate configuration, but why uac cannot get it?)
This is likely to be a bug in the device's firmware.
How could we determine it? is the any tool, log or experiments we can do to to show the bug belongs to device not uac?
appreciate your kind help,
participants (2)
-
Clemens Ladisch
-
vichy