video: driver: add mapping for missing colorspace vidc macros

Add mapping for missing vidc macros MSM_VIDC_TRANSFER_UNSPECIFIED
and MSM_VIDC_PRIMARIES_UNSPECIFIED.

Change-Id: I39fc60d98fe9f7c73d91768f5a0eb36e2c72a94c
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
This commit is contained in:
Dikshita Agarwal
2022-08-08 15:48:10 +05:30
parent 1ee1d9c8e5
commit 203f09ac3f
2 changed files with 14 additions and 2 deletions

View File

@@ -1013,8 +1013,8 @@ u32 v4l2_matrix_coeff_from_driver(struct msm_vidc_inst *inst,
size = core->platform->data.format_data->matrix_coeff_info_size;
for (i = 0; i < size; i++) {
if (matrix_coeff_info[i].v4l2_matrix_coeff == v4l2_matrix_coeff)
return matrix_coeff_info[i].vidc_matrix_coeff;
if (matrix_coeff_info[i].vidc_matrix_coeff == vidc_matrix_coeff)
return matrix_coeff_info[i].v4l2_matrix_coeff;
}
i_vpr_e(inst, "%s: invalid hfi matrix coeff %d\n",