aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Wilson2011-08-05 14:00:00 -0500
committerSimon Wilson2011-08-09 13:13:51 -0500
commit621047309242d04a6186230e7a337de8642ec754 (patch)
treed2b838ea1123922f29e1bbc354840f58c342e18b /tinycap.c
parentc1239623c178f0142352c28a0f968d826afcb078 (diff)
downloadplatform-external-tinyalsa-621047309242d04a6186230e7a337de8642ec754.tar.gz
platform-external-tinyalsa-621047309242d04a6186230e7a337de8642ec754.tar.xz
platform-external-tinyalsa-621047309242d04a6186230e7a337de8642ec754.zip
Update to latest tinyalsa
764d341 tinyplay: add support for device parameter df8ae90 tinymix: print mixer values when no mixer control is specified 7de3eaf Ensure threasholds are zeroed before opening pcm Change-Id: Ie7b652b16b90d05fc9dee6ce31c7ffc3dc9a47f1
Diffstat (limited to 'tinycap.c')
-rw-r--r--tinycap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tinycap.c b/tinycap.c
index 2f982d0..3eb5c60 100644
--- a/tinycap.c
+++ b/tinycap.c
@@ -157,6 +157,9 @@ unsigned int capture_sample(FILE *file, unsigned int device,
157 config.format = PCM_FORMAT_S32_LE; 157 config.format = PCM_FORMAT_S32_LE;
158 else if (bits == 16) 158 else if (bits == 16)
159 config.format = PCM_FORMAT_S16_LE; 159 config.format = PCM_FORMAT_S16_LE;
160 config.start_threshold = 0;
161 config.stop_threshold = 0;
162 config.silence_threshold = 0;
160 163
161 pcm = pcm_open(0, device, PCM_IN, &config); 164 pcm = pcm_open(0, device, PCM_IN, &config);
162 if (!pcm || !pcm_is_ready(pcm)) { 165 if (!pcm || !pcm_is_ready(pcm)) {