aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2011-10-24 14:36:36 -0500
committerSimon Wilson <simonwilson@google.com>2011-10-27 11:24:32 -0700
commita912d706c1583e60096c1b4c54dfec2c68547eb8 (patch)
treeb9a8bd63d27a69697d7652dce822eefd9d431cf5
parent6be28f1b16d3f48340069b93b5db42fead60bfa2 (diff)
include: fix header comments and arguments
Comment on buffer size was wrong. Argument to bytes_to_frames is bytes, not frames
-rw-r--r--include/tinyalsa/asoundlib.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/tinyalsa/asoundlib.h b/include/tinyalsa/asoundlib.h
index 3c86c84..a6d5436 100644
--- a/include/tinyalsa/asoundlib.h
+++ b/include/tinyalsa/asoundlib.h
@@ -112,12 +112,10 @@ int pcm_set_config(struct pcm *pcm, struct pcm_config *config);
/* Returns a human readable reason for the last error */
const char *pcm_get_error(struct pcm *pcm);
-/* Returns the buffer size (int frames) that should be used for pcm_write.
- * This will be 1/2 of the actual fifo size.
- */
+/* Returns the buffer size (int frames) that should be used for pcm_write. */
unsigned int pcm_get_buffer_size(struct pcm *pcm);
unsigned int pcm_frames_to_bytes(struct pcm *pcm, unsigned int frames);
-unsigned int pcm_bytes_to_frames(struct pcm *pcm, unsigned int frames);
+unsigned int pcm_bytes_to_frames(struct pcm *pcm, unsigned int bytes);
/* Returns the pcm latency in ms */
unsigned int pcm_get_latency(struct pcm *pcm);