LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-09-2004, 09:04 AM   #1
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
alsa installed and modprobed, but snd_ctl_open errors !


hey guys. ive just installed alsa from source on my 2.4.22-1.2115.nptl fedora core 1 kernel.

here is a list of alsa related output from lsmod.

snd-pcm-oss 44196 0 (autoclean)
snd-mixer-oss 16280 0 (autoclean) [snd-pcm-oss]
joydev 7264 0 (autoclean)
snd-intel8x0 24360 0
snd-ac97-codec 58876 0 [snd-intel8x0]
snd-pcm 84740 0 [snd-pcm-oss snd-intel8x0]
snd-timer 19684 0 [snd-pcm]
gameport 3380 0 [snd-intel8x0]
snd-mpu401-uart 5216 0 [snd-intel8x0]
snd-rawmidi 18656 0 [snd-mpu401-uart]
snd-seq-device 6252 0 [snd-rawmidi]
snd 46372 0 [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-ac97-codec snd-pcm snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore 6500 4 [snd]
snd-page-alloc 10068 0 [snd-intel8x0 snd-pcm]

alsaconf corrctly detected my card as an intel8x0 (which is the correct driver for my SiS 7012)

however i get the following error when i try to use alsamixer or any other program which needs alsa
Quote:
function snd_ctl_open failed for default: No such file or directory
what am i doing wrong ?

[edit]
just found out i dont have an ansasound binary, could this be to blame ?
also my /etc/asound.conf seems to be missing ???
[/edit]

[edit2]
just tried 'service alsasound start' and got an alsactl no sound cards found !!!
[/edit]

cummon, some1 must have the alswer...... any1 ?

thankyou.

Last edited by qwijibow; 03-09-2004 at 09:30 AM.
 
Old 03-09-2004, 09:50 AM   #2
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
what does the output of
$cat /proc/asound/cards
give you???
 
Old 03-09-2004, 12:14 PM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
cat /proc/asound/cards outputs....
Quote:
0 [SI7012 ]: ICH - SiS SI7012
SiS SI7012 at 0xdc00, irq 11
this i s really confusing, from what it looks like, it SHOULD be working !
 
Old 03-10-2004, 09:36 PM   #4
vervet
LQ Newbie
 
Registered: Mar 2004
Posts: 12

Rep: Reputation: 0
Try this

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

this is from the ALAS project install page - I had the same problem. I can run alsamixer now but still can't get sound to work on my sony! Lock up machine when I try to play mp3 in xmms!


Richard
 
Old 03-11-2004, 08:48 AM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
I cant even run alsa mixer as root....
its not a permissions problem.

i also tried removing my onboard sound (in the bios)
and installing a new pci soundcard. recompiled a 2.6 kernel so suppot it for alsa.
and STULL the same problem.

it MUST be a bug in alsa-lib or alsa-utils

ive tried different sound cards, different kernels.
and still the same error i origonally posted.
 
Old 03-11-2004, 09:08 AM   #6
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
Did you try running the snddevices script???
 
Old 03-11-2004, 10:00 AM   #7
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
im using the laets version of alsa. it says i dont need to, but i will try, where is the script.

Ive just noticed.....
i dont have a /dev/snd/ directory !!!!!!

agh !
this is sooo annoying !
 
Old 03-11-2004, 10:02 AM   #8
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
right !!!!
ive been trying to get this working for days....
and why...

because the read me said "DONT run snddevices script... you font need to in this version"

now iran it, and it fixed EVERYTHING !!!!!!
 
Old 03-11-2004, 10:02 AM   #9
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
it comes with one of the alsa files you downloaded cant remember which one should tell you in the docs
 
Old 03-11-2004, 10:10 AM   #10
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
AGH !

okay, alsamixer now works, as does alsactl

however, quake 2 still reports /dev/dsp unknown pcm device.

and although i have unmuted all avauilabe channels in alsamixer, there is still NO SOUND,

anyone ?

(getting closer STILL)
 
Old 03-11-2004, 10:14 AM   #11
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
try chmod 666 /dev/dsp* /dev/mixer*
 
Old 03-11-2004, 10:20 AM   #12
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
nope. its not a permissions problem as running as root doesnt help.

all my player's that use oss look like they are playing, the scroll bar moves, ect ect, it IS playing but there is no sound, i have the oss compatability mdoules modprobed and everything.

ALSA rpograms (i only have quake2 which uses ALSA) reports that /dev/dsp is an unknown pcm device)

any more ideas ?
 
Old 03-11-2004, 10:21 AM   #13
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
Quote:
ALSA lib pcm.c:1954snd_pcm_open_noupdate) Unknown PCM /dev/dsp
ALSA snd error, cannot open device /dev/dsp (No such file or directory)
and thats running as root !!!
 
Old 11-20-2004, 12:52 PM   #14
vbsoftware
LQ Newbie
 
Registered: Jul 2003
Location: chile
Distribution: Redhat Linux 9 custom
Posts: 27

Rep: Reputation: 15
Hi!

I have the same soundcard.

I resolve this problem in my RedHat 9 : (NOTE : Always i have installed the kernel sources)

May be try compiling ALSA source files.

Step 1.
- First download alsa sources from http://www.alsa-project.org (alsa-driver, alsa-lib, alsa-utils, alsa-oss)

Step 2.
- unpack alsa-lib and compile. (./configure && make && make install)
- Compile alsa-oss (./configure && make && make install)

Step 3.
- Unpack alsa-driver
- ./configure --with-isapnp=no --with-sequencer=yes --with-oss=yes
- touch include/linux/workqueue.h
- make install
- run the ./snddevices script

Step 4.
-- Check if you have unresolved simbols with depmod -ae. If you get errors repeat step 3.

Step 5
-- run ldconfig

Step 6.
- unpack alsa-utils and compile. (./configure && make && make install)

Step 7
- run alsaconf ( here this must be configure your modules.conf )
- run alsamixer ( your channels are muted by default )
- run alsactl store

Step 8
- reboot
- cd /etc/init.d/alsasound start
- startx

Here my ALSA configuration in modules.conf

alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
options snd-intel8x0 snd_ac97_clock=0 snd_enable=1 snd_index=0

Enjoy!

If this guide was useful please send me a email to : leo.nunez@gmail.com

Cheers!

Bye!
 
Old 11-20-2004, 01:57 PM   #15
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
alsa

Yea ive battled the alsa war before


One word of advice is screw the stupid scripts and juju that alsa says it can do

compile it from scrach and it works without a hitch. <-- Even in the 2.6 kernel alsa seams to take a brain tumor or something and doesent want to work. HELL IF I KNOW WHY



My sound card is a isa non pnp card and every time i run alsaconf it wants to set stupid things like irq and shit. But if i compile it it just works correctly.


In honestly someone just needs to write a how to on using alsa via the 2.6 kernel because documentation is lacking in this area. The asla page assumes that your doing it from there code and not kernel based but as far as i can tell compileing it in the kernel never works and doing it from source does.
 
  


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
pcmcia firewire card needs modprobed DAChristen29 Linux - Hardware 2 06-28-2005 03:27 AM
Slack 9.1 and alsa errors cholzsc1 Linux - Hardware 1 03-01-2004 07:28 PM
alsamixer problem, snd_ctl_open?!? Punkduplo Linux - Laptop and Netbook 14 12-09-2003 09:19 AM
ALSA install errors drumpriest Linux - Newbie 5 08-06-2003 08:22 AM
ALSA errors lss223 Slackware 2 05-03-2003 07:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration