Unknown PCM hw:0,0 : no sound anymore

Bug #33420 reported by Lionel Dricot
6
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Medium
Unassigned
alsa-utils (Ubuntu)
Invalid
Medium
Martin Pitt

Bug Description

Since the 1st march 2006 in Dapper, I don't have any sound with alsa anymore.

Just launching totem gives :

ALSA lib confmisc.c:1107:(snd_func_refer) Unable to find definition 'defaults.pcm.subdevice'
ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3951:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM hw:0,0
ALSA lib pcm_dmix.c:819:(snd_pcm_dmix_open) unable to open slave
ALSA lib confmisc.c:1107:(snd_func_refer) Unable to find definition 'defaults.pcm.subdevice'
ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3951:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM hw:0,0
ALSA lib pcm_dmix.c:819:(snd_pcm_dmix_open) unable to open slave

It's not a gstreamer bug because noone has sound anymore.

Strangely, sound is still working for applications that use OSS. So OSS->ALSA is still working

My soundcard is : C-Media PCI CMI8738

I also have an onboard nVidia NForce2 that I've disabled a few months ago. (I blacklisted the module for the NForce2 sor the CMI would work. I was working for a long time without any problem)

Note: the original reporter indicated the bug was in package 'alsa'; however, that package was not published in Ubuntu.

Revision history for this message
Martin Pitt (pitti) wrote :

Just debugged in IRC:

<ploum> **** List of PLAYBACK Hardware Devices ****
<ploum> card 0: CMI8738 [C-Media PCI CMI8738], device 0: CMI8738 [C-Media PCI DAC/ADC]
<ploum> Subdevices: 1/1
<ploum> Subdevice #0: subdevice #0
<ploum> card 0: CMI8738 [C-Media PCI CMI8738], device 1: CMI8738 [C-Media PCI 2nd DAC]
<ploum> Subdevices: 1/1
<ploum> Subdevice #0: subdevice #0
<ploum> card 0: CMI8738 [C-Media PCI CMI8738], device 2: CMI8738 [C-Media PCI IEC958]
<ploum> Subdevices: 1/1
<ploum> Subdevice #0: subdevice #0

original .asoundrc.asoundconf:
!defaults.pcm.card CMI8738

This needs another line to work properly:
defaults.pcm.subdevice 0

Revision history for this message
WillDyson (will-dyson) wrote :

I was just experiencing this problem myself. Hardware is a Dell 700m laptop.

Alsa programs were giving output similar to:

will@lappy:~$ amixer
ALSA lib confmisc.c:1107:(snd_func_refer) Unable to find definition 'defaults.ctl.card'
ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib confmisc.c:242:(snd_func_getenv) error evaluating default
ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_getenv returned error: No such file or directory
ALSA lib conf.c:3962:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib control.c:817:(snd_ctl_open_noupdate) Invalid CTL default
amixer: Mixer attach default error: No such file or directory

My original .asoundrc.asoundconf contained only the following non-comment line:

!defaults.pcm.card I82801DBICH4

Manually adding the following fixed it:

!defaults.ctl.card I82801DBICH4

Also just removing the line from .asoundrc that references .asoundrc.asoundconf fixes the entire issue.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Having asoundconf set !defaults.ctl.card does the trick (as mentioned above).

Revision history for this message
Martin Pitt (pitti) wrote :

Rejecting useless 'Ubuntu' task.

Revision history for this message
Martin Pitt (pitti) wrote :

Closing as duplicate.

Changed in alsa-utils:
status: Confirmed → Rejected
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.