summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuIC Gerrit Code Review <gerrit@quicinc.com>2009-06-25 09:11:40 -0700
committerQuIC Gerrit Code Review <gerrit@quicinc.com>2009-06-25 09:11:40 -0700
commit7d20d7c9b36d1a560b3a9a5c2bf06583619fab71 (patch)
tree67d24094d7e42231fbdc70ba08d8a402d7c36890
parent2c255b71a2011ed87dce2eb7b25ba33931404e7a (diff)
parent698640969d734ef3c90e19beb79a1343b1bbd241 (diff)
downloadbionic-7d20d7c9b36d1a560b3a9a5c2bf06583619fab71.zip
bionic-7d20d7c9b36d1a560b3a9a5c2bf06583619fab71.tar.gz
bionic-7d20d7c9b36d1a560b3a9a5c2bf06583619fab71.tar.bz2
Merge changes 3110,3145 into donut-releaseM76XXTSNCJNLYA4315
* changes: Bionic: sync kernel changes in android_pmem.h to bionic Bionic: Updating msm_audio.h to support NT2 Stream Info
-rw-r--r--libc/kernel/common/linux/android_pmem.h10
-rw-r--r--libc/kernel/common/linux/msm_audio.h17
2 files changed, 26 insertions, 1 deletions
diff --git a/libc/kernel/common/linux/android_pmem.h b/libc/kernel/common/linux/android_pmem.h
index 858857e..230310e 100644
--- a/libc/kernel/common/linux/android_pmem.h
+++ b/libc/kernel/common/linux/android_pmem.h
@@ -23,6 +23,12 @@ struct pmem_region {
unsigned long len;
};
+struct pmem_addr {
+ unsigned long vaddr;
+ unsigned long offset;
+ unsigned long length;
+};
+
#define PMEM_IOCTL_MAGIC 'p'
#define PMEM_GET_PHYS _IOW(PMEM_IOCTL_MAGIC, 1, struct pmem_region *)
#define PMEM_MAP _IOW(PMEM_IOCTL_MAGIC, 2, struct pmem_region *)
@@ -39,6 +45,10 @@ struct pmem_region {
#define HW3D_GRANT_GPU _IOW(PMEM_IOCTL_MAGIC, 9, unsigned int)
#define HW3D_WAIT_IRQ _IOW(PMEM_IOCTL_MAGIC,10, unsigned int)
+#define PMEM_CLEAN_INV_CACHES _IOW(PMEM_IOCTL_MAGIC, 11, unsigned int)
+#define PMEM_CLEAN_CACHES _IOW(PMEM_IOCTL_MAGIC, 12, unsigned int)
+#define PMEM_INV_CACHES _IOW(PMEM_IOCTL_MAGIC, 13, unsigned int)
+
struct android_pmem_platform_data;
struct pmem_file_operations {
int (*mmap) (struct file *, struct vm_area_struct *);
diff --git a/libc/kernel/common/linux/msm_audio.h b/libc/kernel/common/linux/msm_audio.h
index a5b29d8..14e4a8b 100644
--- a/libc/kernel/common/linux/msm_audio.h
+++ b/libc/kernel/common/linux/msm_audio.h
@@ -41,6 +41,7 @@
#define AUDIO_SET_PCM_CONFIG _IOW(AUDIO_IOCTL_MAGIC, 31, unsigned)
#define AUDIO_SWITCH_DEVICE _IOW(AUDIO_IOCTL_MAGIC, 32, unsigned)
#define AUDIO_SET_MUTE _IOW(AUDIO_IOCTL_MAGIC, 33, unsigned)
+#define AUDIO_GET_STREAM_INFO _IOR(AUDIO_IOCTL_MAGIC, 34, struct msm_audio_bitstream_info)
#define AUDIO_MAX_COMMON_IOCTL_NUM 100
@@ -147,10 +148,24 @@ 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
+#define AUDIO_EVENT_READ_DONE 3
+#define AUDIO_EVENT_STREAM_INFO 4
+
+#define AUDIO_CODEC_TYPE_MP3 0
+#define AUDIO_CODEC_TYPE_AAC 1
+
+struct msm_audio_bitstream_info {
+ uint32_t codec_type;
+ uint32_t chan_info;
+ uint32_t sample_rate;
+ uint32_t bit_stream_info;
+ uint32_t bit_rate;
+ uint32_t unused[3];
+};
union msm_audio_event_payload {
struct msm_audio_aio_buf aio_buf;
+ struct msm_audio_bitstream_info stream_info;
int reserved;
};