summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasantha Kumar <vasant@codeaurora.org>2010-08-05 16:54:25 -0700
committerVasantha Kumar <vasant@codeaurora.org>2010-08-05 16:54:25 -0700
commit9e2e42a805e422d0bc034d85a27b4b9acdfe28d1 (patch)
tree3632fa0278542b45b2a4b33565a55c42ce2c8aac
parentf6af0af50dbdbd938d2c6769c69ff63db2ca0066 (diff)
downloadbionic-9e2e42a805e422d0bc034d85a27b4b9acdfe28d1.zip
bionic-9e2e42a805e422d0bc034d85a27b4b9acdfe28d1.tar.gz
bionic-9e2e42a805e422d0bc034d85a27b4b9acdfe28d1.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. Conflicts: libc/kernel/common/linux/msm_q6vdec.h Change-Id: I13450e0988eaa2b8ac0c334792053e495ec6c79e
-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 ec2175c..55991a5 100644
--- a/libc/kernel/common/linux/msm_q6vdec.h
+++ b/libc/kernel/common/linux/msm_q6vdec.h
@@ -27,6 +27,7 @@
#define VDEC_IOCTL_FREEBUFFERS _IOW(VDEC_IOCTL_MAGIC, 9, struct vdec_buf_info)
#define VDEC_IOCTL_GETDECATTRIBUTES _IOR(VDEC_IOCTL_MAGIC, 10, struct vdec_dec_attributes)
#define VDEC_IOCTL_GETVERSION _IOR(VDEC_IOCTL_MAGIC, 11, struct vdec_version)
+#define VDEC_IOCTL_PERFORMANCE_CHANGE_REQ _IOW(VDEC_IOCTL_MAGIC, 14, unsigned int)
enum {
VDEC_FRAME_DECODE_OK,
@@ -64,6 +65,13 @@ enum {
VDEC_COLOR_FORMAT_NV21_YAMOTO = 0x02
};
+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;