Is ALSA responsible for detecting sound cards?

1

1

I installed a sound card which is not detected by my Linux installation, but it is detected and working when I boot off the Live CD. I have tried to do all kinds of things with Alsa to get it to work and haven't been successful. I'm wondering if Alsa can even help with this problem since I'm not sure if it is responsible for detecting sound card hardware.

tony_sid

Posted 2010-08-06T15:42:41.050

Reputation: 11 651

Answers

5

No, soundcard (and other) hardware is managed by kernel, and correct modules must be loaded. Maybe livecd loads modules which now are not installed yet.

If you are sure that sound is not muted and alsa is running (sudo /etc/init.d/alsa start) look at ubuntu help starting from "Is the system recognizing your sound card?".

You'll find how to know if your card is recognized and if you have the proper modules loaded.

If they are not loaded you will find how to install the correct linux ubuntu modules package.

For more help you can paste here the output of the following commands:

lspci -v |grep Audio

find /lib/modules/`uname -r` | grep snd

sudo aplay -l

Cagliostro

Posted 2010-08-06T15:42:41.050

Reputation: 1 620

the result from the second line is find: `/lib/modules/uname -r': No such file or directory – tony_sid – 2010-08-08T01:11:51.083

Just a hint, are you sure you have typed the correct command syntax? uname -r must be between and ? As an (not really) alternative, you can see if some sound related modules are loaded with " sudo lsmod |grep snd " – Cagliostro – 2010-08-08T18:34:24.997

Gasp..in my previous comment some symbols are gone..please, be sure that you typed correctly (did you do cut&paste?) the "find.." command..specifically the inverse quotes before and after the uname -r – Cagliostro – 2010-08-08T18:37:53.850

You say "No, soundcard (and other) hardware is managed by kernel" as if ALSA's not in the kernel. Hint: it is. The sound drivers in the kernel are ALSA. – maco – 2010-08-14T02:47:48.067

2

I've had a similar problem on my laptop. In my case the kernel module for my sound card (Intel, it's the built in one) wasn't correctly identifying my soundcard. I had to supply a hint. That was done in /etc/modprobe.d/

 /etc/modprobe.d/50-sound.conf:

 alias snd-card-0 snd-hda-intel model=dell-m6

That provided enough hints that the module was able to configure itself correctly for my sound chip.

In your case you need to see what, if any, sound modules are loaded. Cagliostro shows how to do that. Once you've found the card (if there is one), you can then hunt up ways to provide the right hint to your sound module. Finding that 'model' will take some hunting though, and will depend on what sound module is loaded.

SysAdmin1138

Posted 2010-08-06T15:42:41.050

Reputation: 5 239

Does that make everything work perfectly for you? If so, please email me (maco.m@ubuntu.com) the output of cat /proc/asound/card*/codec* and I'll generate a kernel patch. – maco – 2010-08-14T02:50:23.290

@maco Very happy to oblige. – SysAdmin1138 – 2010-08-15T02:51:09.823

1

Yes, it's an ALSA problem. ALSA handles all sound drivers in the Linux kernel.

maco

Posted 2010-08-06T15:42:41.050

Reputation: 755