READ THE HOWTOs.......
The most common problem here in the forum is the kernel config + alsa drivers = sound problem.
This is about the only HOWTOs that explain things in detail.. If you read them and search the forum BEFORE you venture into a kernel rebuild you will save yourself lots of trouble.....
Basic overview for using alsa drivers/kernel config
During the kernel config stage;
under sound
(y) Enable Sound Support
all other choices
(m) or (n) as required by your hardware..
NOTE:
IF you read the alsa HOWTOs it gives a listing of cards and their chip types... This is REQUIRED either as a kernel module or builted in...
I advise you to read this HOWTO for the proper selection of your cards chip type to build into the kernel....
Once you have built your kernel, installed it and its' modules;
download the alsa source code from the net
untar the baby to the /usr/src directory
cd to the alsa* directory
./configure
make
make install
make clean
NOW
alsaconf (to configure your card)
alsamixer (to set your sound levels, unmute)
alsaconf store (write the /etc/asound)
In your fav X enviroment run your fav sound mixer.. i.e. aumixer
set your levels and save
NOTE:
Anytime you tweak the kernel module build you MUST redo alsa.. When you install the modules without makeing an EXTRAVERSION it will overwrite the /lib/modules/<current #.#.##>/kernel/ modules, including the alsa sound directory....
A cheat for this IF you are only redoing some mods is...
cd to the /lib/modules/<current#.#.##>/kernel
ls
cp the sound directory to a safe place out of the modules directory
do your mod build and install
cp the saved sound directory back to the /lib/*** as stated above
AND nothing should have changed with alsa
This is tested as I have done it myself...
WARNING... If you recompile to a different kernel or EXTRAVERSION this will NOT work... AS the alsa MUST BE compiled to the kernel <current#.#.##> that you are using....
Now do please read the HOWTOs They are there to help and takes much guess work and sweat out of things....