LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-14-2004, 07:58 AM   #1
agts
LQ Newbie
 
Registered: Jan 2004
Posts: 15

Rep: Reputation: 0
alsamixer: function snd_ctl_open failed for default: No such file or directory


I have a SB Audigy 6 and RH9.

When I run the audio card detection it states that
the following audio device was detected:

Vendor: Creative Labs
Model: SB Audigy
Module : audigy

After pressing the button "Play test sound" it states:

The audigy driver could not be loaded. This soundcard may not be compatible with Red Hat Linux.

After that I tried Alsa.

I downloaded the following Alsa-packages:

alsa-driver-1.0.3rc2.tar
alsa-lib-1.0.3rc2.tar
alsa-utils-1.0.3rc2.tar

I followed the Alsa instructions below:

Unzip and install the alsa-driver package

bunzip2 alsa-driver-xxx
tar -xf alsa-driver-xxx
cd alsa-driver-xxx
./configure --with-cards=emu10k1 --with-sequencer=yes;make;make install

The snddevices script sets the permissions for the devices it creates to root. You should

chmod a+rw /dev/dsp /dev/mixer /dev/sequencer /dev/midi

Now unzip and install the alsa-lib package

cd ..
bunzip2 alsa-lib-xxx
tar -xf alsa-lib-xxx
cd alsa-lib-xxx
./configure;make;make install

Now unzip and install the alsa-utils package

cd ..
bunzip2 alsa-utils-xxx
tar -xf alsa-utils-xxx
cd alsa-utils-xxx
./configure;make;make install

Now insert the modules into the kernel.

modprobe snd-emu10k1;modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss


When I run alsamixer I get the following error:

alsamixer: function snd_ctl_open failed for default: No such file or directory

Does anyone have a clue.
 
Old 03-14-2004, 09:47 AM   #2
hollywoodb
Member
 
Registered: Aug 2003
Location: Minnesota, U.S.A.
Distribution: Debian, openSUSE
Posts: 400

Rep: Reputation: 30
I had a similar problem using udev.... try starting the alsasound script after your system has booted, then run alsa mixer and see if you still get the error..... also make sure that /dev/dsp, /dev/mixer exist before you run alsamixer, if they don't then something is wrong... you could also try deleting /etc/asound.state... a new one will be created once you restart alsa again.
 
Old 03-14-2004, 11:09 AM   #3
agts
LQ Newbie
 
Registered: Jan 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Seems my soundcard is not recognized at all. Getting really confused now. Please help

I thought I had followed all instructions at the ALSA side.

At boot, some of the boot-messages state:

insmod : soundcore already exists ....

So after that I think my sound card is not recognized at all.

That I entered alsaconf (after pressing some OK buttons), the text below is displayed:

Loading driver...
Starting sound driver: snd-emu10k1 /lib/modules/2.4.20-30.9/kernel/sound/pci/emu10k1/snd-emu10k1.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20-30.9/kernel/sound/pci/emu10k1/snd-emu10k1.o: insmod /lib/modules/2.4.20-30.9/kernel/sound/pci/emu10k1/snd-emu10k1.o failed
/lib/modules/2.4.20-30.9/kernel/sound/pci/emu10k1/snd-emu10k1.o: insmod snd-emu10k1 failed
done
Setting default volumes...
Saving the mixer setup used for this in /etc/asound.state.
/usr/sbin/alsactl: save_state:1061: No soundcards found...

Please can someone explain exactly what my next step should be.


 
Old 03-14-2004, 01:47 PM   #4
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Try getting rid of the existing OSS modules.
 
Old 03-18-2004, 06:44 AM   #5
twcinpa
LQ Newbie
 
Registered: May 2003
Posts: 26

Rep: Reputation: 15
Any luck with this issue. I'm having the same problem on Fedora Core 1. The only way I can get sound to work is to reconfigure ALSA (/usr/sbin/alsaconf) each time I boot, then it plays well. However, on the next re-boot there is no sound.

It seems like some setting or permission is being re-set?

Tom
 
Old 03-27-2004, 12:46 AM   #6
schurt
Member
 
Registered: Nov 2003
Location: raleigh, nc
Distribution: fedora, arch
Posts: 78

Rep: Reputation: 15
(root@eatbabies:adam)# strace -eopen alsamixer
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
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)
open("/dev/snd/controlC0", O_RDWR) = -1 ENODEV (No such device)
open("/dev/snd/controlC0", O_RDONLY) = -1 ENODEV (No such device)
open("/dev/aloadC0", O_RDONLY) = -1 ENODEV (No such device)
open("/dev/snd/controlC0", O_RDWR) = -1 ENODEV (No such device)

alsamixer: function snd_ctl_open failed for default: No such device

this is my trace results.. kind of confusing but ive compiled alsa as a Module in my 2.6.4 kernel, and setup my modprobe.conf file per the alsa website

here is my modules list

(root@eatbabies:adam)# lsmod
Module Size Used by
snd_pcm_oss 48324 -
snd_mixer_oss 17472 -
snd_emu10k1 91876 -
snd_rawmidi 20352 -
snd_pcm 86656 -
snd_timer 21856 -
snd_seq_device 6436 -
snd_ac97_codec 59332 -
snd_page_alloc 9092 -
snd_util_mem 3200 -
snd_hwdep 7200 -
3c59x 35144 -
snd 46052 -
soundcore 6624 -

all is there, still receiving the error the other guys are ;(
 
Old 03-27-2004, 05:23 AM   #7
twcinpa
LQ Newbie
 
Registered: May 2003
Posts: 26

Rep: Reputation: 15
I don't know if this will help, I really haven't looked up the command to see what's going on, but I re-compiled the driver with this suggested command and it now works.

Sound card is an aureal au8820.

./configure --with-cards=au8820 --with-snd-card=au8820 --with-sequencer=yes --with-isapnp=no --with-oss=yes
 
Old 03-27-2004, 08:07 AM   #8
thewizard20
Member
 
Registered: Sep 2003
Location: ny
Distribution: slackware 9.1
Posts: 73

Rep: Reputation: 15
i had the same problem when i installed alsa after installing alsa driver i had to do ./snddevices even though it says it for the older drivers and that fixed my alsamixer
 
Old 03-27-2004, 08:12 AM   #9
agts
LQ Newbie
 
Registered: Jan 2004
Posts: 15

Original Poster
Rep: Reputation: 0
alsamixer item Audigy Analog/Digital output Jack On/OFF

Hi,

Still trying to get my Audigy soundcard working.

When I run alsamixer and put all items max. + I put my boxes at max I hear a noise from the mic but no sound at all.

The strangest thing is though when I unmute the item alsamixer item Audigy Analog/Digital output Jack On/OFF the mic noise stops. Then there is only silence. When I leave this item muted I get the mic noise.

As soon as I heard the mic noise I tried some sound applications on (cd - wav, midi) no sound at all.

I am getting very frustrated.

Can someone explain the behaviour of this alsamixer item Audigy Analog/Digital output Jack On/OFF.
 
Old 03-31-2004, 03:24 PM   #10
gmasci
LQ Newbie
 
Registered: Apr 2001
Posts: 8

Rep: Reputation: 0
Thanks Wizzard that snddevices did it for me!
 
Old 04-03-2004, 01:38 PM   #11
greuben
LQ Newbie
 
Registered: Dec 2003
Location: Illinois
Distribution: Fedora Core 1
Posts: 3

Rep: Reputation: 0
I'm having similar issues. I've got an Audigy2 zs and have compiled the alsa driver which installed ok and I have decent sound. However I get the same error message "alsamixer: function snd_ctl_open failed for default: No such file or directory." It also states no sound card detected even though running alsaconf successfully set up the card as emu10k1. I checked for /dev/dsp and /dev/mixer and have neither of them. I've actually run into this while trying for sometime to get more advanced control of the audigy2 features. I can get digital sound out the spdif -out connector of the live-drive for mp3's but am unable to get the ac3 encoded audio out unprocessed to input into a Promedia DDigital Decoder to be processed there. The display always indicates PCM. I wonder if either the dvd software programs are decoding it or the card's dolby digital decoder is doing so. I tried the ./snddevices to no avail and don't have a /etc/asound.state file to work with. I would appreciate any suggestions.
 
Old 04-03-2004, 01:54 PM   #12
thewizard20
Member
 
Registered: Sep 2003
Location: ny
Distribution: slackware 9.1
Posts: 73

Rep: Reputation: 15
did you run ./snddevices after you compiled your alsadriver
 
Old 04-03-2004, 02:21 PM   #13
THX75
Member
 
Registered: Feb 2004
Location: Oklahoma, USA
Distribution: Ubuntu | Mac OS X 10.3
Posts: 143

Rep: Reputation: 15
I ran into a similar problem when I tried up update my Fedora kernel to 2.6. I was finally able to ALSA to work, but I would have to unmute my speakers after each reboot, even with the appriate altctl code in my modprobe.

Here's a link I posted in the Fedora forum regarding my experience. Definately try the snddevices script as it seems to fix a lot of my problems.

http://www.linuxquestions.org/questi...hlight=alsa+.6
 
Old 04-03-2004, 05:33 PM   #14
greuben
LQ Newbie
 
Registered: Dec 2003
Location: Illinois
Distribution: Fedora Core 1
Posts: 3

Rep: Reputation: 0
Many thanks. Once I ran ./snddevices in the alsa driver directory it was successful and fixed things. Sure appreciate the help folks.
 
Old 11-07-2008, 12:52 AM   #15
Tomás Girardi
LQ Newbie
 
Registered: Aug 2007
Location: Viña del Mar, Chile
Posts: 2

Rep: Reputation: 0
Hi,
I did everything mentioned here but I'm experiencing some difficulties. They are probably due to the fact that I'm not very experienced in kernel/modules matters.
I downloaded alsa sources. Then run ./configure with option --with-cards setted to match my cards driver: intel8x0. Then "make", "make install" and finally "./snddevices".
The problem is that modprobe can't find the modules when trying to insert them to the kernel:

I get things like:
"FATAL: Module snd_intel8x0 not found."

But I can see some of them in directories like "/lib/modules/2.6.25-2-386/kernel/sound/pci"

They even appear as autofill options when pressing TAB after writing modprobe command.

Any idea of what I am doing wrong?

Thanks in advance
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
alsamixer --> snd_ctl_open failed for default: No such device dot hog Linux - Software 3 08-23-2009 12:14 PM
alsamixer: function snd_ctl_open failed in Fedora mattman1081 Fedora 6 08-30-2004 03:47 AM
Sound problem: alsamixer: function snd_ctl_open failed for default: No such device bootlizard Linux - Software 0 08-22-2004 03:45 PM
Default directory and file permissions kodon Slackware 10 08-08-2004 08:27 AM
alsamixer problem, snd_ctl_open?!? Punkduplo Linux - Laptop and Netbook 14 12-09-2003 08:19 AM


All times are GMT -5. The time now is 06:00 PM.

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