summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinay Kalia <vkalia@codeaurora.org>2010-07-26 18:50:04 -0700
committerJessica Gonzalez <jgaona@codeaurora.org>2010-08-04 16:24:27 -0700
commitec9855d04d33ca1dd1f2ddfe542ed92858e98336 (patch)
tree4a144b6d56a326778a748d9fd344868a5c8f13a3
parent7c17a76cf75d99995aa5a479b3725a072a6d25d8 (diff)
downloadbionic-ec9855d04d33ca1dd1f2ddfe542ed92858e98336.zip
bionic-ec9855d04d33ca1dd1f2ddfe542ed92858e98336.tar.gz
bionic-ec9855d04d33ca1dd1f2ddfe542ed92858e98336.tar.bz2
Added ioctl to change Q6 clock dynamically while video decoding. Client can use this ioctl to increase/decrease Q6 clock depending on requirement. Once the instance who requested the increase/decrease closes, Q6 clock adjusts itself depending on new requirement. Change-Id: Id60add327b371323c7a13915b770bdccf148a910
-rw-r--r--libc/kernel/common/linux/msm_q6vdec.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/kernel/common/linux/msm_q6vdec.h b/libc/kernel/common/linux/msm_q6vdec.h
index dc1a388..b7b6ca4 100644
--- a/libc/kernel/common/linux/msm_q6vdec.h
+++ b/libc/kernel/common/linux/msm_q6vdec.h
@@ -29,6 +29,7 @@
#define VDEC_IOCTL_GETVERSION _IOR(VDEC_IOCTL_MAGIC, 11, struct vdec_version)
#define VDEC_IOCTL_SETPROPERTY _IOW(VDEC_IOCTL_MAGIC, 12, struct vdec_property_info)
#define VDEC_IOCTL_GETPROPERTY _IOR(VDEC_IOCTL_MAGIC, 13, struct vdec_property_info)
+#define VDEC_IOCTL_PERFORMANCE_CHANGE_REQ _IOW(VDEC_IOCTL_MAGIC, 14, unsigned int)
enum {
VDEC_FRAME_DECODE_OK,
@@ -80,6 +81,13 @@ enum vdec_property_id {
VDEC_FRAME_ALIGNMENT
};
+enum {
+ PERF_REQUEST_SET_MIN = 0,
+ PERF_REQUEST_LOWER,
+ PERF_REQUEST_RAISE,
+ PERF_REQUEST_SET_MAX
+};
+
struct vdec_input_buf_info {
u32 offset;
u32 data;