diff options
author | Simon Wilson | 2011-08-05 14:00:00 -0500 |
---|---|---|
committer | Simon Wilson | 2011-08-09 13:13:51 -0500 |
commit | 621047309242d04a6186230e7a337de8642ec754 (patch) | |
tree | d2b838ea1123922f29e1bbc354840f58c342e18b /tinycap.c | |
parent | c1239623c178f0142352c28a0f968d826afcb078 (diff) | |
download | platform-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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)) { |