From: IOhannes m zmoelnig <zmoelnig@iem.at>
To: alsa-devel@alsa-project.org
Subject: Re: crash with assertion (?)
Date: Thu, 09 Sep 2010 11:43:45 +0200 [thread overview]
Message-ID: <4C88AC51.9030803@iem.at> (raw)
In-Reply-To: <AANLkTi=5nxDDyfsUrvF3z+EpApiAjau6hbLK=a08WnKr@mail.gmail.com>
[-- Attachment #1.1.1: Type: text/plain, Size: 1106 bytes --]
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 #1.1.2: assertion.log.gz --]
[-- Type: application/x-gzip, Size: 2822 bytes --]
[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3636 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2010-09-09 9:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-07 16:05 crash with assertion (?) IOhannes m zmoelnig
2010-09-07 16:07 ` IOhannes m zmoelnig
2010-09-07 16:32 ` IOhannes m zmoelnig
2010-09-07 17:06 ` Clemens Ladisch
2010-09-08 8:41 ` IOhannes m zmoelnig
2010-09-09 1:30 ` Raymond Yau
2010-09-09 9:43 ` IOhannes m zmoelnig [this message]
2010-09-10 1:53 ` Raymond Yau
2010-09-10 7:06 ` Clemens Ladisch
2010-09-10 23:20 ` Raymond Yau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C88AC51.9030803@iem.at \
--to=zmoelnig@iem.at \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox