From ec9855d04d33ca1dd1f2ddfe542ed92858e98336 Mon Sep 17 00:00:00 2001 From: Vinay Kalia Date: Mon, 26 Jul 2010 18:50:04 -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. Change-Id: Id60add327b371323c7a13915b770bdccf148a910 --- libc/kernel/common/linux/msm_q6vdec.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libc') 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; -- cgit v1.1