[PATCH 0/2] media: venus: fix HFI parser payload size returns

From: Mohammed EL Kadiri

Date: Wed Jun 10 2026 - 09:01:13 EST


Several parse functions return incorrect consumed sizes after the
refactor in commit 9edaaa8e3e15. hfi_parser() uses these values to
advance through the firmware response buffer, so incorrect sizes cause
parser desynchronization.

parse_profile_level() has the correct pattern. These patches align the
remaining functions to match it.

Compile-tested with arm64 cross-compiler (gcc 13.3).

Mohammed EL Kadiri (2):
media: venus: fix payload size returned by parse_caps() and
parse_alloc_mode()
media: venus: fix payload size calculation in parse_raw_formats()

drivers/media/platform/qcom/venus/hfi_parser.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

--
2.43.0