video: driver: Port fixes from iris2 to iris3
1. Change format specifier and API clean-up 2. Remove HEIC from Lossless Encoding 3. add support for timestamp reorder 4. alter bitrate_mode child adjust sequence 5. disable dynamic low latency Change-Id: I57d8150bac123cdfd8a0d14a2422246b87b4abfa Signed-off-by: Chinmay Sawarkar <quic_chinmays@quicinc.com>
This commit is contained in:
@@ -614,8 +614,7 @@ static int msm_vidc_input_min_count_iris3(struct msm_vidc_inst* inst)
|
||||
HFI_IRIS3_ENC_MIN_INPUT_BUF_COUNT(input_min_count,
|
||||
total_hb_layer);
|
||||
} else {
|
||||
i_vpr_e(inst, "%s: invalid domain\n",
|
||||
__func__, inst->domain);
|
||||
i_vpr_e(inst, "%s: invalid domain %d\n", __func__, inst->domain);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -297,7 +297,7 @@ static int __disable_regulator_iris3(struct msm_vidc_core *core,
|
||||
rc = __acquire_regulator(core, rinfo);
|
||||
if (rc) {
|
||||
d_vpr_e("%s: failed to acquire %s, rc = %d\n",
|
||||
rinfo->name, rc);
|
||||
__func__, rinfo->name, rc);
|
||||
/* Bring attention to this issue */
|
||||
WARN_ON(true);
|
||||
return rc;
|
||||
@@ -307,7 +307,7 @@ static int __disable_regulator_iris3(struct msm_vidc_core *core,
|
||||
rc = regulator_disable(rinfo->regulator);
|
||||
if (rc) {
|
||||
d_vpr_e("%s: failed to disable %s, rc = %d\n",
|
||||
rinfo->name, rc);
|
||||
__func__, rinfo->name, rc);
|
||||
return rc;
|
||||
}
|
||||
d_vpr_h("%s: disabled regulator %s\n", __func__, rinfo->name);
|
||||
@@ -1059,12 +1059,8 @@ int msm_vidc_decide_work_route_iris3(struct msm_vidc_inst* inst)
|
||||
CODED_FRAMES_INTERLACE)
|
||||
work_route = MSM_VIDC_PIPE_1;
|
||||
} else if (is_encode_session(inst)) {
|
||||
u32 slice_mode, width, height;
|
||||
struct v4l2_format* f;
|
||||
u32 slice_mode;
|
||||
|
||||
f = &inst->fmts[INPUT_PORT];
|
||||
height = f->fmt.pix_mp.height;
|
||||
width = f->fmt.pix_mp.width;
|
||||
slice_mode = inst->capabilities->cap[SLICE_MODE].value;
|
||||
|
||||
/*TODO Pipe=1 for legacy CBR*/
|
||||
|
@@ -15,7 +15,6 @@ u64 msm_vidc_calc_freq_iris3(struct msm_vidc_inst *inst, u32 data_size)
|
||||
{
|
||||
u64 freq = 0;
|
||||
struct msm_vidc_core* core;
|
||||
struct msm_vidc_power* power;
|
||||
u64 vsp_cycles = 0, vpp_cycles = 0, fw_cycles = 0;
|
||||
u64 fw_vpp_cycles = 0, bitrate = 0;
|
||||
u32 vpp_cycles_per_mb;
|
||||
@@ -31,7 +30,6 @@ u64 msm_vidc_calc_freq_iris3(struct msm_vidc_inst *inst, u32 data_size)
|
||||
return freq;
|
||||
}
|
||||
|
||||
power = &inst->power;
|
||||
core = inst->core;
|
||||
if (!core->dt) {
|
||||
d_vpr_e("%s: invalid params\n", __func__);
|
||||
|
Reference in New Issue
Block a user