[alsa-devel] Infinite loop in snd_pcm_hw_htimestamp() for capture PCMs?

Andrew Eikum aeikum at codeweavers.com
Fri Sep 21 17:53:43 CEST 2012

Hi folks,

I've found some unexpected behavior in alsa-lib. The attached program
uses 100% CPU in an infinite loop, when I'd expect it to return either
an error or a valid htimestamp. I believe the loop occurs in
<src/pcm/pcm_hw.c:snd_pcm_hw_htimestamp()>. Am I not supposed to call
htimestamp() on this type of PCM? Is the PCM still in an invalid state
when htimestamp() is called?

Chip: Realtek ALC889

Happy for any insight.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: capture_inf_loop.c
Type: text/x-csrc
Size: 2094 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20120921/611c77d0/attachment.bin>

More information about the Alsa-devel mailing list