diff options
author | Eric Laurent | 2012-01-30 15:02:21 -0600 |
---|---|---|
committer | Android Git Automerger | 2012-01-30 15:02:21 -0600 |
commit | 0e080749c080aedd2a20c07ba29ac58187c7f532 (patch) | |
tree | a68d6bcd2ae13b1c4ba02c550a4ce6c9579fd6b8 | |
parent | 25bc6521d0f0753251c4be84dd395c6cbebc83cb (diff) | |
parent | 1b32ddfd35e54b0a6ef1e43ca35dbc1547e5676a (diff) | |
download | platform-external-tinyalsa-0e080749c080aedd2a20c07ba29ac58187c7f532.tar.gz platform-external-tinyalsa-0e080749c080aedd2a20c07ba29ac58187c7f532.tar.xz platform-external-tinyalsa-0e080749c080aedd2a20c07ba29ac58187c7f532.zip |
am 1b32ddfd: Update to latest tinyalsa
* commit '1b32ddfd35e54b0a6ef1e43ca35dbc1547e5676a':
Update to latest tinyalsa
-rw-r--r-- | pcm.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 | ||