Wrong sound card

What to do if you have multiple sound cards and the wrong one is selected (Ubuntu & Debian distros)

I recently had the following issue which meant that I couldn't hear any sound although the correct modules were loaded and I could change all the settings in the mixer for the sound card.

On my box there are a couple of sound cards and the wrong one was the default, so I needed to change this.

All you need to do is type:

#> sudo asoundconf list

This will will give you a list of your sound cards, this gave me:

CK8S
Audigy2

Then select which cards you want as default and just type (I wanted the Audigy2 card to be the default):

sudo asoundconf set-default-card Audigy2

That's it - it may save you a few hours on figuring out how to solve it when there isn't an alsaconf in ubuntu.