The officially official Devuan Forum!

You are not logged in.

#1 2016-12-04 05:41:58

Registered: 2016-11-25
Posts: 60  

Multiple Sound Cards

Can't hear sound? You likely have more than one sound card and ALSA chose the wrong one at boot. To correct this, you could create a .asoundrc file in your home directory specifying the default card. Unfortunately, Firefox may not recognize this file so you would continue to have no sound in Firefox. To remedy this, you will need to specify via modprobe in which order to load sound drivers so that your preferred card is selected first by ALSA.

First, run the following command to see which order ALSA assigned your cards:

cat /proc/asound/cards

In my case I got:

0 [HDMI ]: HDA-Intel - HDA Intel HDMI
HDA Intel HDMI at 0xe0510000 irq 61
1 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xe0514000 irq 59

Now, tell the kernel to load PCH as the default:

sudo bash -c 'echo "options snd_hda_intel index=1,0" > /etc/modprobe.d/alsa.conf'

You can verify the driver name to use above by running

lsmod | grep snd

Reboot the computer and you should have sound!

Last edited by mlsmith (2016-12-05 03:25:52)


#2 2016-12-17 11:21:00

Geoff 42
Registered: 2016-12-15
Posts: 180  

Re: Multiple Sound Cards

If you have 2 different devices sharing the same module, then you can use the "enable" parameter to disable the one that you don't use. So that if you have both HDMI and PCH, with your speakers plugged into the PCH outlets, and your HDMI device appears first, then you set the entry in /etc/modprobe.d/alsa-base.conf  to :-

# Disable the HDMI card which shows up first, but enable PCH
options snd-hda-intel enable=0,1


Last edited by Geoff 42 (2016-12-17 11:22:28)


#3 2018-08-29 04:59:54

Registered: 2018-08-26
Posts: 1  

Re: Multiple Sound Cards

Thank You for your fix. 

    bash -c 'echo "options snd_hda_intel index=1,0" > /etc/modprobe.d/alsa.conf'

everything looked fine after devuan install with the sound card drivers and alsa, but no sound.  Pulseaudio could not find a device, after 3 days of working on it i tried the above line and... Ego zero, Internet 1, and victory is mine smile Thanks again.

Last edited by Sawyer (2018-08-29 05:13:56)


Board footer