aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Laurent2012-01-30 15:04:35 -0600
committerAndroid Git Automerger2012-01-30 15:04:35 -0600
commit847b3821aad757b63ec3c9499a74ce12b70cf814 (patch)
tree7c2dd6d73e4d7471293ecc85d59b7c35290d6cf8
parent4c0f7e8e52f77fb914c5628e7ef5a974f70aab97 (diff)
parent0e080749c080aedd2a20c07ba29ac58187c7f532 (diff)
downloadplatform-external-tinyalsa-847b3821aad757b63ec3c9499a74ce12b70cf814.tar.gz
platform-external-tinyalsa-847b3821aad757b63ec3c9499a74ce12b70cf814.tar.xz
platform-external-tinyalsa-847b3821aad757b63ec3c9499a74ce12b70cf814.zip
am 0e080749: am 1b32ddfd: Update to latest tinyalsa
* commit '0e080749c080aedd2a20c07ba29ac58187c7f532': Update to latest tinyalsa
-rw-r--r--pcm.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/pcm.c b/pcm.c
index 04d4396..9324f38 100644
--- a/pcm.c
+++ b/pcm.c
@@ -551,9 +551,14 @@ struct pcm *pcm_open(unsigned int card, unsigned int device,
551 sparams.start_threshold = config->start_threshold; 551 sparams.start_threshold = config->start_threshold;
552 552
553 /* pick a high stop threshold - todo: does this need further tuning */ 553 /* pick a high stop threshold - todo: does this need further tuning */
554 if (!config->stop_threshold) 554 if (!config->stop_threshold) {
555 pcm->config.stop_threshold = sparams.stop_threshold = 555 if (pcm->flags & PCM_IN)
556 config->period_count * config->period_size; 556 pcm->config.stop_threshold = sparams.stop_threshold =
557 config->period_count * config->period_size * 10;
558 else
559 pcm->config.stop_threshold = sparams.stop_threshold =
560 config->period_count * config->period_size;
561 }
557 else 562 else
558 sparams.stop_threshold = config->stop_threshold; 563 sparams.stop_threshold = config->stop_threshold;
559 564