Using alsamixer/amixer after selecting a non-default sound card (System> Preferences> Sound> Default sound card) results in errors

Bug #35540 reported by Daniel T Chen
28
Affects Status Importance Assigned to Milestone
control-center (Ubuntu)
Fix Released
Medium
Martin Pitt
gnome-volume-manager (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

debian/patches/23_default_soundcard_selector.patch needs to be modified to set defaults.ctl.card in addition to defaults.pcm.card in ~/.asoundrc.asoundconf after the user selects a non-default sound card using the System> Preferences> Sound> Default sound card menu. Otherwise, the following error occurs when using alsamixer (or amixer) from the command line:

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

Daniel T Chen (crimsun)
description: updated
Changed in control-center:
assignee: nobody → pitti
Revision history for this message
Martin Pitt (pitti) wrote :

Confirming, need to set defaults.ctl.card as well.

Changed in control-center:
status: Unconfirmed → Confirmed
Martin Pitt (pitti)
Changed in control-center:
status: Confirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

A similar change needs to be done in g-v-m.

Changed in gnome-volume-manager:
assignee: nobody → pitti
status: Unconfirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

 control-center (1:2.14.1-0ubuntu3) dapper; urgency=low
 .
   * debian/patches/23_default_soundcard_selector.patch:
     - Set defaults.ctl.card in addition to defaults.pcm.card. Closes: LP#35540
     - Factor out asoundconf calls into a separate function set_default_card().
     - Fix some compiler warnings.

Changed in control-center:
status: In Progress → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

 gnome-volume-manager (1.5.15-0ubuntu5) dapper; urgency=low
 .
   * debian/patches/91_ubuntu-remove_default_audio_dev.patch:
     - If the default audio device is removed, just remove the default setting
       from the ALSA configuration instead of setting it to 0 (asoundconf now
       provides the 'delete' command for this).
     - Reset defaults.ctl.card, too. Closes: LP#35540
     - gvm_delete_alsa_playback(): Cope with default cards being specified by
       name.

Changed in gnome-volume-manager:
status: In Progress → Fix Released
Revision history for this message
Toby Smithe (tsmithe) wrote :

yeah. this is incredibly annoying.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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