commit | 8dd366f47258eeda07910a99b29ba681fe7464a7 | [log] [tgz] |
---|---|---|
author | Simon Wilson <simonwilson@google.com> | Thu Nov 17 13:16:52 2011 -0800 |
committer | Simon Wilson <simonwilson@google.com> | Thu Nov 17 13:17:34 2011 -0800 |
tree | d6ea6bebf4f5a4af0f78316396b1e7b45f8a3d22 | |
parent | 5aed71db7d87ba518b53e40c00dcaa0afbc2aceb [diff] |
Update to latest tinyalsa 7db4858 pcm: more state checking in pcm_get_htimestamp() Change-Id: I7329a869f1eea51c976824540afd3db47c3de21b
diff --git a/pcm.c b/pcm.c index f499a05..04d4396 100644 --- a/pcm.c +++ b/pcm.c
@@ -341,7 +341,8 @@ if (rc < 0) return -1; - if (pcm->mmap_status->state == PCM_STATE_XRUN) + if ((pcm->mmap_status->state != PCM_STATE_RUNNING) && + (pcm->mmap_status->state != PCM_STATE_DRAINING)) return -1; *tstamp = pcm->mmap_status->tstamp;