Re: crash with assertion (?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: assertion.log.gz
Description: GNU Zip compressed data

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux