[Pkg-alsa-devel] Bug#505089: alsa-utils: "asoundconf set-default-card" does not work
Lionel Elie Mamane
lionel at mamane.lu
Thu Feb 12 07:36:15 UTC 2009
tags 505089 +patch
thanks
On Thu, Feb 12, 2009 at 10:09:34AM +1100, Paul TBBle Hampson wrote:
> Just came across this, and from [1] it turns out the fix is to
> remove the exclamation mark in front of the "defaults.pcm.card" in
> the generated file.
No, the reference you give does more than just remove the exclamation
mark. It also refers to the card by number and not by name, which is
not useful to someone that does not have root access to the machine
and cannot fix which card is which number.
When just removing the exclamation mark, I get the following
.asoundrc.asoundconf
# ALSA library configuration file managed by asoundconf(1).
#
# MANUAL CHANGES TO THIS FILE WILL BE OVERWRITTEN!
#
# Manual changes to the ALSA library configuration should be implemented
# by editing the ~/.asoundrc file, not by editing this file.
defaults.pcm.card CK804
defaults.ctl.card CK804
defaults.pcm.device 0
defaults.pcm.subdevice -1
which gives this error:
ALSA lib conf.c:976:(parse_value) card is not a string
ALSA lib conf.c:1589:(snd_config_load1) /home/master/.asoundrc.asoundconf:8:0:Invalid argument
ALSA lib conf.c:2850:(snd_config_hook_load) /home/master/.asoundrc may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:2714:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
ALSA lib conf.c:3079:(snd_config_update_r) hooks failed, removing configuration
But I have _finally_ figured it out! Removing the exclamation mark
_and_ applying this patch to /usr/share/alsa/alsa.conf does the trick.
--- alsa.conf.bak 2009-02-12 08:06:25.458031089 +0100
+++ alsa.conf 2009-02-12 08:08:59.074231990 +0100
@@ -58,8 +58,8 @@
# show extended name hints
defaults.namehint.extended off
#
-defaults.ctl.card 0
-defaults.pcm.card 0
+defaults.ctl.card "0"
+defaults.pcm.card "0"
defaults.pcm.device 0
defaults.pcm.subdevice -1
defaults.pcm.nonblock 1
Here are patches.
--
Lionel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alsa-lib_505089.patch
Type: text/x-diff
Size: 1672 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-alsa-devel/attachments/20090212/d05a19bc/attachment.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alsa-utils_505089.patch
Type: text/x-diff
Size: 1169 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-alsa-devel/attachments/20090212/d05a19bc/attachment-0001.patch
More information about the Pkg-alsa-devel
mailing list