From 9e2e42a805e422d0bc034d85a27b4b9acdfe28d1 Mon Sep 17 00:00:00 2001 From: Vasantha Kumar Date: Thu, 5 Aug 2010 16:54:25 -0700 Subject: libc:kernel-headers:Adding IOCTL to change Q6 clock. 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 --- libc/kernel/common/linux/msm_q6vdec.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- cgit v1.1