LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 08-25-2007, 07:56 AM   #1
m4mach
Member
 
Registered: Jul 2007
Location: Poland
Distribution: Debian
Posts: 45

Rep: Reputation: 15
Alsa doesn't detect soundcard device


hi
I've read a lot about Alsa but my problem is quite odd. First of all, Alsa is built into the kernel (2.6.22) and my sound card is detected as normal:

Code:
...
Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 2007 UTC).
ACPI: PCI Interrupt 0000:00:0a.0[A] -> GSI 18 (level, low) -> IRQ 19
ALSA device list:
  #0: SBLive! Value [CT4670] (rev.5, serial:0x201102) at 0xd800, irq 19
...
But...

Code:
# alsamixer
alsamixer: function snd_ctl_open failed for default: No such device
And...

Code:
# alsactl restore
alsactl: load_state:1327: No soundcards found...
So, I tried:

Code:
# strace -eopen alsamixer
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libncurses.so.5", O_RDONLY)  = 3
open("/usr/lib/libasound.so.2", O_RDONLY) = 3
open("/lib/libm.so.6", O_RDONLY)        = 3
open("/lib/libdl.so.2", O_RDONLY)       = 3
open("/lib/libpthread.so.0", O_RDONLY)  = 3
open("/lib/libc.so.6", O_RDONLY)        = 3
open("/usr/share/alsa/alsa.conf", O_RDONLY) = 3
open("/dev/snd/controlC0", O_RDONLY)    = -1 ENODEV (No such device)
open("/dev/aloadC0", O_RDONLY)          = -1 ENODEV (No such device)
alsamixer: function snd_ctl_open failed for default: No such device
Process 622 detached
And...

Code:
# strace -eopen alsactl restore
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/usr/lib/libasound.so.2", O_RDONLY) = 3
open("/lib/libm.so.6", O_RDONLY)        = 3
open("/lib/libdl.so.2", O_RDONLY)       = 3
open("/lib/libpthread.so.0", O_RDONLY)  = 3
open("/lib/libc.so.6", O_RDONLY)        = 3
open("/etc/asound.state", O_RDONLY)     = 3
open("/dev/snd/controlC0", O_RDONLY)    = -1 ENODEV (No such device)
open("/dev/aloadC0", O_RDONLY)          = -1 ENODEV (No such device)
open("/dev/snd/controlC1", O_RDONLY)    = -1 ENODEV (No such device)
open("/dev/aloadC1", O_RDONLY)          = -1 ENODEV (No such device)
open("/dev/snd/controlC2", O_RDONLY)    = -1 ENODEV (No such device)
open("/dev/aloadC2", O_RDONLY)          = -1 ENODEV (No such device)
open("/dev/snd/controlC3", O_RDONLY)    = -1 ENODEV (No such device)
open("/dev/aloadC3", O_RDONLY)          = -1 ENODEV (No such device)
open("/dev/snd/controlC4", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/dev/aloadC4", O_RDONLY)          = -1 ENOENT (No such file or directory)
open("/dev/snd/controlC5", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/dev/aloadC5", O_RDONLY)          = -1 ENOENT (No such file or directory)
...
alsactl: load_state:1327: No soundcards found...
Process 624 detached
But I've already had alsa devices (I've used snddevices script):

Code:
# ls aload* -l
crw-rw---- 1 root audio 116,  0 Aug 24 13:52 aloadC0
crw-rw---- 1 root audio 116, 32 Aug 24 13:52 aloadC1
crw-rw---- 1 root audio 116, 64 Aug 24 13:52 aloadC2
crw-rw---- 1 root audio 116, 96 Aug 24 13:52 aloadC3
crw-rw---- 1 root audio 116,  1 Aug 24 13:52 aloadSEQ
Code:
# ls snd/con* -l
crw-rw---- 1 root audio 116,  0 Aug 24 13:52 snd/controlC0
crw-rw---- 1 root audio 116, 32 Aug 24 13:52 snd/controlC1
crw-rw---- 1 root audio 116, 64 Aug 24 13:52 snd/controlC2
crw-rw---- 1 root audio 116, 96 Aug 24 13:52 snd/controlC3
Another suspicious thing is that udev was not able to create these device nodes I had to do it manually (snddevices). It looks like it couldn't find it in the kernel. But I am able to browse all info about my soundcard in /proc/asound and /sys and it is correct.
btw. I have CLFS+BLFS distro, and so far everything (apart from alsa) works

Please help me, I'm out of ideas...
 
Old 08-25-2007, 08:36 AM   #2
nan0meter
Member
 
Registered: Aug 2007
Location: The Netherlands
Distribution: Fedora 7 x86_64
Posts: 119

Rep: Reputation: 15
Alsa recognizes your soundcard but are you sure it also found your PCM device? If not then every program that uses alsa for sound won't work or even crash (happens to me with rhythmbox).

I had the same problem with 2.6.22 on Fedora 7 x86_64 but last night I reinstalled it and updated all the packages and everything was fine! Although i have a very different sound card (snd-hda-intel).

Please try to find out if you have a PCM device.
 
Old 08-25-2007, 08:52 AM   #3
m4mach
Member
 
Registered: Jul 2007
Location: Poland
Distribution: Debian
Posts: 45

Original Poster
Rep: Reputation: 15
Well, I can't just update as I built my root filesystem from source...

I have got PCM and all sound devices detected. I found that this is the udev problem. This udev is very strange so complitated but it only creates device nodes in /dev. I am able to create this nodes by hand (or script) but these (manually created) nodes does not work for sound. Why? Does udev makes some special tricks, while doing these trivial nodes?

btw. I'm wonder why such thinkgs like creating /dev nodes is not implemented into the kernel. Maybe it should be done

OK, Does someone have any ideas??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alsa conf doesn't detect my soundcard spfdz Debian 1 05-04-2006 11:45 AM
ALI-M5451 Laptop Soundcard >>No such device>>Device Not Found>No Pipeline Balarabay1 Linux - Hardware 1 02-21-2006 12:54 PM
alsaconf doesn't detect my soundcard. Lokathor Linux - General 4 10-25-2005 11:42 PM
FC 3 does not detect my soundcard sharjeelisnewtolinux Fedora 3 05-31-2005 06:08 PM
Cannot detect soundcard in FC3 Jorenko Fedora 2 01-14-2005 05:03 PM


All times are GMT -5. The time now is 11:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration