summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuIC Gerrit Code Review <gerrit@quicinc.com>2009-06-25 09:11:30 -0700
committerQuIC Gerrit Code Review <gerrit@quicinc.com>2009-06-25 09:11:30 -0700
commit2c255b71a2011ed87dce2eb7b25ba33931404e7a (patch)
treeb6bc58dc06d8c617d272dfdeac2eda67c23dad96
parent1d02cb6addf1cdeacb903d8bdabdd918b9d2d52a (diff)
parent3c0ff1a1375100df87c74c5614ab5e3c41454be7 (diff)
downloadbionic-2c255b71a2011ed87dce2eb7b25ba33931404e7a.zip
bionic-2c255b71a2011ed87dce2eb7b25ba33931404e7a.tar.gz
bionic-2c255b71a2011ed87dce2eb7b25ba33931404e7a.tar.bz2
Merge change 3109 into donut-release
* changes: bionic: msm: audio: Add asynchronous I/O interface definition
-rw-r--r--libc/kernel/common/linux/msm_audio.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libc/kernel/common/linux/msm_audio.h b/libc/kernel/common/linux/msm_audio.h
index a632cb4..a5b29d8 100644
--- a/libc/kernel/common/linux/msm_audio.h
+++ b/libc/kernel/common/linux/msm_audio.h
@@ -33,6 +33,10 @@
#define AUDIO_PLAY_DTMF _IOW(AUDIO_IOCTL_MAGIC, 12, unsigned)
#define AUDIO_GET_EVENT _IOR(AUDIO_IOCTL_MAGIC, 13, unsigned)
#define AUDIO_ABORT_GET_EVENT _IOW(AUDIO_IOCTL_MAGIC, 14, unsigned)
+#define AUDIO_REGISTER_PMEM _IOW(AUDIO_IOCTL_MAGIC, 15, unsigned)
+#define AUDIO_DEREGISTER_PMEM _IOW(AUDIO_IOCTL_MAGIC, 16, unsigned)
+#define AUDIO_ASYNC_WRITE _IOW(AUDIO_IOCTL_MAGIC, 17, unsigned)
+#define AUDIO_ASYNC_READ _IOW(AUDIO_IOCTL_MAGIC, 18, unsigned)
#define AUDIO_GET_PCM_CONFIG _IOR(AUDIO_IOCTL_MAGIC, 30, unsigned)
#define AUDIO_SET_PCM_CONFIG _IOW(AUDIO_IOCTL_MAGIC, 31, unsigned)
#define AUDIO_SWITCH_DEVICE _IOW(AUDIO_IOCTL_MAGIC, 32, unsigned)
@@ -82,6 +86,18 @@ struct msm_audio_stats {
uint32_t unused[2];
};
+struct msm_audio_pmem_info {
+ int fd;
+ void *vaddr;
+};
+
+struct msm_audio_aio_buf {
+ void *buf_addr;
+ uint32_t buf_len;
+ uint32_t data_len;
+ void *private_data;
+};
+
#define SND_IOCTL_MAGIC 's'
#define SND_MUTE_UNMUTED 0
@@ -130,8 +146,11 @@ struct msm_audio_pcm_config {
#define AUDIO_EVENT_SUSPEND 0
#define AUDIO_EVENT_RESUME 1
+#define AUDIO_EVENT_WRITE_DONE 2
+#define AUDIO_EVENT_READ_DONE 3
union msm_audio_event_payload {
+ struct msm_audio_aio_buf aio_buf;
int reserved;
};