Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

uvideo(4): videoctl not working



Hi!

I have a machine where videoctl fails (the kernel has VIDEO_DEBUG and 
UVIDEO_DEBUG):

# videoctl -a
videoopen
videoopen: flags=0x1 sc=0xffff80004cdead28 parent=0xffff80004cdea808
uvideo_open: sc=0xfff80004abde300
uvideo_set_format: sc=0xffff80004abde300
uvideo: error commit/SET_CUR: TIMEOUT (15)
videoctl: couldn't open '/dev/video0': Input/output error
#

dmesg snippet:

uvideo0 at uhub1 port 3 configuration 1 interface 0: SuYin HP Webcam, rev 
2.00/2.01, addr 2
uvideo_attach:   non uvc descriptor len=9 type=0x02
uvideo_attach:   non uvc descriptor len=8 type=0x0b
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x00 
bAlternateSetting=0x00 bNumEndpoints=0x01 bInterfaceClass=0x0e 
bInterfaceSubclass=0x01 bInterfaceProtocol=0x00 iInterface=0x04
uvideo_attach:   VC Interface Header: Len=13 Type=0x24 Subtype=0x01 bcdUVC=256 
wTotalLength=51 dwClockFrequency=600000000 bInCollection=1
uvideo_attach:   VC Camera Terminal: Len=18 Type=0x24 Subtype=0x02 
bTerminalID=1 wTerminalType=201 bAssocTerminal=0 iTerminal=0 
wObjectiveFocalLengthMin/Max=0/0 wOcularFocalLength=0 bControlSize=3 
bmControls=00000000-00000000-00000000
uvideo_attach:   VC Processing Unit: Len=11 Type=0x24 Subtype=0x05 bUnitID=2 
bSourceID=1 wMaxMultiplier=0 bControlSize=2 bmControls=00000100-00111111 
iProcessing=0 bmVideoStandards=00001001
uvideo_attach:   VC Output Terminal: Len=9 Type=0x24 Subtype=0x03 bTerminalID=5 
wTerminalType=101 bAssocTerminal=0 bSourceID=2 iTerminal=0
uvideo_attach:   VC Endpoint: Len=7 Type=0x05 bEndpointAddress=0x83 
bmAttributes=00000011 wMaxPacketSize=12 bInterval=16
uvideo_attach:   VC Interrupt Endpoint: Len=5 Type=0x25 Subtype=0x03 
wMaxTransferSize=12
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01 
bAlternateSetting=0x00 bNumEndpoints=0x000 bInterfaceClass=0x0e 
bInterfaceSubClass=0x02 bInterfaceProtocol=x000 iInterface=0x00
uvideo_attach:   VS Interface Input Header: Len=14 Type=0x24 Subtype=0x01 
bNumFormats=1 wTotalLength=197 bEndpointAddress=129 bmInfo=0 bTerminalLink=5 
bStillCaptureMethod=1 bTriggerSupport=0 bTriggerUsage=0 bControlSize=1 00000000
uvideo_attach:   VS Format Uncompressed: Len=27 Type=0x24 Subtype=0x04 
bFormatIndex=1 bNumFrameDescriptors=5 32595559-00-10-8000-00AA00389B71 
bBitsPerPixel=16 bDefaultFrameIndex=1 BAspectRatioX=0 bAspectRatioY=0 
bmInterlaceFlags=0x00 bCopyProtect=0
uvideo_attach:   VS Frame Uncompressed: Len=30 Type=0x24 Subtype=0x05 
bFrameIndex=1 bmCapabilities=0x01 wWidth=640 wHeight=480 dwMinBitRate=117964800 
dwMaxBitRate=117964800 dwMaxVideoFrameBufferSize=614400 
dwDefaultFrameInterval=416666 bFrameIntervalType=1
uvideo_attach:   VS Frame Uncompressed: Len=30 Type=0x24 Subtype=0x05 
bFrameIndex=2 bmCapablities=0x01 wWidth=352 wHeight=288 dwMinBitRate=38928384 
dwMaxBitRate=38928384 dwMaxVideoFrameBufferSize=202752 
dwDefaultFrameInterval=416666 bFrameIntervalType=1
uvideo_attach:   VS Frame Uncompressed: Len=30 Type=0x24 Subtype=0x05 
bFrameIndex=3 bmCapabilities=0x01 wWidth=320 wHeight=240 dwMinBitRate=29491200 
dwMaxBitRate=29491200 dwMaxVideoFrameBufferSize=153600 
dwDefaultFrameInteravl=416666 bFrameIntervalType=1
uvideo_atatch:   VS Frame Uncompressed: Len=30 Type=0x24 Subtype=0x05 
bFrameIndex=4 bmCapabilities=0x01 wWidth=176 wHeight=144 dwMinBitRat=9732096 
dwMaxBitRate=9732096 dwMaxVideoFrameBufferSize=50688 
dwDefaultFrameInterval=416666 bFrameIntervalType=1
uvideo_attach:   VS Frame Uncompreessed: Len=30 Type=0x24 Subtype=0x05 
bFrameIndex=5 bmCapabilities=0x01 wWidth=160 wHeight=120 dwMinBitRate=7372800 
dwMaxBitRate=7372800 dwMaxVideoFrameBufferSize=38400 
dwDefaultFrameInterval=416666 bFrameIntervalType=1
uvideo_attach:   VS unknown cs interface: len=6 type=0x24 subtype=0x0d
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01 
bAlternateSetting=0x01 bNumEndpoints=0x01 bInterfaceClass=0x0e 
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81 
bmAttributes=00000101 wMaxPacketSize=512 bInterval=1
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01 
bAlternateSetting=0x02 bNumEndpoints=x01 bInterfaceClass=0x0e 
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81 
bmAttributes=00000101 wMaxPacketSize=1024 bInterval=1
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01 
bAlternateSetting=0x03 bNumEndpoints=x01 bInterfaceClass=0x0e 
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81 
bmAttributes=00000101 wMaxPacketSize=2816 bInterval=1
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01 
bAlternateSetting=0x04 bNumEndpoints=x01 bInterfaceClass=0x0e 
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81 
bmAttributes=00000101 wMaxPacketSize=3072 bInterval=1
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01 
bAlternateSetting=0x05 bNumEndpoints=x01 bInterfaceClass=0x0e 
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81 
bmAttributes=00000101 wMaxPacketSize=4864 bInterval=1
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01 
bAlternateSetting=0x06 bNumEndpoints=x01 bInterfaceClass=0x0e 
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81 
bmAttributes=00000101 wMaxPacketSize=5120 bInterval=1
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81 
bmAttributes=00000101 wMaxPacketSize=5120 bInterval=1
uvideo_stream_init: probelen=0
uvideo: Adding pixel format 1
uvideo: found format (index 1) type 1 size 640x480 size 614400 stride 1280 
interval 416666
 ^ picking this one
uvideo: found format (index 2) type 1 size 352x288 size 352x288 size 202752 
stride 704 interval 416666
uvideo: found format (index 3) type 1 size 320x240 size 153600 stride 640 
interval 416666
uvideo: found format (index 4) type 1 size 176x144 size 50688 stride 352 
interval 416666
uvideo: found format (index 5) type 1 size 160x120 size 38400 stride 320 
interval 416666
uvideo: unimplemented VS CS descriptor len=6 type=0x24 subtype=0x0d
uvideo_attach: ISOC stream *
video_match: hw=0xffffffff80a5ae20
video0 at uvideo0video_print: pnp is NULL
: SuYin HP Webcam, rev 2.00/2.01, addr 2
video_attach: sc=0xffff80004cdead28 hwif=0xffffffff80a5ae20
uvideo_attach: attached video drive at 0xfff80004cd8c000




Home | Main Index | Thread Index | Old Index