aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Wilson <simonwilson@google.com>2014-05-06 06:55:19 -0700
committerSimon Wilson <simonwilson@google.com>2014-05-06 06:55:19 -0700
commitb03563bb9a9e9b91bbf86b03329138e3b339a061 (patch)
treeb613d6a7be85968c0a82bd0e39c3f28ccc50bfd6 /include
parent007b9eeea4ba4bad76f809f5a919cbdad5e0a951 (diff)
parentbd791a5f5f7fd602758ed54ea33b636949905df0 (diff)
Merge pull request #23 from roml/cleanup
Clean up asoundlib.h header file
Diffstat (limited to 'include')
-rw-r--r--include/tinyalsa/asoundlib.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/include/tinyalsa/asoundlib.h b/include/tinyalsa/asoundlib.h
index 8ba5aca..01a6303 100644
--- a/include/tinyalsa/asoundlib.h
+++ b/include/tinyalsa/asoundlib.h
@@ -57,13 +57,9 @@ struct pcm;
*/
/* PCM runtime states */
-#define PCM_STATE_OPEN 0
-#define PCM_STATE_SETUP 1
-#define PCM_STATE_PREPARED 2
-#define PCM_STATE_RUNNING 3
+#define PCM_STATE_RUNNING 3
#define PCM_STATE_XRUN 4
#define PCM_STATE_DRAINING 5
-#define PCM_STATE_PAUSED 6
#define PCM_STATE_SUSPENDED 7
#define PCM_STATE_DISCONNECTED 8
@@ -143,10 +139,6 @@ unsigned int pcm_params_get_min(struct pcm_params *pcm_params,
unsigned int pcm_params_get_max(struct pcm_params *pcm_params,
enum pcm_param param);
-/* Set and get config */
-int pcm_get_config(struct pcm *pcm, struct pcm_config *config);
-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);
@@ -162,9 +154,6 @@ 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 bytes);
-/* Returns the pcm latency in ms */
-unsigned int pcm_get_latency(struct pcm *pcm);
-
/* Returns available frames in pcm buffer and corresponding time stamp.
* For an input stream, frames available are frames ready for the
* application to read.