summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepa Madiregama <dmadireg@codeaurora.org>2010-10-20 19:18:38 +0530
committerDeepa Madiregama <dmadireg@codeaurora.org>2010-11-10 18:32:14 +0530
commitceb9f93dbcdd1150d442286d00ab3c6d1e8fb5c3 (patch)
tree68077071244807f436588eb46bebb4821933b16f
parent8a49e38436ad5f590c213f48685e2b2264b0c1cf (diff)
downloadbionic-ceb9f93dbcdd1150d442286d00ab3c6d1e8fb5c3.zip
bionic-ceb9f93dbcdd1150d442286d00ab3c6d1e8fb5c3.tar.gz
bionic-ceb9f93dbcdd1150d442286d00ab3c6d1e8fb5c3.tar.bz2
bionic: 8655: Update msm_audio.h to add new ioctls
Change-Id: I01c0325366bcb62d41d3ffcb9b120db24a6b8bc9
-rw-r--r--libc/kernel/common/linux/msm_audio.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libc/kernel/common/linux/msm_audio.h b/libc/kernel/common/linux/msm_audio.h
index afe95c5..ac48e02 100644
--- a/libc/kernel/common/linux/msm_audio.h
+++ b/libc/kernel/common/linux/msm_audio.h
@@ -71,6 +71,10 @@
#define AUDIO_GET_BUF_CFG _IOW(AUDIO_IOCTL_MAGIC, 93, struct msm_audio_buf_cfg)
#define AUDIO_SET_BUF_CFG _IOW(AUDIO_IOCTL_MAGIC, 94, struct msm_audio_buf_cfg)
+
+#define AUDIO_SET_ACDB_BLK _IOW(AUDIO_IOCTL_MAGIC, 95, struct msm_acdb_cmd_device)
+#define AUDIO_GET_ACDB_BLK _IOW(AUDIO_IOCTL_MAGIC, 96, struct msm_acdb_cmd_device)
+
#define AUDIO_MAX_COMMON_IOCTL_NUM 100
#define HANDSET_MIC 0x01
@@ -300,4 +304,15 @@ struct msm_audio_eq_stream_config {
struct msm_audio_eq_band eq_bands[AUDIO_MAX_EQ_BANDS];
} __attribute__ ((packed));
+struct msm_acdb_cmd_device {
+ uint32_t command_id;
+ uint32_t device_id;
+ uint32_t network_id;
+ uint32_t sample_rate_id; /* Actual sample rate value */
+ uint32_t interface_id; /* See interface id's above */
+ uint32_t algorithm_block_id; /* See enumerations above */
+ uint32_t total_bytes; /* Length in bytes used by buffer */
+ uint32_t *phys_buf; /* Physical Address of data */
+};
+
#endif