/dev/dsp* disappeared after upgrade Lucid=>Maverick [ how-to at #52]

Bug #634211 reported by Cyrille Grosdemange on 2010-09-09
174
This bug affects 33 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Medium
Unassigned

Bug Description

After a Lucid=>Maverick upgrade, I have no /dev/dsp devices.

I use a Pinnacle Dazzle DVC100 to get video and audio from an analog source (like old VHS player).
I use mplayer to visualize that and mencoder to capture the video and audio.
In my mplayer or mencoder command lines, I used /dev/dsp2 to get the audio stream.

Since my upgrade, I haven't any /dev/dsp* in my /dev/ directory and so I don't know how to get this audio stream.

For example, here is the output of my mplayer command :
==================================================
$ mplayer tv:// -tv driver=v4l2:norm=SECAM:audiorate=44100:immediatemode=0:forceaudio:adevice=/dev/dsp2:device=/dev/video0

MPlayer 1.0rc4-4.4.5 (C) 2000-2010 MPlayer Team
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: Pinnacle Dazzle DVC 90/100/101/
 Capabilites: video capture audio read/write streaming
 supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = NTSC-443; 5 = PAL; 6 = PAL-BG; 7 = PAL-H; 8 = PAL-I; 9 = PAL-DK; 10 = PAL-M; 11 = PAL-N; 12 = PAL-Nc; 13 = PAL-60; 14 = SECAM; 15 = SECAM-B; 16 = SECAM-G; 17 = SECAM-H; 18 = SECAM-DK; 19 = SECAM-L; 20 = SECAM-Lc;
 inputs: 0 = Composite1; 1 = S-Video;
 Current input: 0
 Current format: YUYV
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
Selected input hasn't got a tuner!
Unable to open '/dev/dsp2': No such file or directory
Unable to open '/dev/dsp2': No such file or directory
Unable to open '/dev/dsp2': No such file or directory
v4l2: 0 frames successfully processed, 0 frames dropped.

Exiting... (End of file)
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: cyrille 1491 F.... pulseaudio
 /dev/snd/controlC0: cyrille 1491 F.... pulseaudio
CRDA: Error: [Errno 2] Aucun fichier ou dossier de ce type
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfbff8000 irq 43'
   Mixer name : 'Realtek ALC888'
   Components : 'HDA:10ec0888,1458a002,00100001'
   Controls : 38
   Simple ctrls : 21
Card1.Amixer.info:
 Card hw:1 'NVidia'/'HDA NVidia at 0xfaffc000 irq 17'
   Mixer name : 'Nvidia GT240 HDMI'
   Components : 'HDA:10de000d,10de0101,00100100'
   Controls : 16
   Simple ctrls : 4
Card2.Amixer.info:
 Card hw:2 'DVC100'/'Pinnacle Systems GmbH DVC100 at usb-0000:00:1d.7-5, high speed'
   Mixer name : 'USB Mixer'
   Components : 'USB2304:021a'
   Controls : 2
   Simple ctrls : 1
Card2.Amixer.values:
 Simple mixer control 'Line',0
   Capabilities: cvolume cvolume-joined cswitch cswitch-joined penum
   Capture channels: Mono
   Limits: Capture 0 - 16
   Mono: Capture 16 [100%] [16.00dB] [on]
DistroRelease: Ubuntu 10.10
HibernationDevice: RESUME=UUID=0106c34a-e643-4408-9b98-bf427e117462
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
MachineType: Gigabyte Technology Co., Ltd. P55-US3L
NonfreeKernelModules: nvidia
Package: linux (not installed)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-22-generic root=UUID=696f859d-9ee0-4526-9671-78db00bb51a7 ro quiet splash
ProcEnviron:
 LANG=fr_FR.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Regression: Yes
RelatedPackageVersions: linux-firmware 1.38
Reproducible: Yes
RfKill:

Tags: maverick regression-potential needs-upstream-testing
Uname: Linux 2.6.35-22-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 06/24/2010
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: FH
dmi.board.name: P55-US3L
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrFH:bd06/24/2010:svnGigabyteTechnologyCo.,Ltd.:pnP55-US3L:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnP55-US3L:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: P55-US3L
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

also unable all use of XawTV to record video ...

Fabio Marconi (fabiomarconi) wrote :

please attach the device and run in a terminal:
apport-collect 634211

affects: ubuntu → linux (Ubuntu)
Changed in linux (Ubuntu):
status: New → Incomplete

apport information

tags: added: apport-collected
description: updated

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed

Have the same problem as well. Is there any known solution?

Fabio Marconi (fabiomarconi) wrote :

@nubis
Please mark as affecting you too.
Thanks

TheAsp (asp-wasteland) wrote :

MythTV doesn't want to record sound from my capture card over ALSA properly. Using the OSS emulation has always worked in the past. I am currently using the Lucid kernel to keep it working.

It appears that the OSS emulation modules were removed to do some sort of experiment... With a software package that isn't in Ubuntu and I can't get to compile.

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/579300

AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: patrick 3016 F.... pulseaudio
 /dev/snd/controlC0: patrick 3016 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfbff8000 irq 48'
   Mixer name : 'Realtek ALC889'
   Components : 'HDA:10ec0889,1458a022,00100004'
   Controls : 38
   Simple ctrls : 21
Card1.Amixer.info:
 Card hw:1 'Generic'/'HD-Audio Generic at 0xfbefc000 irq 49'
   Mixer name : 'ATI R6xx HDMI'
   Components : 'HDA:1002aa01,00aa0100,00100200'
   Controls : 4
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
Card2.Amixer.info:
 Card hw:2 'SAA7134'/'saa7133[0] at 0xfb8ff000 irq 16'
   Mixer name : 'SAA7134 Mixer'
   Components : ''
   Controls : 6
   Simple ctrls : 3
DistroRelease: Ubuntu 10.10
Frequency: Once a day.
HibernationDevice: RESUME=UUID=878e2d97-7349-484c-a9bb-c4cff272085f
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
MachineType: Gigabyte Technology Co., Ltd. X58A-UD3R
NonfreeKernelModules: fglrx
Package: linux (not installed)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-22-generic-pae root=UUID=9004ea26-c729-419c-970b-0360822e1a91 ro quiet
ProcEnviron:
 PATH=(custom, user)
 LANG=de_DE.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.35-22.34-generic-pae 2.6.35.4
Regression: Yes
RelatedPackageVersions: linux-firmware 1.38
Reproducible: No
RfKill:

Tags: maverick kernel-sound regression-release needs-upstream-testing
Uname: Linux 2.6.35-22-generic-pae i686
UserGroups: adm admin cdrom dialout lpadmin mythtv plugdev sambashare
WifiSyslog:

dmi.bios.date: 08/24/2010
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: FB
dmi.board.name: X58A-UD3R
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrFB:bd08/24/2010:svnGigabyteTechnologyCo.,Ltd.:pnX58A-UD3R:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnX58A-UD3R:rvr:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: X58A-UD3R
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

Hoppla. So, before posting, I also issued the apport collect ;-) Actually, my regular sound card (hw0, I guess) works fine for any purpose. However, the sound capture device in my TV-Card (WinTV HVR1110, saa7133 chipset) is troublesome to access now. Previously I could use /dev/dsp2... now /dev/dsp is gone. However, I was able to get mplayer to run with alsa hw.2 - but I'm not sure how to translate mplayers options to mythtv - which is the ultimate goal.

VPablo (villumar) wrote :

Please, test with the kernel customized on this bug:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/579300

tags: added: maverick

Settin importance medium on Fabio Marconi's request.

Changed in linux (Ubuntu):
importance: Undecided → Medium

XdTV can capture from ALSA instead of OSS, but he is not on the packages repositories ( https://bugs.launchpad.net/ubuntu/+bug/155764 )

Fabio Marconi (fabiomarconi) wrote :

I subscribe Ubuntu-audio-team

mencoder is perfectly capable of using the ALSA interface to capture.
Use that instead of the deprecated (and in Maverick, obsoleted and
removed) OSS API.

tags: added: kernel-sound
summary: - /dev/dsp* disappeared after upgrade Lucid=>Maverick
+ /dev/dsp* disappeared after upgrade Lucid=>Maverick [ how-to at #52]
Changed in linux (Ubuntu):
status: Confirmed → New
status: New → Confirmed
yota (yota-opensystems) wrote :

The howto at #52 seems of little use to me since this is not a problem specifically related to mencoder/mplayer, which were just the tool of choice of the OP.
As already stated in other messages this regards everyone who is trying to get audio out of an analogue TV card in maverick, most noticeably with mythTV.
The point is not if mencoder is able or not to capture from ALSA, but that TV cards are not offering that option! (AFAIK they just offer OSS for that purpose).

And believe me: academic discussions about an obsoleted API, grooving pains moving towards a better audio system, or the need for progress are not so relevant when your wife stares at you asking why the recording of her soap is totally silent...

Still the only valid workaround, for tv card users, I've found so far by investigating all the bugs related to this one is to compile a custom kernel with OSS enabled like in posts #17-22 of https://bugs.launchpad.net/ubuntu/+source/linux/+bug/579300

Dheath None (findheath) wrote :

If /dev/dsp is completely removed then at least make the OSS Proxy Daemon in the package manager!
This way people can get the /dev/dsp back if desired.

http://sourceforge.net/projects/osspd/

Dheath None (findheath) wrote :

Forgot to add this:

http://mirror.leaseweb.com/kernel/people/tj/ossp/

Also padsp does not always work.

bcrowell (launchpadcrowell07) wrote :

Padsp has unacceptable performance. Osspd also has unacceptable performance, although perhaps not quite as bad as padsp.

The basic problem here is that Ubuntu took something that wasn't broken and intentionally broke it.

bcrowell (launchpadcrowell07) wrote :

Aoss has better performance than padsp and osspd.

For me, the problem is solved as I found the right parameter to give to mplayer/mencoder (using alsa device), thanks to a french documentation website contrib.

I use now :
$ mplayer [...] :forceaudio:alsa:adevice=hw.2,0: [...]

instead of :
$ mplayer [...] :forceaudio:adevice=/dev/dsp2: [...]

Of course, not resolve problems for other software using only OSS ...

Andy (andy-xillean) wrote :

Ok so along with the many things that this short sighted decision has broken Kino is also broken now. NO Audio as /dev/dsp is non existent. What a wonderful regression. Anyone know how to get Kino working ?

David Robert Lewis (afrodeity) wrote :

some bright spark forgot about backwards compatability, at least give us a /dev/dsp interface to pulseaudio.

Ákos Maróy (akos-maroy) wrote :

this is really bad news, as some software rely exclusively on OSS. for example, the XSquakBox plugin in X-Plane would only work with an OSS interface.

I wonder what the point was to remove the OSS interface :(

John Peach (john-launchpad) wrote :

I'm getting heartily sick of the Ubuntu "improvements". I decided to copy some old VHS tapes to DVD and find that there's now no easy way to capture them with the audio. This is the same kind of crap where we were told that we should use openjdk and just report any problems when Sun java worked fine. At least Sun java is available in the repositories now. No such luck with OSS emulation.

ebbr.bugs (ebbr.bugs) wrote :

The only game I even play (from time to time) uses /dev/dsp.
You're forcing my hand to remove ubuntu and install windows again.
Thanks for the improvements, they really make sense!

John Peach (john-launchpad) wrote :

Is this bug going to be fixed or do I need to trash ubuntu?

John Peach (john-launchpad) wrote :

What else are these morons going to deprecate without providing working replacements? Time to switch distros I'm afraid.

Clóvis Fabrício (nosklo) wrote :

I agree that a switch to a better audio interface would be great, but we're not there yet, since there are no replacements, so this is a regression. I use transcode to record audio/video and it has no alsa option.

Bill Grau (graub) wrote :

Removing backward compatibility for OSS legacy apps is a very stupid thing to do...

You can see here some of the disadvantages of free software, where decision makers and developers
do not need to care about their user base, as it does not make any difference to them sale-wise...

My little adventure with Ubuntu is nearing its end...

I wonder if Mint is any better?

AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu4
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: preich 13965 F.... pulseaudio
 /dev/snd/controlC0: preich 13965 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf2420000 irq 45'
   Mixer name : 'Conexant CX20585'
   Components : 'HDA:14f15069,17aa214c,00100302 HDA:14f12c06,17aa2122,00100000'
   Controls : 8
   Simple ctrls : 5
Card1.Amixer.info:
 Card hw:1 'NVidia'/'HDA NVidia at 0xcdefc000 irq 16'
   Mixer name : 'Nvidia GPU 0b HDMI/DP'
   Components : 'HDA:10de000b,10de0101,00100100'
   Controls : 16
   Simple ctrls : 4
Card29.Amixer.info:
 Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30, fw 6IHT33WW-1.07'
   Mixer name : 'ThinkPad EC 6IHT33WW-1.07'
   Components : ''
   Controls : 1
   Simple ctrls : 1
Card29.Amixer.values:
 Simple mixer control 'Console',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
DistroRelease: Ubuntu 11.10
HibernationDevice: RESUME=UUID=f75fa409-3232-47b5-babe-1687eefd7be3
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
MachineType: LENOVO 2522BF4
NonfreeKernelModules: nvidia
Package: linux (not installed)
ProcEnviron:
 LANGUAGE=nds_DE:en_GB:en
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-13-generic-pae root=UUID=cae405e2-985a-4b8e-9617-eb54fe40bb66 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.0.0-13.22-generic-pae 3.0.6
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-13-generic-pae N/A
 linux-backports-modules-3.0.0-13-generic-pae N/A
 linux-firmware 1.60
StagingDrivers: mei
Tags: oneiric running-unity staging
Uname: Linux 3.0.0-13-generic-pae i686
UpgradeStatus: Upgraded to oneiric on 2011-11-29 (0 days ago)
UserGroups: adm admin audio cdrom dialout lpadmin plugdev pulse pulse-access sambashare video
dmi.bios.date: 04/19/2010
dmi.bios.vendor: LENOVO
dmi.bios.version: 6IET58WW (1.18 )
dmi.board.name: 2522BF4
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr6IET58WW(1.18):bd04/19/2010:svnLENOVO:pn2522BF4:pvrThinkPadT410:rvnLENOVO:rn2522BF4:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 2522BF4
dmi.product.version: ThinkPad T410
dmi.sys.vendor: LENOVO

tags: added: oneiric running-unity staging

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

This bug was filed against a series that is no longer supported and so is being marked as Won't Fix. If this issue still exists in a supported series, please file a new bug.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments