Bug 643710

Summary: Logitech Orbicam (046d:0896): gspca_vc032x creates/releases wrong video device
Product: [Fedora] Fedora Reporter: Patrick <rh_bugzilla>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dougsland, gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-16 18:41:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Patrick 2010-10-17 14:11:05 UTC
Description of problem:
Logitech Orbicam (046d:0896) only works with Cheese when cheese is started multiple consecutive times. To my totally untrained eye it seems that the wrong video device is created/released.

Version-Release number of selected component (if applicable):
2.6.35.6-43.fc14.x86_64

How reproducible:
Start cheese, quit cheese, start cheese again, quit again etc. Continue this until the cam led lights up and the cam starts working.

Steps to Reproduce:
1. modprobe -v gspca_vc032x
2. start cheese - green led on cam does not light up and no images from cam
3. stop cheese and start cheese again (cam led may light up & cam may work) or stop cheese again and start cheese again (cam led may light up & cam works)
  
Actual results:
Cam does not work when cheese is started for the first time

Expected results:
Cam led lights up & the cam works

Additional info:

Steps I did to reproduce this with output. Please note the messages were gspca creates video0 but releases video1 or creates video1 and releases video0 when cheese is terminated (and the cam did not work).

Manually insert gspca_vc032x
===============================================================================
Oct 17 15:45:12 luna kernel: [10579.920588] Linux video capture interface: v2.00
Oct 17 15:45:12 luna kernel: [10579.923621] gspca: main v2.9.0 registered
Oct 17 15:45:12 luna kernel: [10579.925051] gspca: probing 046d:0896
Oct 17 15:45:12 luna kernel: [10579.925055] vc032x: Sensor POxxxx
Oct 17 15:45:12 luna kernel: [10579.927710] gspca: video0 created
Oct 17 15:45:12 luna kernel: [10579.927733] usbcore: registered new interface driver vc032x
Oct 17 15:45:12 luna kernel: [10579.927736] vc032x: registered


Start cheese - green cam led does not light up, cam does not work
===============================================================================
Oct 17 15:45:21 luna kernel: [10588.479761] usb 1-7: USB disconnect, address 10
Oct 17 15:45:21 luna kernel: [10588.480195] gspca: video0 disconnect
Oct 17 15:45:22 luna kernel: [10590.052229] gspca: set alt 0 err -19
Oct 17 15:45:22 luna kernel: [10590.052239] gspca: usb_submit_urb alt 7 err -19
Oct 17 15:45:23 luna kernel: [10590.258171] usb 1-7: new high speed USB device using ehci_hcd and address 11
Oct 17 15:45:23 luna kernel: [10590.414303] usb 1-7: New USB device found, idVendor=046d, idProduct=0896
Oct 17 15:45:23 luna kernel: [10590.414312] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 17 15:45:23 luna kernel: [10590.414320] usb 1-7: Product: Camera
Oct 17 15:45:23 luna kernel: [10590.414324] usb 1-7: Manufacturer: OEM
Oct 17 15:45:23 luna kernel: [10590.417140] gspca: probing 046d:0896
Oct 17 15:45:23 luna kernel: [10590.417147] vc032x: Sensor POxxxx
Oct 17 15:45:23 luna kernel: [10590.419179] gspca: video1 created
Oct 17 15:45:38 luna kernel: [10605.581941] gspca: video0 released

Quit cheese with menu Cheese -> Quit


Start cheese 2nd time - green cam led does not light up, cam does not work
===============================================================================
Oct 17 15:45:49 luna kernel: [10616.396640] usb 1-7: USB disconnect, address 11
Oct 17 15:45:49 luna kernel: [10616.397215] gspca: video1 disconnect
Oct 17 15:45:50 luna kernel: [10617.969170] gspca: set alt 0 err -19
Oct 17 15:45:50 luna kernel: [10617.969180] gspca: usb_submit_urb alt 7 err -19
Oct 17 15:45:50 luna kernel: [10618.175144] usb 1-7: new high speed USB device using ehci_hcd and address 12
Oct 17 15:45:51 luna kernel: [10618.331444] usb 1-7: New USB device found, idVendor=046d, idProduct=0896
Oct 17 15:45:51 luna kernel: [10618.331453] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 17 15:45:51 luna kernel: [10618.331461] usb 1-7: Product: Camera
Oct 17 15:45:51 luna kernel: [10618.331465] usb 1-7: Manufacturer: OEM
Oct 17 15:45:51 luna kernel: [10618.334395] gspca: probing 046d:0896
Oct 17 15:45:51 luna kernel: [10618.334402] vc032x: Sensor POxxxx
Oct 17 15:45:51 luna kernel: [10618.336454] gspca: video0 created
Oct 17 15:45:55 luna kernel: [10623.018118] gspca: video1 released

Quit cheese with Cheese -> Quit


Start cheese 3rd time - green cam led lights up, cam works
===============================================================================
No output in /var/log/messages


Output from lsusb
===============================================================================

# lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:c016 Logitech, Inc. Optical Wheel Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 046d:0896 Logitech, Inc. OrbiCam
Bus 001 Device 006: ID 1234:5678  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Output from v4l-info
===============================================================================

# v4l-info /dev/video1

### v4l2 device info [/dev/video1] ###
general info
    VIDIOC_QUERYCAP
	driver                  : "vc032x"
	card                    : "Camera"
	bus_info                : "usb-0000:00:1d.7-7"
	version                 : 2.9.0
	capabilities            : 0x5000001 [VIDEO_CAPTURE,READWRITE,STREAMING]

standards

inputs
    VIDIOC_ENUMINPUT(0)
	index                   : 0
	name                    : "vc032x"
	type                    : CAMERA
	audioset                : 0
	tuner                   : 0
	std                     : 0x0 []
	status                  : 0x0 []

video capture
    VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
	index                   : 0
	type                    : VIDEO_CAPTURE
	flags                   : 0
	description             : "YVYU"
	pixelformat             : 0x55595659 [YVYU]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
	type                    : VIDEO_CAPTURE
	fmt.pix.width           : 640
	fmt.pix.height          : 480
	fmt.pix.pixelformat     : 0x55595659 [YVYU]
	fmt.pix.field           : NONE
	fmt.pix.bytesperline    : 640
	fmt.pix.sizeimage       : 614400
	fmt.pix.colorspace      : SRGB
	fmt.pix.priv            : 0

controls
    VIDIOC_QUERYCTRL(BASE+0)
	id                      : 9963776
	type                    : INTEGER
	name                    : "Brightness"
	minimum                 : 0
	maximum                 : 255
	step                    : 1
	default_value           : 128
	flags                   : 0
    VIDIOC_QUERYCTRL(BASE+1)
	id                      : 9963777
	type                    : INTEGER
	name                    : "Contrast"
	minimum                 : 0
	maximum                 : 255
	step                    : 1
	default_value           : 127
	flags                   : 0
    VIDIOC_QUERYCTRL(BASE+2)
	id                      : 9963778
	type                    : INTEGER
	name                    : "Saturation"
	minimum                 : 1
	maximum                 : 127
	step                    : 1
	default_value           : 63
	flags                   : 0

### video4linux device info [/dev/video1] ###
general info
    VIDIOCGCAP
	name                    : "Camera"
	type                    : 0x1 [CAPTURE]
	channels                : 1
	audios                  : 0
	maxwidth                : 640
	maxheight               : 480
	minwidth                : 48
	minheight               : 32

channels
    VIDIOCGCHAN(0)
	channel                 : 0
	name                    : "vc032x"
	tuners                  : 0
	flags                   : 0x0 []
	type                    : CAMERA
	norm                    : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
    VIDIOCGAUDIO
	audio                   : 0
	volume                  : 0
	bass                    : 0
	treble                  : 0

picture
    VIDIOCGPICT
	brightness              : 32896
	hue                     : 0
	colour                  : 32247
	contrast                : 32639
	whiteness               : 0
	depth                   : 8
	palette                 : unknown

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
    VIDIOCGWIN
	x                       : 0
	y                       : 0
	width                   : 640
	height                  : 480
	chromakey               : 0
	flags                   : 0

Please let me know if you need more info. Thanks!

Comment 1 Fedora End Of Life 2012-08-16 18:41:57 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping