Skip to contentSkip to conversation

Problems with ALSA in embedded device

DISCUSSION Imanol Trapote 2 participants 4 messages Mar 4, 2008 – Mar 6, 2008

lore
Share & tools
lore
#0 lore raw

Hi all,

I am developing a product in an embedded system that uses ALSA library. This system can't use the dynamic linker, I am using flat binaries.

I use this configuration options:

	--without-libdl \
	--with-pthread \
	--with-softload \
	--disable-alisp \
	--disable-hwdep \
	--disable-seq \
	--disable-resmgr \
	--disable-rawmidi \
	--disable-old-symbols \
	--disable-python \
	--disable-mixer

I try to use the same configuration options in a PC for debugging, and I get the same problem, when I try to list devices with aplay, I get this:

aplay -L
ALSA lib conf.c:2699:(snd_config_hooks_call) Cannot open shared library (null)
ALSA lib conf.c:3076:(snd_config_update_r) hooks failed, removing configuration

It's possible use ALSA without dynamic libraries, with this configuration

Thanks in advance.
Imanol Trapote

----------------------------------------- PLEASE NOTE ------------------------------------------- This message, along with any attachments, may be confidential or legally privileged.
It is intended only for the named person(s), who is/are the only authorized recipients.
If this message has reached you in error, kindly destroy it without review and notify the sender immediately. Thank you for your help.
ZIV uses virus scanning software but excludes any liability for viruses contained in any attachment.

------------------------------------ ROGAMOS LEA ESTE TEXTO -------------------------------
Este mensaje y sus anexos pueden contener información confidencial y/o con derecho legal.
Está dirigido únicamente a la/s persona/s o entidad/es reseñadas como único destinatario autorizado.
Si este mensaje le hubiera llegado por error, por favor elimínelo sin revisarlo ni reenviarlo y notifíquelo inmediatamente al remitente. Gracias por su colaboración. ZIV utiliza software antivirus, pero no se hace responsable de los virus contenidos en los ficheros anexos.

#1 lore raw

At Tue, 04 Mar 2008 14:29:20 +0100,

Quoted 23 lines · Imanol Trapote

Hi all,

I am developing a product in an embedded system that uses ALSA library. This system can't use the dynamic linker, I am using flat binaries.

I use this configuration options:

	--without-libdl \
	--with-pthread \
	--with-softload \
	--disable-alisp \
	--disable-hwdep \
	--disable-seq \
	--disable-resmgr \
	--disable-rawmidi \
	--disable-old-symbols \
	--disable-python \
	--disable-mixer

I try to use the same configuration options in a PC for debugging, and I get the same problem, when I try to list devices with aplay, I get this:

Quoted 8 lines

aplay -L
ALSA lib conf.c:2699:(snd_config_hooks_call) Cannot open shared library (null)
ALSA lib conf.c:3076:(snd_config_update_r) hooks failed, removing configuration

It's possible use ALSA without dynamic libraries, with this configuration

Add --disable-shared and --enable-static. See INSTALL for details.

I guess SALSA-lib would suit better in your case, though...

Takashi

#2 lore raw

Thanks

I try that, but ALSA didn't work properly on the embedded system. I will try use SALSA instead of ALSA.
I wrote her because doesn't exist SALSA mailing list.

I need to use aplay, I suppose with --enable-libasound, aplay must work? It's neccesary change something else in alsa-utils to use aplay with SALSA?

Thanks in advance.

Quoted 34 lines · Takashi Iwai

At Tue, 04 Mar 2008 14:29:20 +0100,

Quoted 23 lines · Imanol Trapote

Hi all,

I am developing a product in an embedded system that uses ALSA library. This system can't use the dynamic linker, I am using flat binaries.

I use this configuration options:

	--without-libdl \
	--with-pthread \
	--with-softload \
	--disable-alisp \
	--disable-hwdep \
	--disable-seq \
	--disable-resmgr \
	--disable-rawmidi \
	--disable-old-symbols \
	--disable-python \
	--disable-mixer

I try to use the same configuration options in a PC for debugging, and I get the same problem, when I try to list devices with aplay, I get this:

Quoted 8 lines

aplay -L
ALSA lib conf.c:2699:(snd_config_hooks_call) Cannot open shared library (null)
ALSA lib conf.c:3076:(snd_config_update_r) hooks failed, removing configuration

It's possible use ALSA without dynamic libraries, with this configuration

Quoted 6 lines

Add --disable-shared and --enable-static. See INSTALL for details.

I guess SALSA-lib would suit better in your case, though...

Takashi

----------------------------------------- PLEASE NOTE ------------------------------------------- This message, along with any attachments, may be confidential or legally privileged.
It is intended only for the named person(s), who is/are the only authorized recipients.
If this message has reached you in error, kindly destroy it without review and notify the sender immediately. Thank you for your help.
ZIV uses virus scanning software but excludes any liability for viruses contained in any attachment.

------------------------------------ ROGAMOS LEA ESTE TEXTO -------------------------------
Este mensaje y sus anexos pueden contener información confidencial y/o con derecho legal.
Está dirigido únicamente a la/s persona/s o entidad/es reseñadas como único destinatario autorizado.
Si este mensaje le hubiera llegado por error, por favor elimínelo sin revisarlo ni reenviarlo y notifíquelo inmediatamente al remitente. Gracias por su colaboración. ZIV utiliza software antivirus, pero no se hace responsable de los virus contenidos en los ficheros anexos.

#3 lore raw

At Thu, 06 Mar 2008 13:39:25 +0100,

Quoted 10 lines · Imanol Trapote

Thanks

I try that, but ALSA didn't work properly on the embedded system. I will try use SALSA instead of ALSA.
I wrote her because doesn't exist SALSA mailing list.

I need to use aplay, I suppose with --enable-libasound, aplay must work? It's neccesary change something else in alsa-utils to use aplay with SALSA?

You need to rebuild aplay with salsa-lib, of course, but it should work otherwise. In doubt, pass --enable-everything to salsa-lib configure.

Takashi

Quoted 57 lines

Thanks in advance.

Quoted 34 lines · Takashi Iwai

At Tue, 04 Mar 2008 14:29:20 +0100,

Quoted 23 lines · Imanol Trapote

Hi all,

I am developing a product in an embedded system that uses ALSA library. This system can't use the dynamic linker, I am using flat binaries.

I use this configuration options:

	--without-libdl \
	--with-pthread \
	--with-softload \
	--disable-alisp \
	--disable-hwdep \
	--disable-seq \
	--disable-resmgr \
	--disable-rawmidi \
	--disable-old-symbols \
	--disable-python \
	--disable-mixer

I try to use the same configuration options in a PC for debugging, and I get the same problem, when I try to list devices with aplay, I get this:

Quoted 8 lines

aplay -L
ALSA lib conf.c:2699:(snd_config_hooks_call) Cannot open shared library (null)
ALSA lib conf.c:3076:(snd_config_update_r) hooks failed, removing configuration

It's possible use ALSA without dynamic libraries, with this configuration

Quoted 6 lines

Add --disable-shared and --enable-static. See INSTALL for details.

I guess SALSA-lib would suit better in your case, though...

Takashi

----------------------------------------- PLEASE NOTE ------------------------------------------- This message, along with any attachments, may be confidential or legally privileged.
It is intended only for the named person(s), who is/are the only authorized recipients.
If this message has reached you in error, kindly destroy it without review and notify the sender immediately. Thank you for your help.
ZIV uses virus scanning software but excludes any liability for viruses contained in any attachment.

------------------------------------ ROGAMOS LEA ESTE TEXTO -------------------------------
Este mensaje y sus anexos pueden contener información confidencial y/o con derecho legal.
Está dirigido únicamente a la/s persona/s o entidad/es reseñadas como único destinatario autorizado.
Si este mensaje le hubiera llegado por error, por favor elimínelo sin revisarlo ni reenviarlo y notifíquelo inmediatamente al remitente. Gracias por su colaboración. ZIV utiliza software antivirus, pero no se hace responsable de los virus contenidos en los ficheros anexos.