Skip to content

Commit 15447d1

Browse files
Stanimir Varbanovmchehab
authored andcommitted
media: venus: hfi_cmds: Support plane-actual-info property from v1
The property is supported from v1 and upwards. So move it to set_property_1x. Fixes: 01e869e ("media: venus: venc: fix handlig of S_SELECTION and G_SELECTION") Cc: [email protected] # v5.12 Signed-off-by: Stanimir Varbanov <[email protected]> Tested-by: Bryan O'Donoghue <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 39a6b91 commit 15447d1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

drivers/media/platform/qcom/venus/hfi_cmds.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,18 @@ static int pkt_session_set_property_1x(struct hfi_session_set_property_pkt *pkt,
10391039
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*hierp);
10401040
break;
10411041
}
1042+
case HFI_PROPERTY_PARAM_UNCOMPRESSED_PLANE_ACTUAL_INFO: {
1043+
struct hfi_uncompressed_plane_actual_info *in = pdata;
1044+
struct hfi_uncompressed_plane_actual_info *info = prop_data;
1045+
1046+
info->buffer_type = in->buffer_type;
1047+
info->num_planes = in->num_planes;
1048+
info->plane_format[0] = in->plane_format[0];
1049+
if (in->num_planes > 1)
1050+
info->plane_format[1] = in->plane_format[1];
1051+
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*info);
1052+
break;
1053+
}
10421054

10431055
/* FOLLOWING PROPERTIES ARE NOT IMPLEMENTED IN CORE YET */
10441056
case HFI_PROPERTY_CONFIG_BUFFER_REQUIREMENTS:
@@ -1205,18 +1217,6 @@ pkt_session_set_property_4xx(struct hfi_session_set_property_pkt *pkt,
12051217
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*cu);
12061218
break;
12071219
}
1208-
case HFI_PROPERTY_PARAM_UNCOMPRESSED_PLANE_ACTUAL_INFO: {
1209-
struct hfi_uncompressed_plane_actual_info *in = pdata;
1210-
struct hfi_uncompressed_plane_actual_info *info = prop_data;
1211-
1212-
info->buffer_type = in->buffer_type;
1213-
info->num_planes = in->num_planes;
1214-
info->plane_format[0] = in->plane_format[0];
1215-
if (in->num_planes > 1)
1216-
info->plane_format[1] = in->plane_format[1];
1217-
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*info);
1218-
break;
1219-
}
12201220
case HFI_PROPERTY_CONFIG_VENC_MAX_BITRATE:
12211221
case HFI_PROPERTY_CONFIG_VDEC_POST_LOOP_DEBLOCKER:
12221222
case HFI_PROPERTY_PARAM_BUFFER_ALLOC_MODE:

0 commit comments

Comments
 (0)