summaryrefslogtreecommitdiffstats
path: root/alsa_utils/include/alsa_device_proxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'alsa_utils/include/alsa_device_proxy.h')
-rw-r--r--alsa_utils/include/alsa_device_proxy.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/alsa_utils/include/alsa_device_proxy.h b/alsa_utils/include/alsa_device_proxy.h
index e1ff8f5..0bc0731 100644
--- a/alsa_utils/include/alsa_device_proxy.h
+++ b/alsa_utils/include/alsa_device_proxy.h
@@ -32,24 +32,27 @@ typedef struct {
uint64_t transferred; /* the total frames transferred, not cleared on standby */
} alsa_device_proxy;
+
+/* State */
void proxy_prepare(alsa_device_proxy * proxy, alsa_device_profile * profile,
struct pcm_config * config);
+int proxy_open(alsa_device_proxy * proxy);
+void proxy_close(alsa_device_proxy * proxy);
+int proxy_get_presentation_position(const alsa_device_proxy * proxy,
+ uint64_t *frames, struct timespec *timestamp);
+/* Attributes */
unsigned proxy_get_sample_rate(const alsa_device_proxy * proxy);
enum pcm_format proxy_get_format(const alsa_device_proxy * proxy);
unsigned proxy_get_channel_count(const alsa_device_proxy * proxy);
-
unsigned int proxy_get_period_size(const alsa_device_proxy * proxy);
-
unsigned proxy_get_latency(const alsa_device_proxy * proxy);
-int proxy_get_presentation_position(const alsa_device_proxy * proxy,
- uint64_t *frames, struct timespec *timestamp);
-
-int proxy_open(alsa_device_proxy * proxy);
-void proxy_close(alsa_device_proxy * proxy);
-
+/* I/O */
int proxy_write(alsa_device_proxy * proxy, const void *data, unsigned int count);
int proxy_read(const alsa_device_proxy * proxy, void *data, unsigned int count);
+/* Debugging */
+void proxy_dump(const alsa_device_proxy * proxy, int fd);
+
#endif /* ANDROID_SYSTEM_MEDIA_ALSA_UTILS_ALSA_DEVICE_PROXY_H */