summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8dd366f)
raw | patch | inline | side by side (parent: 8dd366f)
author | Eric Laurent <elaurent@google.com> | |
Mon, 30 Jan 2012 19:31:56 +0000 (11:31 -0800) | ||
committer | Simon Wilson <simonwilson@google.com> | |
Mon, 30 Jan 2012 20:01:24 +0000 (12:01 -0800) |
pcm.c | patch | blob | history |
index 04d4396a1acfb5eda9bd32473a0db26ea3d1ae14..9324f384143a533a23cfca3898fc226973e73d82 100644 (file)
--- a/pcm.c
+++ b/pcm.c
sparams.start_threshold = config->start_threshold;
/* 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;
+ if (!config->stop_threshold) {
+ if (pcm->flags & PCM_IN)
+ pcm->config.stop_threshold = sparams.stop_threshold =
+ config->period_count * config->period_size * 10;
+ else
+ pcm->config.stop_threshold = sparams.stop_threshold =
+ config->period_count * config->period_size;
+ }
else
sparams.stop_threshold = config->stop_threshold;