
- In s_fmt, there might be a codec change and here we are free the ctrl handler, at the same time client may call query ctrl and this will lead to null pointer access. - To resolve null pointer access, do not free ctrl handler and add new codec controls to the same ctrl handler. Change-Id: Iee87d5cb4d65e31d405cb1fc9f82bebab696d027 Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
27 行
1.1 KiB
C
27 行
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
|
*/
|
|
/* Copyright (c) 2022-2023. Qualcomm Innovation Center, Inc. All rights reserved. */
|
|
|
|
#ifndef _MSM_VIDC_CONTROL_H_
|
|
#define _MSM_VIDC_CONTROL_H_
|
|
|
|
#include "msm_vidc_internal.h"
|
|
#include "msm_vidc_inst.h"
|
|
|
|
int msm_vidc_ctrl_handler_init(struct msm_vidc_inst *inst, bool init);
|
|
int msm_vidc_ctrl_handler_deinit(struct msm_vidc_inst *inst);
|
|
int msm_v4l2_op_s_ctrl(struct v4l2_ctrl *ctrl);
|
|
int msm_v4l2_op_g_volatile_ctrl(struct v4l2_ctrl *ctrl);
|
|
int msm_vidc_s_ctrl(struct msm_vidc_inst *inst, struct v4l2_ctrl *ctrl);
|
|
int msm_vidc_prepare_dependency_list(struct msm_vidc_inst *inst);
|
|
int msm_vidc_adjust_v4l2_properties(struct msm_vidc_inst *inst);
|
|
int msm_vidc_set_v4l2_properties(struct msm_vidc_inst *inst);
|
|
bool is_valid_cap_id(enum msm_vidc_inst_capability_type cap_id);
|
|
bool is_valid_cap(struct msm_vidc_inst *inst,
|
|
enum msm_vidc_inst_capability_type cap_id);
|
|
enum msm_vidc_inst_capability_type msm_vidc_get_cap_id(
|
|
struct msm_vidc_inst *inst, u32 id);
|
|
#endif
|