mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 17:43:59 +00:00
media: venus: hfi: handle buffer output2 type as well
This adds handling of buffers of type OUTPUT2 which is needed to support Venus 4xx version. Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: Tomasz Figa <tfiga@chromium.org> Reviewed-by: Alexandre Courbot <acourbot@chromium.org> Tested-by: Alexandre Courbot <acourbot@chromium.org> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
2074b9bed6
commit
5f43f90a99
@ -473,7 +473,8 @@ int hfi_session_process_buf(struct venus_inst *inst, struct hfi_frame_data *fd)
|
|||||||
|
|
||||||
if (fd->buffer_type == HFI_BUFFER_INPUT)
|
if (fd->buffer_type == HFI_BUFFER_INPUT)
|
||||||
return ops->session_etb(inst, fd);
|
return ops->session_etb(inst, fd);
|
||||||
else if (fd->buffer_type == HFI_BUFFER_OUTPUT)
|
else if (fd->buffer_type == HFI_BUFFER_OUTPUT ||
|
||||||
|
fd->buffer_type == HFI_BUFFER_OUTPUT2)
|
||||||
return ops->session_ftb(inst, fd);
|
return ops->session_ftb(inst, fd);
|
||||||
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
@ -823,7 +823,8 @@ static void hfi_session_ftb_done(struct venus_core *core,
|
|||||||
error = HFI_ERR_SESSION_INVALID_PARAMETER;
|
error = HFI_ERR_SESSION_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buffer_type != HFI_BUFFER_OUTPUT)
|
if (buffer_type != HFI_BUFFER_OUTPUT &&
|
||||||
|
buffer_type != HFI_BUFFER_OUTPUT2)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
if (hfi_flags & HFI_BUFFERFLAG_EOS)
|
if (hfi_flags & HFI_BUFFERFLAG_EOS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user