[alsa-devel] simple program for capturing and playing pcm

loody miloody at gmail.com
Mon Jul 26 16:10:56 CEST 2010


Hi Pavel:
thanks for your help :)
2010/7/26 Pavel Hofman <pavel.hofman at ivitera.com>:
> loody napsal(a):
>> hi:
>>
>> 2010/7/26 Pavel Hofman <pavel.hofman at ivitera.com>:
>>> loody napsal(a):
>>>> Dear all:
>>>> Is there simple program which can help me to play and capture pcm
>>>> files from usb speaker and mic?
>>>> appreciate your help,
>>>> miloody
>>> aplay, arecord
>> I found them in alsa-utility :)
>> but when I try to configure them, I get following messages:
>>
>> checking for form.h... yes
>> checking for new_panel in -lpanelw... no
>> configure: error: panelw library not found
>>
>> but I list the /usr/lib, I see
>> $ ls /usr/lib/libpanel* -lht
>> lrwxrwxrwx 1 root root  27 2009-11-11 07:59
>> /usr/lib/libpanel-applet-2.so.0 -> libpanel-applet-2.so.0.2.60
>> lrwxrwxrwx 1 root root  16 2009-11-11 07:52 /usr/lib/libpanelw.so.5 ->
>> libpanelw.so.5.7
>> lrwxrwxrwx 1 root root  15 2009-11-11 07:52 /usr/lib/libpanel.so.5 ->
>> libpanel.so.5.7
>> lrwxrwxrwx 1 root root  13 2009-11-11 00:41 /usr/lib/libpanel.so ->
>> libpanel.so.5
>> -rw-r--r-- 1 root root 51K 2009-10-19 22:00 /usr/lib/libpanel-applet-2.so.0.2.60
>> -rw-r--r-- 1 root root 19K 2009-10-12 21:12 /usr/lib/libpanel.a
>> -rw-r--r-- 1 root root 14K 2009-10-12 21:12 /usr/lib/libpanel.so.5.7
>> -rw-r--r-- 1 root root 14K 2009-10-12 21:12 /usr/lib/libpanelw.so.5.7
>> $
>>
>> did I miss something?
>> I try to run the aplay/arecord under console and if I guess correctly,
>> I don't need panelw lib. if so, how could I disable it?
>> appreciate your help,
>> miloody
>>
>> what is panelw
>
> Those are ncurses libs required by alsamixer. Try
>
> ./configure --disable-alsamixer --disable-alsaconf
>
> That has worked for me, ubuntu 9.10.
I can compile it under ubuntu right now.

I list some questions about alsa:
1. when I try to cross-cmpile alsa-lib-1.0.23, it cmplain
aserver.o: In function `pcm_shm_cmd':
aserver.c:(.text+0x1f08): warning: Warning: snd_pcm_hwsync() is
deprecated, consider to use snd_pcm_avail()
../src/.libs/libasound.so: undefined reference to `atomic_sub'
../src/.libs/libasound.so: undefined reference to `atomic_add'
collect2: ld returned 1 exit status
make[1]: *** [aserver] Error 1

and I find the atomic_sub is define in include/iatomic.h which is
implemented by different kind of arch.
the host I set is mipsel-linux and I see -D__mips__ appears when I
cross-compile the source. And atomic_sub should be found already, but
why it still complain not finding the function?

2. what nodes should I build under /dev when I try to run the alsa-util?

3.  is there any tool I can generate raw, pcm, data such that I can apay it?

appreciate your help,
miloody


More information about the Alsa-devel mailing list