You are not logged in.
Pages: 1
Topic closed
I had to remove my sound card to free a pci slot, so I switched to the Realtek ALC662 built into the motherboard. Previously alsamixer had been working, but now when I try to invoke it I get the following error:
$ alsamixer
cannot open mixer: Invalid argument
On the advice of one forum post I changed my .asoundrc to read
pcm.!default {
type hw
card 0
device 0
}
ctl.!default {
type hw
card 0
device 0
}
This did not help, nor did adding modprobe snd-hda-intel model=auto to /etc/modprobe.conf or /etc/modprobe.d/sound.conf as various posters on various forums suggested. I also ran alsactl init to no avail. What am I doing wrong?
Last edited by quantumcoffeemug (2011-07-27 18:42:39)
Offline
The problem will probably be in your /etc/modprobe.d/alsa.conf and your old card will probable be listed there. Simply remove the card name, start alsamixer , and select the new default sound chip.
Offline
Thanks, that, along with deleting the .asoundconf file that an apparently way outdated post on another forum suggested, solved the problem.
Offline
This is the first result in google... so this deserves a better answer, necro or not.
Having two soundcards, and wanting the digital out (dev 1) of the second (card 1) to be the default... This is a common asound.conf (as mentioned in OP).
pcm.!default {
type hw
card 1
device 1
}
ctl.!default {
type hw
card 1
device 1
}
It generates the same 'Alsamixer error "cannot open mixer: Invalid argument" ' with alsa 1.0.27.2-1ubuntu2 while speaker-test did work (Ubuntu 14.04)
The "CTL" element defines the Mixer. The mixer controls ALL (sub)devices on a sound card (eg: analog and digital). Therefore it is frivolous to reference the "device 1" for CTL.
SOLUTION: remove the "device 1" line from CTL.
pcm.!default {
type hw
card 1
device 1
}
ctl.!default {
type hw
card 1
}
The error message went away for me, while still keeping my second sound card as default when opening mixer controls.
Last edited by kevinf28 (2014-07-20 22:01:26)
Offline
This is the first result in google... so this deserves a better answer, necro or not.
Indeed it does, and certainly not that one. Use defaults.ctl.card node instead:
defaults.ctl.!card 1;
# for the second card
# it would be even better to use the name reference
# that can be obtained using
# cat /proc/asound/card*/id
# for example
# defaults.ctl.!card "PCH"
Do not use that kind of configuration for your pcm devices either. Read the alsa wiki for more explanation.
Simply setting a type hw as default card is equivalent to addressing hardware directly, which leaves the device unavailable to other applications. This method is only recommended if it is a part of a more sophisticated setup ~/.asoundrc or if user deliberately wants to address sound card directly (digital output through eic958 or dedicated music server for example).
Thank you Jason.
Offline
Closing now the record has been corrected: thanks emeres.
Offline
Pages: 1
Topic closed