A solution for no sound in Slackware 13.37
If you are unable to get sound working in Slackware, this guide may provide a solution to the problem.
You will need to be root in order to make the following changes:
In order to get ALSA to detect and configure the card we must first run 'alsaconf'. Alsaconf has a database of cards in order to identify given hardware, but some hardware may not exist in this database, resulting in the following message:
In order to get alsaconf to see our card, we must first add it to the card database. After alsaconf has been run you will find /var/tmp/alsaconf.cards has been created, and this file contains the list of cards it can detect.
To find out some information about the card we must run 'lspci -nn' and search through to find the card:
The important bit to note is the bit at the end: 8086:3a3e. This is what we will now add to /var/tmp/alsaconf.cards. First the appropriate location must be found, and in this case we want to put it under snd-hda-intel.o:
00:1b.0 Audio device : Intel Corporation 82801JI (ICH10 Family) HD Audio Controller [8086:3a3e]
You should be able to find out where to put it by running 'lsmod' and finding the name of the loaded sound module for your card.
Once this is added in, rerun 'alsaconf' and the card should now be discovered:
Run through the process and let it modify /etc/modprobe.d/sound.conf, and the sound card should now be configured. The levels can be set through 'alsamixer'
On my system I have a USB webcam with a built in microphone, and because this is loaded first it shows up as the primary device.
This can cause problems, such as when playing videos in Firefox the following message may appear:
The solution is to modify the order in which the devices are loaded by modprobe, and we need to go back to /etc/modprobe.d/sound.conf. After adding
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
to the beginning of the file and rebooting the machine, snd_hda_intel is loaded first and becomes the primary device:
options snd_hda_intel index=0
options snd_usb_audio index=1
The sound should now be fully working.