Skip to content

Commit 834124c

Browse files
Stanimir Varbanovmchehab
authored andcommitted
media: venus: hfi_parser: Don't initialize parser on v1
The Venus v1 behaves differently comparing with the other Venus version in respect to capability parsing and when they are send to the driver. So we don't need to initialize hfi parser for multiple invocations like what we do for > v1 Venus versions. Fixes: 10865c9 ("media: venus: parser: Prepare parser for multiple invocations") Cc: [email protected] # v5.10+ Signed-off-by: Stanimir Varbanov <[email protected]> Tested-by: Bryan O'Donoghue <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent f2fb3f0 commit 834124c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,10 @@ u32 hfi_parser(struct venus_core *core, struct venus_inst *inst, void *buf,
277277

278278
parser_init(inst, &codecs, &domain);
279279

280-
core->codecs_count = 0;
281-
memset(core->caps, 0, sizeof(core->caps));
280+
if (core->res->hfi_version > HFI_VERSION_1XX) {
281+
core->codecs_count = 0;
282+
memset(core->caps, 0, sizeof(core->caps));
283+
}
282284

283285
while (words_count) {
284286
data = word + 1;

0 commit comments

Comments
 (0)