Update to latest tinyalsa
ee9ba87 pcm: fix underrun detection
5251016 mixer: show BYTE controls
a912d70 include: fix header comments and arguments
Change-Id: I33386f64b65b55c337ceacbe62dc6d498a536378
diff --git a/pcm.c b/pcm.c
index dbf68e4..f499a05 100644
--- a/pcm.c
+++ b/pcm.c
@@ -341,6 +341,9 @@
if (rc < 0)
return -1;
+ if (pcm->mmap_status->state == PCM_STATE_XRUN)
+ return -1;
+
*tstamp = pcm->mmap_status->tstamp;
if (tstamp->tv_sec == 0 && tstamp->tv_nsec == 0)
return -1;
@@ -549,7 +552,7 @@
/* pick a high stop threshold - todo: does this need further tuning */
if (!config->stop_threshold)
pcm->config.stop_threshold = sparams.stop_threshold =
- config->period_count * config->period_size * 10;
+ config->period_count * config->period_size;
else
sparams.stop_threshold = config->stop_threshold;