usbvision-core.c: cannot change alternate number to 1 (error=-22)

Bug #302728 reported by Alejandro
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Nov 19 20:03:40 dim2400 kernel: [ 33.556524] Linux video capture interface: v2.00
Nov 19 20:03:40 dim2400 kernel: [ 33.608618] usbvision_probe: Dazzle Fusion Model DVC-80 Rev 1 (PAL) found
Nov 19 20:03:40 dim2400 kernel: [ 33.608720] USBVision[0]: registered USBVision Video device /dev/video0 [v4l2]
Nov 19 20:03:40 dim2400 kernel: [ 33.608800] USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)
Nov 19 20:03:40 dim2400 kernel: [ 33.615303] usbvision_probe: Dazzle Fusion Model DVC-80 Rev 1 (PAL) found
Nov 19 20:03:40 dim2400 kernel: [ 33.615400] USBVision[1]: registered USBVision Video device /dev/video1 [v4l2]
Nov 19 20:03:40 dim2400 kernel: [ 33.615480] USBVision[1]: registered USBVision VBI device /dev/vbi1 [v4l2] (Not Working Yet!)
Nov 19 20:03:40 dim2400 kernel: [ 33.615904] usbcore: registered new interface driver usbvision
Nov 19 20:03:40 dim2400 kernel: [ 33.615957] USBVision USB Video Device Driver for Linux : 0.9.9

Nov 19 20:04:42 dim2400 kernel: [ 43.848552] saa7115 2-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #0)
Nov 19 20:04:43 dim2400 kernel: [ 44.915737] saa7115 3-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #1)
Nov 19 20:04:44 dim2400 kernel: [ 45.578232] /build/buildd/linux-2.6.24/drivers/usb/core/message.c: selecting invalid altsetting 1
Nov 19 20:04:44 dim2400 kernel: [ 45.578239] /build/buildd/linux-2.6.24/drivers/media/video/usbvision/usbvision-core.c: cannot change alternate number to 1 (error=-22)

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately, we can't fix it because your description didn't include enough information. You may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem.

We have instructions on debugging some types of problems at http://wiki.ubuntu.com/DebuggingProcedures

At a minimum, we need:
1. the specific steps or actions you took that caused you to encounter the problem,
2. the behavior you expected, and
3. the behavior you actually encountered (in as much detail as possible).
Thanks!

Revision history for this message
mk (miro-mkolar) wrote :

I have got the same problem (error message) as above, exactly the same output from dmesg.
The above lines are generated after pluging in the Dazzle DVC-80 (Digital Video Creator) - an USB device for capturing analog video from Composite or S-video input.

This device is at least partially recognized by USBvision, b ut so far I have not been able to record a single frame from it under Linux. I tried mplayer, mencoder, xawtv , ... - nothing worked with DVC-80 so far.

I have recently installed Ubuntu 8.10, kernel 2.6.27-7, then upgraded to -2.6.27-9.
I would be grateful for any hints (or patches, error correction) on how to make DVC-80 working.

I am attacing two screenshots from the Device Manager with info on DVC-80 (which is also for ssome reason referred to in some places as DVC-800, but it is actually the same device).

Below is also the output from v4l2-conf --all, and lsusb. Do you need any other information?

> v4l2-ctl --all
---------
Driver Info:
 Driver name : USBVision
 Card type : Dazzle Fusion Model DVC-80 Rev
 Bus info : 4-1
 Driver version: 2313
 Capabilities : 0x05020001
  Video Capture
  Audio
  Read/Write
  Streaming
Format Video Capture:
 Width/Height : 320/240
 Pixel Format : GREY
 Field : None
 Bytes per Line: 320
 Size Image : 76800
 Colorspace : Broadcast NTSC/PAL (SMPTE170M/ITU601)
Video input : 0 (Composite Video Input)
Audio input : 0 (TV)
Frequency: 0 (0.000000 MHz)
Video Standard = 0x000000ff
 PAL-B/B1/G/H/I/D/D1/K

> lsusb
----------
Bus 004 Device 002: ID 07d0:0004 Dazzle DVC-800 (PAL) Grabber
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 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Revision history for this message
mk (miro-mkolar) wrote :

Here is the second screenshot mentioned above

Revision history for this message
mk (miro-mkolar) wrote :
Download full text (3.5 KiB)

Here is the output I got when trying to use DVC-80 with mplayer
(Does the message "Selected input hasn't got a tuner!", see below, indicate that this device will simply never
work under Linux, or am I only using wrong parameters?
My system is fast enough to play movies withour any problems):

>mplayer tv:// -tv driver=v4l2:norm=NTSC:audiorate=44100:immediatemode=0:forceaudio:adevice=/dev/dsp

MPlayer 1.0rc2-4.3.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (Family: 15, Model: 2, Stepping: 4)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing tv://.
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <email address hidden>
 comment: first try, more to come ;-)
Selected device: Dazzle Fusion Model DVC-80 Rev
 Capabilites: video capture audio read/write streaming
 supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = PAL; 5 = PAL-BG; 6 = PAL-H; 7 = PAL-I; 8 = PAL-DK; 9 = PAL-M; 10 = SECAM; 11 = SECAM-B; 12 = SECAM-G; 13 = SECAM-H; 14 = SECAM-DK; 15 = SECAM-L; 16 = SECAM-Lc;
 inputs: 0 = Composite Video Input; 1 = S-Video Input;
 Current input: 0
 Current format: YVU420
Selected input hasn't got a tuner!
Audio block size too low, setting to 16384!
xscreensaver_disable: Could not find XScreenSaver window.
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 320x240 => 320x240 Planar YV12
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
A: 24.9 V: 0.0 A-V: 24.899 ct: 0.092 50/ 50 ??% ??% ??,?% 50 0

           ************************************************
           **** Your system is too SLOW to play this! ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -m...

Read more...

Revision history for this message
mk (miro-mkolar) wrote :

Adding the -autosync 30 command line flag eliminated the "Your system is too SLOW to play this!" message and the whole section after that, but still no picture showing!!!

Revision history for this message
mk (miro-mkolar) wrote :

For completeness, here is the output from mencoder (it skipped alll the frames, the output file test.avi was filled
with [= MPlayer junk data! =][= MPlayer junk data! =] ...):

>mencoder tv:// -tv driver=v4l2:width=720:height=576:norm=NTSC:audiorate=44100:immediatemode=0:forceaudio:adevice=/dev/dsp -o test.avi -aspect 4:3 -noautoexpand -oac pcm -ovc raw

MEncoder 2:1.0~rc2-0ubuntu17 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (Family: 15, Model: 2, Stepping: 4)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 9 data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <email address hidden>
 comment: first try, more to come ;-)
Selected device: Dazzle Fusion Model DVC-80 Rev
 Capabilites: video capture audio read/write streaming
 supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = PAL; 5 = PAL-BG; 6 = PAL-H; 7 = PAL-I; 8 = PAL-DK; 9 = PAL-M; 10 = SECAM; 11 = SECAM-B; 12 = SECAM-G; 13 = SECAM-H; 14 = SECAM-DK; 15 = SECAM-L; 16 = SECAM-Lc;
 inputs: 0 = Composite Video Input; 1 = S-Video Input;
 Current input: 0
 Current format: YVU420
Selected input hasn't got a tuner!
Audio block size too low, setting to 16384!
[V] filefmt:9 fourcc:0x32315659 size:320x240 fps:29.97 ftime:=0.0334
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Forcing audio preload to 0, max pts correction to 0.

Skipping frame!
Pos: 0.0s 1f ( 0%) 0.95fps Trem: 0min 0mb A-V:0.000 [0:0]
Skipping frame!
Pos: 0.0s 2f ( 0%) 1.27fps Trem: 0min 0mb A-V:0.000 [0:0]
Skipping frame!
Pos: 0.0s 3f ( 0%) 1.42fps Trem: 0min 0mb A-V:0.000 [0:0]
Skipping frame!
Pos: 0.0s 4f ( 0%) 1.52fps Trem: 0min 0mb A-V:0.000 [0:0]
Skipping frame!
.......

affects: ubuntu → linux (Ubuntu)
Revision history for this message
John S. Gruber (jsjgruber) wrote :

I see the same results. The expected result would be no error message in the syslog when the device was plugged in, and a proper avi test.avi file that would contain the captured video.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
NathanGardiner (ngardiner) wrote :

I can confirm identical issue exists on 9.04 running kernel 2.6.28-11-server

[ 74.110331] saa7115' 1-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #1)
[ 74.824207] usb 1-2: selecting invalid altsetting 1<3>usbvision: cannot change alternate number to 1 (error=-22)

I have tried motion, camserv and vgrabbj to grab frames from either of:

crw-rw-rw- 1 root video 81, 0 2009-05-31 18:14 /dev/video0
crw-rw---- 1 root video 81, 2 2009-05-31 18:14 /dev/video1

With no luck. The attempt will either fail with a

open("/dev/video0", O_RDONLY) = -1 EBUSY (Device or resource busy)

or simply open the device and then not recieve any input.

Revision history for this message
penalvch (penalvch) wrote :

Alejandro, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

If it remains an issue, could you run the following command in the development release from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux <replace-with-bug-number>

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please do not test the kernel in the daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. As well, please comment on which kernel version specifically you tested.

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream', and comment as to why specifically you were unable to test it.

Please let us know your results. Thanks in advance.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: added: needs-upstream-testing
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
thaper (fourstar10-2000) wrote :

This really should have been fixed by now... I am experiencing the same issue... please help to fix it.

Revision history for this message
thaper (fourstar10-2000) wrote :

I really don't want to go back to windows XP to use my device

Revision history for this message
penalvch (penalvch) wrote :

thaper, if you have a bug in Ubuntu, the Ubuntu Kernel team, Ubuntu Bug Control team, and Ubuntu Bug Squad would like you to please file a new report by executing the following in a terminal while booted into a Ubuntu repository kernel (not a mainline one) via:
ubuntu-bug linux

For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue
Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports
Ubuntu Community: https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

Please note, not filing a new report would delay your problem being addressed as quickly as possible.

No need exists to comment here at this time. After reading the above documentation in it's entirety, if you have further questions, you are welcome to redirect them to the appropriate mailing list or forum via http://www.ubuntu.com/support/community/mailinglists , or you may contact me directly.

Thank you for your understanding.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.