You are not logged in.
Pages: 1
File ". Asound" I have configured to work with the card 0. And it works.
Here's the order.
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: DG [Xonar DG], device 0: Multichannel [Multichannel]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: DG [Xonar DG], device 1: Digital [Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Intel [HDA Intel], device 0: ALC1200 Analog [ALC1200 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Intel [HDA Intel], device 1: ALC1200 Digital [ALC1200 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
But my problem is this: every time you start changing the order. Sometimes the card becomes 2 and other in 1. And of course, does not function in these cases. Play sound is like rolling the dice. That will never order.
How I can force that is always the order that I described above?
Thank you very much in advance.
Last edited by tanrax (2013-01-23 10:45:38)
Offline
Use the device names rather than numbers as described in the alsa wiki page on the arch wiki, or more details on wiki.alsa-project.org.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
You might also do something like create a shell script that runs from ~/.xinitrc that creates ~/.asoundrc.
For example:
#!/bin/bash
card=$(aplay -l | awk '/ALC1200 Analog/ { print $2 }' | sed 's/://')
cat <<-EOF >$HOME/.asoundrc
defaults.pcm.card $card
defaults.pcm.device 0
defaults.ctl.card $card
EOF
exit 0
Offline
Read =https://wiki.archlinux.org/index.php/Alsa
topic Set the default sound card
Offline
I think I've gotten scared, because now you do not change the order . If I go back, I will follow your wonderful advice. Thank you all.
Offline
Pages: 1