aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Wilson2012-02-28 17:26:02 -0600
committerSimon Wilson2012-02-28 17:26:02 -0600
commitdaa83291944318d8face12c780dfb69ae96b0723 (patch)
tree116ac173a9b5c13306e47373d739f99dd0e8a05e /include/tinyalsa/asoundlib.h
parent594e8662270b025d5029edbb54baf46627b3a815 (diff)
downloadplatform-external-tinyalsa-daa83291944318d8face12c780dfb69ae96b0723.tar.gz
platform-external-tinyalsa-daa83291944318d8face12c780dfb69ae96b0723.tar.xz
platform-external-tinyalsa-daa83291944318d8face12c780dfb69ae96b0723.zip
Update to latest tinyalsa
a6dd4ab tinyplay: Use buffer size in bytes instead of frames 5f64fe7 pcm: Factor out pcm_start() from pcm_read() 6bbe77a pcm: Constify write buffers 9989fc2 tinycap, tinyplay, tinymix: Add extra parameters. 3e3376a tinycap, tinyplay: Check *argv before dereferencing. 80085d4 pcm: Fix integer size error. Change-Id: I69a37c0a89e5531b9ab66a8b3f730765904ed9f7
Diffstat (limited to 'include/tinyalsa/asoundlib.h')
-rw-r--r--include/tinyalsa/asoundlib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tinyalsa/asoundlib.h b/include/tinyalsa/asoundlib.h
index 92a004c..655fe76 100644
--- a/include/tinyalsa/asoundlib.h
+++ b/include/tinyalsa/asoundlib.h
@@ -139,13 +139,13 @@ int pcm_get_htimestamp(struct pcm *pcm, unsigned int *avail,
139 * Will start playback on the first write or on a write that 139 * Will start playback on the first write or on a write that
140 * occurs after a fifo underrun. 140 * occurs after a fifo underrun.
141 */ 141 */
142int pcm_write(struct pcm *pcm, void *data, unsigned int count); 142int pcm_write(struct pcm *pcm, const void *data, unsigned int count);
143int pcm_read(struct pcm *pcm, void *data, unsigned int count); 143int pcm_read(struct pcm *pcm, void *data, unsigned int count);
144 144
145/* 145/*
146 * mmap() support. 146 * mmap() support.
147 */ 147 */
148int pcm_mmap_write(struct pcm *pcm, void *data, unsigned int count); 148int pcm_mmap_write(struct pcm *pcm, const void *data, unsigned int count);
149int pcm_mmap_begin(struct pcm *pcm, void **areas, unsigned int *offset, 149int pcm_mmap_begin(struct pcm *pcm, void **areas, unsigned int *offset,
150 unsigned int *frames); 150 unsigned int *frames);
151int pcm_mmap_commit(struct pcm *pcm, unsigned int offset, unsigned int frames); 151int pcm_mmap_commit(struct pcm *pcm, unsigned int offset, unsigned int frames);