msm_vidc_control.h 1.1 KB

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  5. */
  6. #ifndef _MSM_VIDC_CONTROL_H_
  7. #define _MSM_VIDC_CONTROL_H_
  8. #include "msm_vidc_internal.h"
  9. #include "msm_vidc_inst.h"
  10. int msm_vidc_ctrl_handler_init(struct msm_vidc_inst *inst, bool init);
  11. int msm_vidc_ctrl_handler_deinit(struct msm_vidc_inst *inst);
  12. int msm_v4l2_op_s_ctrl(struct v4l2_ctrl *ctrl);
  13. int msm_v4l2_op_g_volatile_ctrl(struct v4l2_ctrl *ctrl);
  14. int msm_vidc_s_ctrl(struct msm_vidc_inst *inst, struct v4l2_ctrl *ctrl);
  15. int msm_vidc_prepare_dependency_list(struct msm_vidc_inst *inst);
  16. int msm_vidc_adjust_v4l2_properties(struct msm_vidc_inst *inst);
  17. int msm_vidc_set_v4l2_properties(struct msm_vidc_inst *inst);
  18. bool is_valid_cap_id(enum msm_vidc_inst_capability_type cap_id);
  19. bool is_valid_cap(struct msm_vidc_inst *inst,
  20. enum msm_vidc_inst_capability_type cap_id);
  21. enum msm_vidc_inst_capability_type
  22. msm_vidc_get_cap_id(struct msm_vidc_inst *inst, u32 id);
  23. #endif