diff options
| author | Praneeth Paladugu <ppaladug@codeaurora.org> | 2016-09-30 15:52:42 -0700 |
|---|---|---|
| committer | Vikash Garodia <vgarodia@codeaurora.org> | 2017-02-20 19:49:07 +0530 |
| commit | 68251b1597841a08a6d47a4abb339b7c8eb84382 (patch) | |
| tree | fbf79446482c1810d51ca022ee8c83c62f9fceeb /include/media | |
| parent | 5a092dc83c9502d6d33fa39f12bd4d9552d5294f (diff) | |
msm: vidc: Add support for querying controls
Add support in driver to query for control information.
This helps clients to findout limits for various controls
and sets the values accordingly.
Also update the control limits based on Venus HW capabilities.
This helps to prevent rogue clients not to set invalid values
to HW.
CRs-Fixed: 2003998
Change-Id: Ib444aba2203c898f778f4d7c0bc086ecc07461af
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
Diffstat (limited to 'include/media')
| -rw-r--r-- | include/media/msm_vidc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/media/msm_vidc.h b/include/media/msm_vidc.h index 003adc38eb14..8d13ca3cdd50 100644 --- a/include/media/msm_vidc.h +++ b/include/media/msm_vidc.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. +/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -110,6 +110,7 @@ int msm_vidc_release_buffers(void *instance, int buffer_type); int msm_vidc_qbuf(void *instance, struct v4l2_buffer *b); int msm_vidc_dqbuf(void *instance, struct v4l2_buffer *b); int msm_vidc_streamon(void *instance, enum v4l2_buf_type i); +int msm_vidc_query_ctrl(void *instance, struct v4l2_queryctrl *ctrl); int msm_vidc_streamoff(void *instance, enum v4l2_buf_type i); int msm_vidc_comm_cmd(void *instance, union msm_v4l2_cmd *cmd); int msm_vidc_poll(void *instance, struct file *filp, |
