LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 05-14-2002, 02:46 PM   #1
Griffon26
Member
 
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182

Rep: Reputation: 30
ALSA unable to register device


I'm having some problems with ALSA.
I can play sounds with aplay, but not with alsaplayer/xmms.

I know that xmms needs OSS compatibility, so I try to load snd-pcm-oss with modprobe, but it gives me the following error (and I don't have bttv loaded):

Quote:
kernel: ALSA /usr/src/alsa-driver-0.9.0rc1/include/../alsa-kernel/core/oss/pcm_oss.c:2111: unable to register OSS PCM device 0:0
After that the snd-pcm-oss module appears to be loaded, but xmms won't work.

I also have some problems with alsaplayer. When I start it (no matter whether or not the modules are loaded) I get:

Quote:
...
ALSA->open(): Sound protocol is not compatible
/usr/lib/alsaplayer/output/libalsa.so failed to load
Output plugin: OSS output v1.0
...
I do have a file /usr/lib/alsaplayer/output/libalsa.so with correct permissions.

If the modules (including snd-pcm-oss) were loaded before starting alsaplayer, they are still not in use after I started it.
Nevertheless alsaplayer's playback process can be started without any error messages, I just hear no sound (and it's not a mixer issue).

I'm lost here and I hope that someone can help me with this, coz I haven't been able to find anything useful on the net.

Grz,
Griffon26
 
Old 05-16-2002, 05:37 AM   #2
Griffon26
Member
 
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182

Original Poster
Rep: Reputation: 30
Yesterday evening I got things to work for root.

It turned out that I hadn't set everything sound related to M (modules) in the kernel config. It was not enough to just put "Sound card support" to M, because not everything automatically changed along.

Anyway, now sound works for root and all I have to figure out is why the modules fail to load for normal users.
 
Old 11-27-2002, 01:01 AM   #3
vose
Member
 
Registered: Aug 2002
Location: tennessee
Distribution: gentoo
Posts: 39

Rep: Reputation: 15
It sounds like you might have alsaplayer source that will actually
compile. I have 2.4.19 kernel, alsa-*-0.9.0rc6, but can't get
alsaplayer-0.99.72 to compile (gcc 3.2):

sndfile_engine.c: In function `sndfile_open':
sndfile_engine.c:77: `SFM_READ' undeclared ...

Do you know where I can get source close to 0.99 that will
actually compile?

I can't use the source rpms I've been able to find on the web, because the dependencies evfentually lead to my needing a
previous kernel. I just want a source tar file.

P.S. congratulations on gettting anything about alsa working;
in my experience it is a real bitch.

Michael
 
Old 11-27-2002, 09:00 AM   #4
vose
Member
 
Registered: Aug 2002
Location: tennessee
Distribution: gentoo
Posts: 39

Rep: Reputation: 15
To compile alsaplayer-0.99.72 (and pluggins) one needs
at least libsndfile 1.0.2

(http://www.zip.com.au/~erikd/libsndfile/#Download)

That fixed it.
 
  


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
hw_random: misc device register failed jrdioko Linux - Software 5 09-14-2005 11:45 PM
unable to mount device latuzim Linux - General 8 10-23-2004 08:03 PM
ALSA error: ALSA device "default" is already in use by another program. darkleaf Linux - Software 2 07-20-2004 05:34 PM
Where is my device with alsa? HoT_BeL Slackware 12 02-23-2004 09:40 PM
Volume control is unable to run correctly. Unable to open audio device '/dev/mixer'. sevenreams Slackware 1 05-16-2003 08:29 PM


All times are GMT -5. The time now is 08:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration