summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVikash Garodia <vgarodia@codeaurora.org>2017-01-27 22:28:21 +0530
committerVikash Garodia <vgarodia@codeaurora.org>2017-01-30 21:21:02 +0530
commit9619e890f165240ca2d4d7df8fbe3980dfebf829 (patch)
tree2518d69ee14e41150e1c4451bd8078b453c45a06 /include
parent314869eb56763d34f91d5483b0d510267894fadd (diff)
msm: vidc: Handle perf mode configuration
Host will set the Venus firmware in below modes 1. If the load of current video session exceeds the venus capability, video driver sets power save mode for that session. 2. If an usecase is recommended to run in power save mode to get power benefits, video driver configures the session in power save mode. 3. If any V4L2 client makes an explicit call to configure the usecase in a certain perf mode, video driver sets the same to venus firmware, unless restricted by core capability. CRs-Fixed: 1106972 Change-Id: Ib8be6c9af1508389edc9cb6444531c6e711b6a11 Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/v4l2-controls.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h
index 8fdf57504ab6..c8653a9f0e9e 100644
--- a/include/uapi/linux/v4l2-controls.h
+++ b/include/uapi/linux/v4l2-controls.h
@@ -1058,6 +1058,9 @@ enum vl42_mpeg_vidc_video_h264_svc_nal {
(V4L2_CID_MPEG_MSM_VIDC_BASE + 68)
enum v4l2_mpeg_vidc_video_perf_mode {
+#define V4L2_MPEG_VIDC_VIDEO_PERF_UNINIT \
+ V4L2_MPEG_VIDC_VIDEO_PERF_UNINIT
+ V4L2_MPEG_VIDC_VIDEO_PERF_UNINIT = 0,
V4L2_MPEG_VIDC_VIDEO_PERF_MAX_QUALITY = 1,
V4L2_MPEG_VIDC_VIDEO_PERF_POWER_SAVE = 2
};