LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ALSA unable to register device (https://www.linuxquestions.org/questions/linux-software-2/alsa-unable-to-register-device-20947/)

Griffon26 05-14-2002 01:46 PM

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

Griffon26 05-16-2002 04:37 AM

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.

vose 11-27-2002 12:01 AM

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

vose 11-27-2002 08:00 AM

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.


All times are GMT -5. The time now is 07:22 AM.