[alsa-devel] crash with assertion (?)

IOhannes m zmoelnig zmoelnig at iem.at
Thu Sep 9 11:43:45 CEST 2010


On 2010-09-09 03:30, Raymond Yau wrote:

> http://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m___h_w___params.htm
l

> what is the minimum rate returned by snd_pcm_hw_params_get_rate_min() when
> using hw:0,0 ?

for hw:0,0 it is 48000, direction=0
for plughw:0,0 i get 4000(sic!), direction=0

> 
> To debug , you will need to enable RULES_DEBUG In pcm_params.c
> 
> add snd_pcm_dump() after snd_pcm_hw_params in your program
> 
> export LIBASOUND_DEBUG=1
> 
> and post the output of your program

ok, i tried that.
there's of course the little problem with havind snd_pcm_dump() after
snd_pcm_hw_params(), since the latter crashes...
so i added it before i start configuring the device as well. here's the
pseudocode:
<snip>
open(PLAYBACK);
dump();
nonblock(1); get_rate(); set_rate(44100); set_period(64);
dump();
close();
open(CAPTURE);
dump();
nonblock(1); get_rate(); set_rate(44100); set_period(64); /* CRASH */
dump();
close();
</snip>

i prefixed all the printout of my application with "JMZ", so you can
easily filter it out.

fgmasdr
IOhannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: assertion.log.gz
Type: application/x-gzip
Size: 2822 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20100909/ed4773df/attachment-0001.gz 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3636 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20100909/ed4773df/attachment-0001.p7s 


More information about the Alsa-devel mailing list