* aplay doesnt work - new problem`
@ 2008-03-11 23:05 Pharaoh .
2008-03-11 23:09 ` Pharaoh .
2008-03-12 8:34 ` Clemens Ladisch
0 siblings, 2 replies; 5+ messages in thread
From: Pharaoh . @ 2008-03-11 23:05 UTC (permalink / raw)
To: alsa-devel
I am trying to run my pcm external io type plugin on an arm based board. I
have no kernel alsa driver
and the user space plugin is supposed to take care of talking to DSP using
shared memorty and send sound data.
Since, I dont have kernel space ALSA driver, do I need to enable kernel ALSA
support in .config?
I am facing following problem,
#aplay
ALSA lib conf.c:2852:(snd_config_hook_load) cannot access file
/home/pharaoh/alsa/cards/aliases.conf
ALSA lib pcm.c:2014:(snd_pcm_open_conf) Invalid type for PCM default
definition
(id: default, value: cards.pcm.default)
aplay: main:550: audio open error: Invalid argument
I can see that, aliases.conf is being searched at wrong place (its actually
looking on my host machine), how can I fix this?
-pharaoh.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: aplay doesnt work - new problem`
2008-03-11 23:05 aplay doesnt work - new problem` Pharaoh .
@ 2008-03-11 23:09 ` Pharaoh .
2008-03-12 8:34 ` Clemens Ladisch
1 sibling, 0 replies; 5+ messages in thread
From: Pharaoh . @ 2008-03-11 23:09 UTC (permalink / raw)
To: alsa-devel
On Tue, Mar 11, 2008 at 4:05 PM, Pharaoh . <pharaoh137@gmail.com> wrote:
>
> I am trying to run my pcm external io type plugin on an arm based board. I
> have no kernel alsa driver
> and the user space plugin is supposed to take care of talking to DSP using
> shared memorty and send sound data.
>
> Since, I dont have kernel space ALSA driver, do I need to enable kernel
> ALSA support in .config?
>
> I am facing following problem,
>
> #aplay
> ALSA lib conf.c:2852:(snd_config_hook_load) cannot access file
> /home/pharaoh/alsa/cards/aliases.conf
> ALSA lib pcm.c:2014:(snd_pcm_open_conf) Invalid type for PCM default
> definition
> (id: default, value: cards.pcm.default)
> aplay: main:550: audio open error: Invalid argument
>
>
> I can see that, aliases.conf is being searched at wrong place (its
> actually looking on my host machine), how can I fix this?
>
> -pharaoh.
>
Also, I am trying to make aplay work first, so not using
aplay -D my_plug test.wav.
And aliases.conf is already on board in /share/alsa/cards.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: aplay doesnt work - new problem`
2008-03-11 23:05 aplay doesnt work - new problem` Pharaoh .
2008-03-11 23:09 ` Pharaoh .
@ 2008-03-12 8:34 ` Clemens Ladisch
2008-03-12 18:49 ` Pharaoh .
1 sibling, 1 reply; 5+ messages in thread
From: Clemens Ladisch @ 2008-03-12 8:34 UTC (permalink / raw)
To: Pharaoh .; +Cc: alsa-devel
Pharaoh . wrote:
> I am trying to run my pcm external io type plugin on an arm based board. I
> have no kernel alsa driver
> and the user space plugin is supposed to take care of talking to DSP using
> shared memorty and send sound data.
>
> Since, I dont have kernel space ALSA driver, do I need to enable kernel ALSA
> support in .config?
No.
> ALSA lib conf.c:2852:(snd_config_hook_load) cannot access file
> /home/pharaoh/alsa/cards/aliases.conf
What --*prefix options did you use when configuring alsa-lib?
What did you use as DESTDIR when installing alsa-lib?
Regards,
Clemens
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: aplay doesnt work - new problem`
2008-03-12 8:34 ` Clemens Ladisch
@ 2008-03-12 18:49 ` Pharaoh .
2008-03-13 0:44 ` Pharaoh .
0 siblings, 1 reply; 5+ messages in thread
From: Pharaoh . @ 2008-03-12 18:49 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: alsa-devel
On Wed, Mar 12, 2008 at 1:34 AM, Clemens Ladisch <clemens@ladisch.de> wrote:
> Pharaoh . wrote:
> > I am trying to run my pcm external io type plugin on an arm based board.
> I
> > have no kernel alsa driver
> > and the user space plugin is supposed to take care of talking to DSP
> using
> > shared memorty and send sound data.
> >
> > Since, I dont have kernel space ALSA driver, do I need to enable kernel
> ALSA
> > support in .config?
>
> No.
>
> > ALSA lib conf.c:2852:(snd_config_hook_load) cannot access file
> > /home/pharaoh/alsa/cards/aliases.conf
>
> What --*prefix options did you use when configuring alsa-lib?
> What did you use as DESTDIR when installing alsa-lib?
>
>
> Regards,
> Clemens
>
I configure alsa lib as :
./configure --host=$(ARCH_TOOLCHAIN_PREFIX)-linux --prefix=$(BUILD_OUTPUT)
--exec-prefix=$(ROOTFS) --datadir=$(ROOTFS)/share --sysconfdir=$(ROOTFS)/etc
--with-versioned=no --enable-static=yes
Ignore $(ARCH_TOOLCHAIN_PREFIX)-linux.
ROOTFS in / on board.
DESTDIR is is /lib in rootfs, this is where libasound.so falls.
But when I do file on resulting libasound.so it is shown as shared lib and
not a static one.
Same way I configure the alsa-utils.
-pharaoh.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: aplay doesnt work - new problem`
2008-03-12 18:49 ` Pharaoh .
@ 2008-03-13 0:44 ` Pharaoh .
0 siblings, 0 replies; 5+ messages in thread
From: Pharaoh . @ 2008-03-13 0:44 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: alsa-devel
On Wed, Mar 12, 2008 at 11:49 AM, Pharaoh . <pharaoh137@gmail.com> wrote:
>
>
> On Wed, Mar 12, 2008 at 1:34 AM, Clemens Ladisch <clemens@ladisch.de>
> wrote:
>
> > Pharaoh . wrote:
> > > I am trying to run my pcm external io type plugin on an arm based
> > board. I
> > > have no kernel alsa driver
> > > and the user space plugin is supposed to take care of talking to DSP
> > using
> > > shared memorty and send sound data.
> > >
> > > Since, I dont have kernel space ALSA driver, do I need to enable
> > kernel ALSA
> > > support in .config?
> >
> > No.
> >
> > > ALSA lib conf.c:2852:(snd_config_hook_load) cannot access file
> > > /home/pharaoh/alsa/cards/aliases.conf
> >
> > What --*prefix options did you use when configuring alsa-lib?
> > What did you use as DESTDIR when installing alsa-lib?
> >
> >
> > Regards,
> > Clemens
> >
>
> I configure alsa lib as :
>
> ./configure --host=$(ARCH_TOOLCHAIN_PREFIX)-linux --prefix=$(BUILD_OUTPUT)
> --exec-prefix=$(ROOTFS) --datadir=$(ROOTFS)/share --sysconfdir=$(ROOTFS)/etc
> --with-versioned=no --enable-static=yes
>
> Ignore $(ARCH_TOOLCHAIN_PREFIX)-linux.
> ROOTFS in / on board.
> DESTDIR is is /lib in rootfs, this is where libasound.so falls.
>
> But when I do file on resulting libasound.so it is shown as shared lib and
> not a static one.
>
> Same way I configure the alsa-utils.
>
> -pharaoh.
>
>
Now I am trying with my plugin, but I get following error, (this was part of
another thread but it is defunct now, apologies)
# aplay -D my_plug
aplay: can't resolve symbol 'snd_dlsym_start
When I do a nm -D on my plugin, I get following:
U __assert
U __udivsi3
U __umodsi3
U calloc
U free
U host_OMX_Deinit
U host_OMX_Init
U ilclient_change_component_state
U ilclient_cleanup_components
U ilclient_create_component
U ilclient_destroy
U ilclient_disable_port
U ilclient_enable_port
U ilclient_init
U ilclient_set_empty_buffer_done_callback
U ilclient_wait_for_event
U memset
* U printf*
U puts
U snd_config_get_id
U snd_config_get_integer
U snd_config_get_string
U snd_config_iterator_end
U snd_config_iterator_entry
U snd_config_iterator_first
U snd_config_iterator_next
* U snd_dlsym_start*
U snd_lib_error
U snd_pcm_bytes_to_frames
U snd_pcm_format_name
U snd_pcm_format_physical_width
U snd_pcm_format_value
U snd_pcm_ioplug_create
U snd_pcm_ioplug_delete
U snd_pcm_ioplug_set_param_list
U snd_pcm_ioplug_set_param_minmax
U snprintf
U strcmp
U uCloseMutex
U uCreateMutex
U uGetMutex
U uReleaseMutex
This is quite alright and these syms should be resolved runtime, but when I
did
#nm -D lib/libasound.so* | grep "snd_dlsym_start"
I get nothing, where snd_dlsym_start is supposed to be? As per my shallow
reading on this matter this is used only when static libs are being emulated
shared ones etc.
-pharaoh
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-03-13 0:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-11 23:05 aplay doesnt work - new problem` Pharaoh .
2008-03-11 23:09 ` Pharaoh .
2008-03-12 8:34 ` Clemens Ladisch
2008-03-12 18:49 ` Pharaoh .
2008-03-13 0:44 ` Pharaoh .
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.