LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-01-2004, 02:52 PM   #1
vardhman
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
Sound Problem in Kernel 2.6.2 with ALSA Drivers


Hi,
I am facing some serious trouble with kernel 2.6.2. I Have installed ALSA drivers in the kernel, and now when the kernel boots up and i want to play a song etc,using mplayer. I get the error "/dev/dsp cannot open device", I have selected the Option for /dev support in the kernel also. The other programs using /dev filesystem like fdisk runs fine, I am not sure if this problem is do to the change in the devfs structure, Can someone tell me how to rectify this problem so that I can hear songs, Also a second question: My mplayer on runnign configure is not detecting alsa though they are installed (tested using the files like /proc/asound/version,device,cards), do I simply give --enable option to make it work?



vardhman

Last edited by vardhman; 03-01-2004 at 02:58 PM.
 
Old 03-01-2004, 04:33 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Do /dev/dsp and /dev/mixer exist? If they don't you'll need to use the mknod command to create them. I don't know the details as the ALSA drivers source tarball contains a script which does it for me. If they exist, what are the permissions set at? Can ordinary users read from them?
 
Old 03-01-2004, 04:39 PM   #3
muah
Member
 
Registered: Aug 2003
Location: Europe
Distribution: Slackware (current)
Posts: 228

Rep: Reputation: 32
Have ALSA stopped working after u recompiled kernel?
I had to reinstall ALSA to get it working after kernel upgrade.
 
Old 03-01-2004, 10:38 PM   #4
vardhman
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by muah
Have ALSA stopped working after u recompiled kernel?
I had to reinstall ALSA to get it working after kernel upgrade.

I have no method to see if they stopped wrking 'coz there config files seems to be there but the players like aplay and alasmixer are absent(maybe they don't get installed when u install ALSA in the kernel), When I tried to add ALSA drivers thru source tarball, it detected presence of ALSA in kernel, and exited from there.

Now the sound device is seen as /dev/dsp but i don't know why it is not being openable.

vardhman
 
Old 03-21-2004, 11:38 AM   #5
puk
LQ Newbie
 
Registered: Apr 2003
Posts: 19

Rep: Reputation: 0
chmod 666 /dev/dsp*
chmod 666 /dev/mixer*
 
Old 03-21-2004, 12:21 PM   #6
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Quote:
Originally posted by vardhman
I have no method to see if they stopped wrking 'coz there config files seems to be there but the players like aplay and alasmixer are absent(maybe they don't get installed when u install ALSA in the kernel),
Alsamixer is one of the user space tools, part of the Alsa Utilities package. You don't need to upgrade them or reinstall after recompiling the kernel. They should work if Alsa is built into the kernel. At least, Alsamixer worked for me when I tried building the Alsa drivers into the kernel. I prefer the user space drivers (better sound quality).
But to get back to the topic - you say you have "no method to see if they stopped working" but surely you know whether or not you used to be able to listen to music or whatever? It would help if we knew whether sound used to work and stopped when you recompiled the kernel or has it never worked? Also, what distribution are you using?
 
Old 03-21-2004, 05:26 PM   #7
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
Re: Sound Problem in Kernel 2.6.2 with ALSA Drivers

Quote:
Originally posted by vardhman
Hi,
I am facing some serious trouble with kernel 2.6.2. I Have installed ALSA drivers in the kernel, and now when the kernel boots up and i want to play a song etc,using mplayer. I get the error "/dev/dsp cannot open device", I have selected the Option for /dev support in the kernel also. The other programs using /dev filesystem like fdisk runs fine, I am not sure if this problem is do to the change in the devfs structure, Can someone tell me how to rectify this problem so that I can hear songs, Also a second question: My mplayer on runnign configure is not detecting alsa though they are installed (tested using the files like /proc/asound/version,device,cards), do I simply give --enable option to make it work?
What is in /proc/asound/devices ? When I cat this file, I see:
Quote:
0: [0- 0]: ctl
25: [0- 1]: digital audio capture
16: [0- 0]: digital audio playback
24: [0- 0]: digital audio capture
33: : timer
If the digital audio playback device is listed, that ought to make it possible to open /dev/dsp for output. If that line is not there, maybe you can activate that device with modprobe to load a missing module into the kernel.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
weird sound problem - alsa, kernel 2.6, SB Live 5.1 Ben2210 Slackware 7 10-31-2004 02:36 AM
kernel 2.6 sarge no sound -- maybe alsa problem muted Debian 6 10-19-2004 01:31 PM
unable to load alsa sound drivers for als4000 with kernel 2.6.3 schatoor Linux - General 3 03-08-2004 04:03 PM
alsa/kernel sound drivers wr3ck3d Linux - Hardware 1 04-13-2003 03:42 AM
Can I load both oss (kernel sound drivers) and alsa in 2 sound cared system? cmisip Linux - General 0 04-12-2003 01:27 AM


All times are GMT -5. The time now is 06:56 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