video: driver: update copyright markings to 2023
update copyright markings to 2023 in all files. Change-Id: I6842d56c4a8fff6a7a93d0c1d4bc049041297b02 Signed-off-by: Darshana Patil <quic_darshana@quicinc.com>
这个提交包含在:
@@ -1,8 +1,8 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#define CONFIG_MSM_VIDC_ANORAK 1
|
||||
#define CONFIG_MSM_VIDC_IRIS3 1
|
||||
#define CONFIG_MSM_VIDC_ANORAK 1
|
||||
|
@@ -1,8 +1,8 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#define CONFIG_MSM_VIDC_KALAMA 1
|
||||
#define CONFIG_MSM_VIDC_IRIS3 1
|
||||
#define CONFIG_MSM_VIDC_KALAMA 1
|
||||
|
@@ -1,8 +1,8 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2022, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#define CONFIG_MSM_VIDC_PINEAPPLE 1
|
||||
#define CONFIG_MSM_VIDC_IRIS33 1
|
||||
#define CONFIG_MSM_VIDC_PINEAPPLE 1
|
||||
|
@@ -1,7 +1,8 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#define CONFIG_MSM_VIDC_WAIPIO 1
|
||||
#define CONFIG_MSM_VIDC_IRIS2 1
|
||||
#define CONFIG_MSM_VIDC_WAIPIO 1
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_ANORAK_H_
|
||||
@@ -17,6 +17,7 @@ int msm_vidc_init_platform_anorak(struct msm_vidc_core *core, struct device *dev
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
int msm_vidc_deinit_platform_anorak(struct msm_vidc_core *core, struct device *dev)
|
||||
{
|
||||
return -EINVAL;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <dt-bindings/clock/qcom,gcc-anorak.h>
|
||||
@@ -16,8 +16,8 @@
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_internal.h"
|
||||
#include "msm_vidc_control_ext.h"
|
||||
#include "hfi_property.h"
|
||||
#include "msm_vidc_iris3.h"
|
||||
#include "hfi_property.h"
|
||||
#include "hfi_command.h"
|
||||
|
||||
#define DEFAULT_VIDEO_CONCEAL_COLOR_BLACK 0x8020010
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_PLATFORM_H_
|
||||
@@ -12,10 +13,10 @@
|
||||
#include "msm_vidc_internal.h"
|
||||
#include "msm_vidc_core.h"
|
||||
|
||||
#define DDR_TYPE_LPDDR4 0x6
|
||||
#define DDR_TYPE_LPDDR4X 0x7
|
||||
#define DDR_TYPE_LPDDR5 0x8
|
||||
#define DDR_TYPE_LPDDR5X 0x9
|
||||
#define DDR_TYPE_LPDDR4 0x6
|
||||
#define DDR_TYPE_LPDDR4X 0x7
|
||||
#define DDR_TYPE_LPDDR5 0x8
|
||||
#define DDR_TYPE_LPDDR5X 0x9
|
||||
|
||||
#define UBWC_CONFIG(mc, ml, hbb, bs1, bs2, bs3, bsp) \
|
||||
{ \
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/io.h>
|
||||
@@ -15,11 +15,11 @@
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_internal.h"
|
||||
#include "msm_vidc_memory.h"
|
||||
#include "msm_vidc_control.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "hfi_packet.h"
|
||||
#include "hfi_property.h"
|
||||
#include "venus_hfi.h"
|
||||
#include "msm_vidc_control.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
|
||||
#if defined(CONFIG_MSM_VIDC_WAIPIO)
|
||||
#include "msm_vidc_waipio.h"
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_KALAMA_H_
|
||||
@@ -17,6 +17,7 @@ int msm_vidc_init_platform_kalama(struct msm_vidc_core *core, struct device *dev
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
int msm_vidc_deinit_platform_kalama(struct msm_vidc_core *core, struct device *dev)
|
||||
{
|
||||
return -EINVAL;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "msm_vidc_control.h"
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <dt-bindings/clock/qcom,gcc-kalama.h>
|
||||
@@ -17,8 +17,8 @@
|
||||
#include "msm_vidc_internal.h"
|
||||
#include "msm_vidc_control_ext.h"
|
||||
#include "msm_vidc_memory_ext.h"
|
||||
#include "hfi_property.h"
|
||||
#include "msm_vidc_iris3.h"
|
||||
#include "hfi_property.h"
|
||||
#include "hfi_command.h"
|
||||
|
||||
#define DEFAULT_VIDEO_CONCEAL_COLOR_BLACK 0x8020010
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2022, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_PINEAPPLE_H_
|
||||
@@ -17,6 +17,7 @@ int msm_vidc_init_platform_pineapple(struct msm_vidc_core *core, struct device *
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
int msm_vidc_deinit_platform_pineapple(struct msm_vidc_core *core, struct device *dev)
|
||||
{
|
||||
return -EINVAL;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2022, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <dt-bindings/clock/qcom,gcc-pineapple.h>
|
||||
@@ -17,8 +17,8 @@
|
||||
#include "msm_vidc_internal.h"
|
||||
#include "msm_vidc_control_ext.h"
|
||||
#include "msm_vidc_memory_ext.h"
|
||||
#include "hfi_property.h"
|
||||
#include "msm_vidc_iris33.h"
|
||||
#include "hfi_property.h"
|
||||
#include "hfi_command.h"
|
||||
|
||||
#define DEFAULT_VIDEO_CONCEAL_COLOR_BLACK 0x8020010
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <soc/qcom/of_common.h>
|
||||
@@ -9,8 +9,8 @@
|
||||
#include "msm_vidc_pineapple.h"
|
||||
#include "msm_vidc_platform.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "hfi_property.h"
|
||||
#include "msm_vidc_iris33.h"
|
||||
#include "hfi_property.h"
|
||||
#include "hfi_command.h"
|
||||
|
||||
#define DEFAULT_VIDEO_CONCEAL_COLOR_BLACK 0x8020010
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_WAIPIO_H_
|
||||
@@ -22,10 +23,12 @@ struct context_bank_info *msm_vidc_context_bank(struct msm_vidc_core *core,
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int msm_vidc_init_platform_waipio(struct msm_vidc_core *core, struct device *dev)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
int msm_vidc_deinit_platform_waipio(struct msm_vidc_core *core, struct device *dev)
|
||||
{
|
||||
return -EINVAL;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <dt-bindings/clock/qcom,gcc-waipio.h>
|
||||
@@ -14,8 +14,8 @@
|
||||
#include "msm_vidc_waipio.h"
|
||||
#include "msm_vidc_platform.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_internal.h"
|
||||
#include "msm_vidc_control_ext.h"
|
||||
#include "msm_vidc_internal.h"
|
||||
#include "hfi_property.h"
|
||||
#include "hfi_command.h"
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/of.h>
|
||||
@@ -8,8 +8,8 @@
|
||||
#include <dt-bindings/clock/qcom,videocc-sm8450.h>
|
||||
|
||||
#include "msm_vidc_control.h"
|
||||
#include "msm_vidc_waipio.h"
|
||||
#include "msm_vidc_platform.h"
|
||||
#include "msm_vidc_waipio.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "hfi_property.h"
|
||||
#include "hfi_command.h"
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2022, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_VARIANT_H_
|
||||
@@ -11,12 +12,11 @@
|
||||
struct msm_vidc_core;
|
||||
|
||||
int __write_register_masked(struct msm_vidc_core *core, u32 reg, u32 value,
|
||||
u32 mask);
|
||||
u32 mask);
|
||||
int __write_register(struct msm_vidc_core *core, u32 reg, u32 value);
|
||||
int __read_register(struct msm_vidc_core *core, u32 reg, u32 *value);
|
||||
int __read_register_with_poll_timeout(struct msm_vidc_core *core, u32 reg,
|
||||
u32 mask, u32 exp_val, u32 sleep_us,
|
||||
u32 timeout_us);
|
||||
u32 mask, u32 exp_val, u32 sleep_us, u32 timeout_us);
|
||||
int __set_registers(struct msm_vidc_core *core);
|
||||
|
||||
#endif
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/errno.h>
|
||||
@@ -56,9 +56,7 @@ int __write_register(struct msm_vidc_core *core, u32 reg, u32 value)
|
||||
base_addr += hwiosymaddr;
|
||||
writel_relaxed(value, base_addr);
|
||||
|
||||
/*
|
||||
* Memory barrier to make sure value is written into the register.
|
||||
*/
|
||||
/* Memory barrier to make sure value is written into the register */
|
||||
wmb();
|
||||
|
||||
return rc;
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __HFI_BUFFER_IRIS2__
|
||||
@@ -9,13 +10,13 @@
|
||||
#include <linux/types.h>
|
||||
#include "hfi_property.h"
|
||||
|
||||
typedef u8 HFI_U8;
|
||||
typedef s8 HFI_S8;
|
||||
typedef u16 HFI_U16;
|
||||
typedef s16 HFI_S16;
|
||||
typedef u32 HFI_U32;
|
||||
typedef s32 HFI_S32;
|
||||
typedef u64 HFI_U64;
|
||||
typedef u8 HFI_U8;
|
||||
typedef s8 HFI_S8;
|
||||
typedef u16 HFI_U16;
|
||||
typedef s16 HFI_S16;
|
||||
typedef u32 HFI_U32;
|
||||
typedef s32 HFI_S32;
|
||||
typedef u64 HFI_U64;
|
||||
typedef HFI_U32 HFI_BOOL;
|
||||
|
||||
#ifndef MIN
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __H_MSM_VIDC_BUFFER_IRIS2_H__
|
||||
@@ -14,4 +15,5 @@ int msm_buffer_min_count_iris2(struct msm_vidc_inst *inst,
|
||||
enum msm_vidc_buffer_type buffer_type);
|
||||
int msm_buffer_extra_count_iris2(struct msm_vidc_inst *inst,
|
||||
enum msm_vidc_buffer_type buffer_type);
|
||||
|
||||
#endif // __H_MSM_VIDC_BUFFER_IRIS2_H__
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_IRIS2_H_
|
||||
@@ -17,10 +18,12 @@ static inline int msm_vidc_init_iris2(struct msm_vidc_core *core)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline int msm_vidc_deinit_iris2(struct msm_vidc_core *core)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline int msm_vidc_adjust_blur_type_iris2(void *instance, struct v4l2_ctrl *ctrl)
|
||||
{
|
||||
return -EINVAL;
|
||||
|
@@ -1,13 +1,14 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __H_MSM_VIDC_POWER_IRIS2_H__
|
||||
#define __H_MSM_VIDC_POWER_IRIS2_H__
|
||||
|
||||
#include "msm_vidc_power.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vidc_power.h"
|
||||
|
||||
u64 msm_vidc_calc_freq_iris2(struct msm_vidc_inst* inst, u32 data_size);
|
||||
int msm_vidc_calc_bw_iris2(struct msm_vidc_inst* inst,
|
||||
|
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "hfi_property.h"
|
||||
@@ -10,9 +11,9 @@
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_media_info.h"
|
||||
#include "msm_vidc_platform.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
|
||||
static u32 msm_vidc_decoder_bin_size_iris2(struct msm_vidc_inst *inst)
|
||||
{
|
||||
|
@@ -1,11 +1,11 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
#include "msm_vidc_iris2.h"
|
||||
#include "msm_vidc_buffer_iris2.h"
|
||||
#include "msm_vidc_power_iris2.h"
|
||||
#include "venus_hfi.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "msm_vidc_state.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_variant.h"
|
||||
#include "venus_hfi.h"
|
||||
|
||||
#define VIDEO_ARCH_LX 1
|
||||
|
||||
|
@@ -1,12 +1,13 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "msm_vidc_power_iris2.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
|
||||
u64 msm_vidc_calc_freq_iris2(struct msm_vidc_inst *inst, u32 data_size)
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __HFI_BUFFER_IRIS3__
|
||||
@@ -10,13 +10,13 @@
|
||||
#include <linux/types.h>
|
||||
#include "hfi_property.h"
|
||||
|
||||
typedef u8 HFI_U8;
|
||||
typedef s8 HFI_S8;
|
||||
typedef u16 HFI_U16;
|
||||
typedef s16 HFI_S16;
|
||||
typedef u32 HFI_U32;
|
||||
typedef s32 HFI_S32;
|
||||
typedef u64 HFI_U64;
|
||||
typedef u8 HFI_U8;
|
||||
typedef s8 HFI_S8;
|
||||
typedef u16 HFI_U16;
|
||||
typedef s16 HFI_S16;
|
||||
typedef u32 HFI_U32;
|
||||
typedef s32 HFI_S32;
|
||||
typedef u64 HFI_U64;
|
||||
typedef HFI_U32 HFI_BOOL;
|
||||
|
||||
#ifndef MIN
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __H_MSM_VIDC_BUFFER_IRIS3_H__
|
||||
@@ -15,4 +15,5 @@ int msm_buffer_min_count_iris3(struct msm_vidc_inst *inst,
|
||||
enum msm_vidc_buffer_type buffer_type);
|
||||
int msm_buffer_extra_count_iris3(struct msm_vidc_inst *inst,
|
||||
enum msm_vidc_buffer_type buffer_type);
|
||||
|
||||
#endif // __H_MSM_VIDC_BUFFER_IRIS3_H__
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_IRIS3_H_
|
||||
@@ -18,10 +18,12 @@ static inline int msm_vidc_init_iris3(struct msm_vidc_core *core)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline int msm_vidc_deinit_iris3(struct msm_vidc_core *core)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline int msm_vidc_adjust_bitrate_boost_iris3(void *instance, struct v4l2_ctrl *ctrl)
|
||||
{
|
||||
return -EINVAL;
|
||||
|
@@ -1,14 +1,14 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __H_MSM_VIDC_POWER_IRIS3_H__
|
||||
#define __H_MSM_VIDC_POWER_IRIS3_H__
|
||||
|
||||
#include "msm_vidc_power.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vidc_power.h"
|
||||
|
||||
u64 msm_vidc_calc_freq_iris3(struct msm_vidc_inst* inst, u32 data_size);
|
||||
int msm_vidc_calc_bw_iris3(struct msm_vidc_inst* inst,
|
||||
|
@@ -1,11 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "hfi_property.h"
|
||||
#include "hfi_buffer_iris3.h"
|
||||
#include "msm_vidc_buffer_iris3.h"
|
||||
#include "msm_vidc_buffer.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
@@ -14,6 +12,8 @@
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_media_info.h"
|
||||
#include "msm_vidc_platform.h"
|
||||
#include "hfi_property.h"
|
||||
#include "hfi_buffer_iris3.h"
|
||||
|
||||
static u32 msm_vidc_decoder_bin_size_iris3(struct msm_vidc_inst *inst)
|
||||
{
|
||||
|
@@ -1,13 +1,12 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021-2022, Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023, Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "msm_vidc_iris3.h"
|
||||
#include "msm_vidc_buffer_iris3.h"
|
||||
#include "msm_vidc_power_iris3.h"
|
||||
#include "venus_hfi.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
@@ -17,6 +16,7 @@
|
||||
#include "msm_vidc_state.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_variant.h"
|
||||
#include "venus_hfi.h"
|
||||
|
||||
#define VIDEO_ARCH_LX 1
|
||||
|
||||
|
@@ -1,13 +1,13 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "msm_vidc_power_iris3.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
|
||||
u64 msm_vidc_calc_freq_iris3(struct msm_vidc_inst *inst, u32 data_size)
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2022, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __HFI_BUFFER_IRIS3_3__
|
||||
@@ -10,13 +10,13 @@
|
||||
#include <linux/types.h>
|
||||
#include "hfi_property.h"
|
||||
|
||||
typedef u8 HFI_U8;
|
||||
typedef s8 HFI_S8;
|
||||
typedef u16 HFI_U16;
|
||||
typedef s16 HFI_S16;
|
||||
typedef u32 HFI_U32;
|
||||
typedef s32 HFI_S32;
|
||||
typedef u64 HFI_U64;
|
||||
typedef u8 HFI_U8;
|
||||
typedef s8 HFI_S8;
|
||||
typedef u16 HFI_U16;
|
||||
typedef s16 HFI_S16;
|
||||
typedef u32 HFI_U32;
|
||||
typedef s32 HFI_S32;
|
||||
typedef u64 HFI_U64;
|
||||
typedef HFI_U32 HFI_BOOL;
|
||||
|
||||
#ifndef MIN
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2022, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __H_MSM_VIDC_BUFFER_IRIS3_3_H__
|
||||
@@ -15,4 +15,5 @@ int msm_buffer_min_count_iris33(struct msm_vidc_inst *inst,
|
||||
enum msm_vidc_buffer_type buffer_type);
|
||||
int msm_buffer_extra_count_iris33(struct msm_vidc_inst *inst,
|
||||
enum msm_vidc_buffer_type buffer_type);
|
||||
|
||||
#endif // __H_MSM_VIDC_BUFFER_IRIS3_3_H__
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2022, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_IRIS3_3_H_
|
||||
@@ -18,10 +18,12 @@ static inline int msm_vidc_init_iris33(struct msm_vidc_core *core)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline int msm_vidc_deinit_iris33(struct msm_vidc_core *core)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline int msm_vidc_adjust_bitrate_boost_iris33(void *instance, struct v4l2_ctrl *ctrl)
|
||||
{
|
||||
return -EINVAL;
|
||||
|
@@ -1,14 +1,14 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2022, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __H_MSM_VIDC_POWER_IRIS3_3_H__
|
||||
#define __H_MSM_VIDC_POWER_IRIS3_3_H__
|
||||
|
||||
#include "msm_vidc_power.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vidc_power.h"
|
||||
|
||||
u64 msm_vidc_calc_freq_iris33(struct msm_vidc_inst* inst, u32 data_size);
|
||||
int msm_vidc_calc_bw_iris33(struct msm_vidc_inst* inst,
|
||||
|
@@ -1,11 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2022, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "hfi_property.h"
|
||||
#include "hfi_buffer_iris33.h"
|
||||
#include "msm_vidc_buffer_iris33.h"
|
||||
#include "msm_vidc_buffer.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
@@ -14,6 +12,8 @@
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_media_info.h"
|
||||
#include "msm_vidc_platform.h"
|
||||
#include "hfi_property.h"
|
||||
#include "hfi_buffer_iris33.h"
|
||||
|
||||
static u32 msm_vidc_decoder_bin_size_iris33(struct msm_vidc_inst *inst)
|
||||
{
|
||||
|
@@ -1,14 +1,13 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2022, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/reset.h>
|
||||
#include "msm_vidc_iris33.h"
|
||||
#include "msm_vidc_buffer_iris33.h"
|
||||
#include "msm_vidc_power_iris33.h"
|
||||
#include "venus_hfi.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
@@ -18,6 +17,7 @@
|
||||
#include "msm_vidc_state.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_variant.h"
|
||||
#include "venus_hfi.h"
|
||||
|
||||
#define VIDEO_ARCH_LX 1
|
||||
|
||||
|
@@ -1,13 +1,13 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2022, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "msm_vidc_power_iris33.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
|
||||
u64 msm_vidc_calc_freq_iris33(struct msm_vidc_inst *inst, u32 data_size)
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2022, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_FIRMWARE_H_
|
||||
@@ -13,4 +14,5 @@ int fw_unload(struct msm_vidc_core *core);
|
||||
int fw_suspend(struct msm_vidc_core *core);
|
||||
int fw_resume(struct msm_vidc_core *core);
|
||||
|
||||
|
||||
#endif
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifdef _FIXP_ARITH_H
|
||||
@@ -59,7 +60,6 @@ static inline fp_t fp_mult(fp_t a, fp_t b)
|
||||
return (a * b) >> FP_FRACTIONAL_BITS;
|
||||
}
|
||||
|
||||
|
||||
static inline fp_t fp_div(fp_t a, fp_t b)
|
||||
{
|
||||
return (a << FP_FRACTIONAL_BITS) / b;
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __H_HFI_COMMAND_H__
|
||||
@@ -12,6 +13,7 @@
|
||||
|
||||
#define HFI_VIDEO_ARCH_LX 0x1
|
||||
|
||||
|
||||
struct hfi_header {
|
||||
u32 size;
|
||||
u32 session_id;
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _HFI_PACKET_H_
|
||||
@@ -46,4 +47,5 @@ int hfi_packet_session_command(struct msm_vidc_inst *inst,
|
||||
u32 payload_type, void *payload, u32 payload_size);
|
||||
int hfi_packet_sys_intraframe_powercollapse(struct msm_vidc_core* core,
|
||||
u8* pkt, u32 pkt_size, u32 enable);
|
||||
|
||||
#endif // _HFI_PACKET_H_
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __H_HFI_PROPERTY_H__
|
||||
@@ -357,7 +358,6 @@ enum hfi_syncframe_request_mode {
|
||||
HFI_SYNC_FRAME_REQUEST_WITHOUT_SEQ_HDR = 0x00000001,
|
||||
HFI_SYNC_FRAME_REQUEST_WITH_PREFIX_SEQ_HDR = 0x00000002,
|
||||
};
|
||||
|
||||
#define HFI_PROP_REQUEST_SYNC_FRAME 0x03000145
|
||||
|
||||
#define HFI_PROP_MAX_GOP_FRAMES 0x03000146
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __MSM_MEDIA_INFO_H__
|
||||
@@ -91,6 +92,7 @@ static inline unsigned int video_y_stride_pix(unsigned int colorformat,
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
invalid_input:
|
||||
return stride;
|
||||
}
|
||||
|
@@ -1,13 +1,14 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VDEC_H_
|
||||
#define _MSM_VDEC_H_
|
||||
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vidc_core.h"
|
||||
|
||||
int msm_vdec_streamoff_input(struct msm_vidc_inst *inst);
|
||||
int msm_vdec_streamon_input(struct msm_vidc_inst *inst);
|
||||
|
@@ -1,13 +1,14 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VENC_H_
|
||||
#define _MSM_VENC_H_
|
||||
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vidc_core.h"
|
||||
|
||||
int msm_venc_streamoff_input(struct msm_vidc_inst *inst);
|
||||
int msm_venc_streamon_input(struct msm_vidc_inst *inst);
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_H_
|
||||
@@ -51,4 +52,5 @@ int msm_vidc_dqevent(void *instance, struct v4l2_event *event);
|
||||
int msm_vidc_g_crop(void *instance, struct v4l2_crop *a);
|
||||
int msm_vidc_enum_framesizes(void *instance, struct v4l2_frmsizeenum *fsize);
|
||||
int msm_vidc_enum_frameintervals(void *instance, struct v4l2_frmivalenum *fival);
|
||||
|
||||
#endif
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __H_MSM_VIDC_BUFFER_H__
|
||||
@@ -8,13 +9,13 @@
|
||||
|
||||
#include "msm_vidc_inst.h"
|
||||
|
||||
#define MIN_DEC_INPUT_BUFFERS 4
|
||||
#define MIN_DEC_INPUT_BUFFERS 4
|
||||
#define MIN_DEC_OUTPUT_BUFFERS 4
|
||||
|
||||
#define MIN_ENC_INPUT_BUFFERS 4
|
||||
#define MIN_ENC_INPUT_BUFFERS 4
|
||||
#define MIN_ENC_OUTPUT_BUFFERS 4
|
||||
|
||||
#define DCVS_ENC_EXTRA_INPUT_BUFFERS 4
|
||||
#define DCVS_ENC_EXTRA_INPUT_BUFFERS 4
|
||||
#define DCVS_DEC_EXTRA_OUTPUT_BUFFERS 4
|
||||
|
||||
u32 msm_vidc_input_min_count(struct msm_vidc_inst *inst);
|
||||
|
@@ -2,13 +2,13 @@
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
/* Copyright (c) 2022. Qualcomm Innovation Center, Inc. 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_inst.h"
|
||||
#include "msm_vidc_internal.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
|
||||
int msm_vidc_ctrl_init(struct msm_vidc_inst *inst);
|
||||
int msm_vidc_ctrl_deinit(struct msm_vidc_inst *inst);
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2022. Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023. Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_CONTROL_EXT_H_
|
||||
@@ -12,7 +12,6 @@ int msm_vidc_adjust_ir_period(void *instance, struct v4l2_ctrl *ctrl);
|
||||
int msm_vidc_adjust_dec_frame_rate(void *instance, struct v4l2_ctrl *ctrl);
|
||||
int msm_vidc_adjust_dec_operating_rate(void *instance, struct v4l2_ctrl *ctrl);
|
||||
int msm_vidc_adjust_delivery_mode(void *instance, struct v4l2_ctrl *ctrl);
|
||||
|
||||
int msm_vidc_set_ir_period(void *instance,
|
||||
enum msm_vidc_inst_capability_type cap_id);
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_CORE_H_
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
struct msm_vidc_core;
|
||||
|
||||
#define MAX_EVENTS 30
|
||||
#define MAX_EVENTS 30
|
||||
|
||||
#define call_venus_op(d, op, ...) \
|
||||
(((d) && (d)->venus_ops && (d)->venus_ops->op) ? \
|
||||
|
@@ -1,15 +1,16 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __MSM_VIDC_DEBUG__
|
||||
#define __MSM_VIDC_DEBUG__
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/debugfs.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/moduleparam.h>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_DRIVER_H_
|
||||
@@ -603,5 +603,6 @@ struct context_bank_info *msm_vidc_get_context_bank_for_region(struct msm_vidc_c
|
||||
enum msm_vidc_buffer_region region);
|
||||
struct context_bank_info *msm_vidc_get_context_bank_for_device(
|
||||
struct msm_vidc_core *core, struct device *dev);
|
||||
|
||||
#endif // _MSM_VIDC_DRIVER_H_
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#if !defined(_TRACE_MSM_VIDC_H) || defined(TRACE_HEADER_MULTI_READ)
|
||||
@@ -14,6 +15,7 @@
|
||||
#define TRACE_INCLUDE_FILE msm_vidc_events
|
||||
|
||||
#include <linux/tracepoint.h>
|
||||
|
||||
#include "msm_vidc_inst.h"
|
||||
|
||||
DECLARE_EVENT_CLASS(msm_v4l2_vidc_inst,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __H_MSM_VIDC_FENCE_H__
|
||||
@@ -22,4 +22,5 @@ void msm_vidc_fence_destroy(struct msm_vidc_inst *inst,
|
||||
int msm_vidc_fence_init(struct msm_vidc_inst *inst);
|
||||
void msm_vidc_fence_deinit(struct msm_vidc_inst *inst);
|
||||
|
||||
|
||||
#endif // __H_MSM_VIDC_FENCE_H__
|
||||
|
@@ -2,7 +2,7 @@
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
/* Copyright (c) 2022. Qualcomm Innovation Center, Inc. All rights reserved. */
|
||||
/* Copyright (c) 2022-2023. Qualcomm Innovation Center, Inc. All rights reserved. */
|
||||
|
||||
#ifndef _MSM_VIDC_INST_H_
|
||||
#define _MSM_VIDC_INST_H_
|
||||
@@ -173,4 +173,5 @@ struct msm_vidc_inst {
|
||||
u32 adjust_priority;
|
||||
bool iframe;
|
||||
};
|
||||
|
||||
#endif // _MSM_VIDC_INST_H_
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_INTERNAL_H_
|
||||
@@ -46,10 +46,10 @@ enum msm_vidc_metadata_bits {
|
||||
MSM_VIDC_META_MAX = 0x20,
|
||||
};
|
||||
|
||||
#define MSM_VIDC_METADATA_SIZE (4 * 4096) /* 16 KB */
|
||||
#define ENCODE_INPUT_METADATA_SIZE (512 * 4096) /* 2 MB */
|
||||
#define DECODE_INPUT_METADATA_SIZE MSM_VIDC_METADATA_SIZE
|
||||
#define MSM_VIDC_METADATA_DOLBY_RPU_SIZE (41 * 1024) /* 41 KB */
|
||||
#define MSM_VIDC_METADATA_SIZE (4 * 4096) /* 16 KB */
|
||||
#define ENCODE_INPUT_METADATA_SIZE (512 * 4096) /* 2 MB */
|
||||
#define DECODE_INPUT_METADATA_SIZE MSM_VIDC_METADATA_SIZE
|
||||
#define MSM_VIDC_METADATA_DOLBY_RPU_SIZE (41 * 1024) /* 41 KB */
|
||||
|
||||
#define MAX_NAME_LENGTH 128
|
||||
#define VENUS_VERSION_LENGTH 128
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_MEMORY_H_
|
||||
@@ -47,7 +48,7 @@ struct msm_memory_pool {
|
||||
int msm_vidc_vmem_alloc(unsigned long size, void **mem, const char *msg);
|
||||
void msm_vidc_vmem_free(void **addr);
|
||||
void *msm_vidc_pool_alloc(struct msm_vidc_inst *inst,
|
||||
enum msm_memory_pool_type type);
|
||||
enum msm_memory_pool_type type);
|
||||
void msm_vidc_pool_free(struct msm_vidc_inst *inst, void *vidc_buf);
|
||||
int msm_vidc_pools_init(struct msm_vidc_inst *inst);
|
||||
void msm_vidc_pools_deinit(struct msm_vidc_inst *inst);
|
||||
|
@@ -1,14 +1,13 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_MEMORY_EXT_H_
|
||||
#define _MSM_VIDC_MEMORY_EXT_H_
|
||||
|
||||
struct msm_vidc_memory_ops;
|
||||
|
||||
struct msm_vidc_memory_ops *get_mem_ops_ext(void);
|
||||
|
||||
#endif // _MSM_VIDC_MEMORY_EXT_H_
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_POWER_H_
|
||||
@@ -253,4 +254,5 @@ u64 msm_vidc_max_freq(struct msm_vidc_inst* inst);
|
||||
int msm_vidc_get_inst_load(struct msm_vidc_inst *inst);
|
||||
int msm_vidc_scale_power(struct msm_vidc_inst *inst, bool scale_buses);
|
||||
void msm_vidc_power_data_reset(struct msm_vidc_inst *inst);
|
||||
|
||||
#endif
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_STATE_H_
|
||||
@@ -45,8 +45,7 @@ struct msm_vidc_core_state_handle {
|
||||
};
|
||||
|
||||
enum msm_vidc_allow msm_vidc_allow_core_state_change(
|
||||
struct msm_vidc_core *core,
|
||||
enum msm_vidc_core_state req_state);
|
||||
struct msm_vidc_core *core, enum msm_vidc_core_state req_state);
|
||||
int msm_vidc_update_core_state(struct msm_vidc_core *core,
|
||||
enum msm_vidc_core_state request_state, const char *func);
|
||||
bool core_in_valid_state(struct msm_vidc_core *core);
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_V4L2_H_
|
||||
@@ -74,4 +75,5 @@ int msm_v4l2_request_validate(struct media_request *req);
|
||||
void msm_v4l2_request_queue(struct media_request *req);
|
||||
void msm_v4l2_m2m_device_run(void *priv);
|
||||
void msm_v4l2_m2m_job_abort(void *priv);
|
||||
|
||||
#endif // _MSM_VIDC_V4L2_H_
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_VB2_H_
|
||||
@@ -43,4 +44,5 @@ void msm_vidc_buf_queue(struct vb2_buffer *vb2);
|
||||
void msm_vidc_buf_cleanup(struct vb2_buffer *vb);
|
||||
int msm_vidc_buf_out_validate(struct vb2_buffer *vb);
|
||||
void msm_vidc_buf_request_complete(struct vb2_buffer *vb);
|
||||
|
||||
#endif // _MSM_VIDC_VB2_H_
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2022, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_RESOURCES_H_
|
||||
@@ -19,8 +20,8 @@ struct msm_vidc_core;
|
||||
|
||||
/*
|
||||
* These are helper macros to iterate over various lists within
|
||||
* msm_vidc_core->resource. The intention is to cut down on a lot of boiler-plate
|
||||
* code
|
||||
* msm_vidc_core->resource. The intention is to cut down on a lot
|
||||
* of boiler-plate code
|
||||
*/
|
||||
|
||||
/* Read as "for each 'thing' in a set of 'thingies'" */
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _VENUS_HFI_H_
|
||||
@@ -67,11 +68,9 @@ int venus_hfi_scale_clocks(struct msm_vidc_inst* inst, u64 freq);
|
||||
int venus_hfi_scale_buses(struct msm_vidc_inst* inst, u64 bw_ddr, u64 bw_llcc);
|
||||
int venus_hfi_set_ir_period(struct msm_vidc_inst *inst, u32 ir_type,
|
||||
enum msm_vidc_inst_capability_type cap_id);
|
||||
|
||||
void venus_hfi_pm_work_handler(struct work_struct *work);
|
||||
irqreturn_t venus_hfi_isr(int irq, void *data);
|
||||
irqreturn_t venus_hfi_isr_handler(int irq, void *data);
|
||||
|
||||
int __prepare_pc(struct msm_vidc_core *core);
|
||||
|
||||
#endif // _VENUS_HFI_H_
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2022, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _VENUS_HFI_QUEUE_H_
|
||||
@@ -19,13 +20,13 @@
|
||||
#define HFI_Q_ID_CTRL_TO_HOST_DEBUG_Q 2
|
||||
#define HFI_MASK_QHDR_STATUS 0x000000ff
|
||||
|
||||
#define VIDC_IFACEQ_NUMQ 3
|
||||
#define VIDC_IFACEQ_CMDQ_IDX 0
|
||||
#define VIDC_IFACEQ_MSGQ_IDX 1
|
||||
#define VIDC_IFACEQ_DBGQ_IDX 2
|
||||
#define VIDC_IFACEQ_MAX_BUF_COUNT 50
|
||||
#define VIDC_IFACE_MAX_PARALLEL_CLNTS 16
|
||||
#define VIDC_IFACEQ_DFLT_QHDR 0x01010000
|
||||
#define VIDC_IFACEQ_NUMQ 3
|
||||
#define VIDC_IFACEQ_CMDQ_IDX 0
|
||||
#define VIDC_IFACEQ_MSGQ_IDX 1
|
||||
#define VIDC_IFACEQ_DBGQ_IDX 2
|
||||
#define VIDC_IFACEQ_MAX_BUF_COUNT 50
|
||||
#define VIDC_IFACE_MAX_PARALLEL_CLNTS 16
|
||||
#define VIDC_IFACEQ_DFLT_QHDR 0x01010000
|
||||
|
||||
struct hfi_queue_table_header {
|
||||
u32 qtbl_version;
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __VENUS_HFI_RESPONSE_H__
|
||||
@@ -22,4 +23,5 @@ void fw_coredump(struct msm_vidc_core *core);
|
||||
int handle_release_output_buffer(struct msm_vidc_inst *inst,
|
||||
struct hfi_buffer *buffer);
|
||||
|
||||
|
||||
#endif // __VENUS_HFI_RESPONSE_H__
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2022. Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023. Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
#include <linux/types.h>
|
||||
#include <linux/list.h>
|
||||
@@ -13,8 +13,8 @@
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_events.h"
|
||||
#include "firmware.h"
|
||||
#include "msm_vidc_platform.h"
|
||||
#include "firmware.h"
|
||||
|
||||
#define MAX_FIRMWARE_NAME_SIZE 128
|
||||
|
||||
|
@@ -1,14 +1,15 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "hfi_packet.h"
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_platform.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
|
||||
u32 get_hfi_port(struct msm_vidc_inst *inst,
|
||||
enum msm_vidc_port_type port)
|
||||
|
@@ -2,7 +2,7 @@
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
/* Copyright (c) 2022. Qualcomm Innovation Center, Inc. All rights reserved. */
|
||||
/* Copyright (c) 2022-2023. Qualcomm Innovation Center, Inc. All rights reserved. */
|
||||
|
||||
#include "msm_media_info.h"
|
||||
#include <linux/v4l2-common.h>
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "msm_vidc_memory.h"
|
||||
#include "venus_hfi.h"
|
||||
#include "hfi_packet.h"
|
||||
|
||||
/* TODO: update based on clips */
|
||||
#define MAX_DEC_BATCH_SIZE 6
|
||||
#define SKIP_BATCH_WINDOW 100
|
||||
|
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "msm_media_info.h"
|
||||
@@ -11,8 +12,8 @@
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_internal.h"
|
||||
#include "msm_vidc_control.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_power.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "venus_hfi.h"
|
||||
#include "hfi_packet.h"
|
||||
#include "msm_vidc_platform.h"
|
||||
|
@@ -2,10 +2,11 @@
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
/* Copyright (c) 2022. Qualcomm Innovation Center, Inc. All rights reserved. */
|
||||
/* Copyright (c) 2022-2023. Qualcomm Innovation Center, Inc. All rights reserved. */
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/hash.h>
|
||||
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vdec.h"
|
||||
|
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "msm_media_info.h"
|
||||
@@ -8,8 +9,8 @@
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_internal.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
|
||||
/* Generic function for all targets. Not being used for iris2 */
|
||||
u32 msm_vidc_input_min_count(struct msm_vidc_inst* inst)
|
||||
|
@@ -2,13 +2,13 @@
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
/* Copyright (c) 2022. Qualcomm Innovation Center, Inc. All rights reserved. */
|
||||
/* Copyright (c) 2022-2023. Qualcomm Innovation Center, Inc. All rights reserved. */
|
||||
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_internal.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_venc.h"
|
||||
#include "msm_vidc_platform.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
|
||||
extern struct msm_vidc_core *g_core;
|
||||
|
||||
|
@@ -1,11 +1,10 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2022. Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023. Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <media/v4l2_vidc_extensions.h>
|
||||
#include "msm_vidc_control_ext.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "hfi_packet.h"
|
||||
#include "hfi_property.h"
|
||||
#include "venus_hfi.h"
|
||||
@@ -13,6 +12,7 @@
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_venc.h"
|
||||
#include "msm_vidc_platform.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
|
||||
int msm_vidc_adjust_ir_period(void *instance, struct v4l2_ctrl *ctrl)
|
||||
{
|
||||
|
@@ -1,7 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#define CREATE_TRACE_POINTS
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2022, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/iommu.h>
|
||||
@@ -16,7 +16,6 @@
|
||||
#include "msm_vidc_state.h"
|
||||
#include "msm_vidc_power.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_power.h"
|
||||
#include "msm_vidc.h"
|
||||
#include "msm_vdec.h"
|
||||
#include "msm_venc.h"
|
||||
|
@@ -1,11 +1,11 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "msm_vidc_fence.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
|
||||
extern struct msm_vidc_core *g_core;
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/dma-buf.h>
|
||||
@@ -8,8 +9,8 @@
|
||||
#include <linux/dma-mapping.h>
|
||||
|
||||
#include "msm_vidc_memory.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_internal.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_events.h"
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/dma-buf.h>
|
||||
@@ -11,8 +11,8 @@
|
||||
#include <soc/qcom/secure_buffer.h>
|
||||
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_events.h"
|
||||
#include "msm_vidc_platform.h"
|
||||
#include "msm_vidc_memory.h"
|
||||
|
@@ -1,12 +1,12 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "msm_vidc_power.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_internal.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
|
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2022, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/workqueue.h>
|
||||
@@ -20,8 +21,8 @@
|
||||
#endif
|
||||
|
||||
#include "msm_vidc_internal.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_state.h"
|
||||
#include "msm_vidc_platform.h"
|
||||
#include "msm_vidc_core.h"
|
||||
|
@@ -1,13 +1,13 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_state.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
|
||||
bool core_in_valid_state(struct msm_vidc_core *core)
|
||||
{
|
||||
|
@@ -1,14 +1,15 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "msm_vidc_v4l2.h"
|
||||
#include "msm_vidc_internal.h"
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc.h"
|
||||
#include "msm_vidc_events.h"
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
/* Copyright (c) 2022. Qualcomm Innovation Center, Inc. All rights reserved. */
|
||||
/* Copyright (c) 2022-2023. Qualcomm Innovation Center, Inc. All rights reserved. */
|
||||
|
||||
#include "msm_vidc_vb2.h"
|
||||
#include "msm_vidc_core.h"
|
||||
@@ -10,9 +10,9 @@
|
||||
#include "msm_vidc_internal.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_power.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vdec.h"
|
||||
#include "msm_venc.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_control.h"
|
||||
#include "msm_vidc_platform.h"
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
/* Copyright (c) 2022. Qualcomm Innovation Center, Inc. All rights reserved. */
|
||||
/* Copyright (c) 2022-2023. Qualcomm Innovation Center, Inc. All rights reserved. */
|
||||
|
||||
#include <linux/sort.h>
|
||||
#include <linux/clk.h>
|
||||
@@ -14,8 +14,8 @@
|
||||
#endif
|
||||
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_power.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_platform.h"
|
||||
#include "venus_hfi.h"
|
||||
|
@@ -2,7 +2,7 @@
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
/* Copyright (c) 2022. Qualcomm Innovation Center, Inc. All rights reserved. */
|
||||
/* Copyright (c) 2022-2023. Qualcomm Innovation Center, Inc. All rights reserved. */
|
||||
|
||||
#include <linux/iommu.h>
|
||||
#include <linux/qcom_scm.h>
|
||||
@@ -21,8 +21,8 @@
|
||||
#include "msm_vidc_power.h"
|
||||
#include "msm_vidc_platform.h"
|
||||
#include "msm_vidc_memory.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "hfi_packet.h"
|
||||
#include "venus_hfi_response.h"
|
||||
#include "venus_hfi_queue.h"
|
||||
|
@@ -2,11 +2,11 @@
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
/* Copyright (c) 2022. Qualcomm Innovation Center, Inc. All rights reserved. */
|
||||
/* Copyright (c) 2022-2023. Qualcomm Innovation Center, Inc. All rights reserved. */
|
||||
|
||||
#include "venus_hfi_queue.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_debug.h"
|
||||
#include "msm_vidc_memory.h"
|
||||
#include "msm_vidc_platform.h"
|
||||
|
||||
|
@@ -1,11 +1,12 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/devcoredump.h>
|
||||
#include <linux/of_address.h>
|
||||
|
||||
#include "hfi_packet.h"
|
||||
#include "venus_hfi.h"
|
||||
#include "venus_hfi_response.h"
|
||||
|
@@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
||||
/*
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __V4l2_VIDC_EXTENSIONS_H__
|
||||
@@ -78,6 +79,7 @@ enum v4l2_mpeg_vidc_ir_type {
|
||||
V4L2_MPEG_VIDEO_VIDC_INTRA_REFRESH_RANDOM = 0x0,
|
||||
V4L2_MPEG_VIDEO_VIDC_INTRA_REFRESH_CYCLIC = 0x1,
|
||||
};
|
||||
|
||||
#define V4L2_CID_MPEG_VIDC_TIME_DELTA_BASED_RC (V4L2_CID_MPEG_VIDC_BASE + 0xD)
|
||||
/* Encoder quality controls */
|
||||
#define V4L2_CID_MPEG_VIDC_CONTENT_ADAPTIVE_CODING \
|
||||
|
在新工单中引用
屏蔽一个用户