diff mbox series

[v2,3/8] venus: hfi_cmds: Allow null buffer address on encoder input

Message ID 20201111143755.24541-4-stanimir.varbanov@linaro.org
State New
Headers show
Series Venus stateful encoder compliance | expand

Commit Message

Stanimir Varbanov Nov. 11, 2020, 2:37 p.m. UTC
Allow null buffer address for encoder input buffers. This will
be used to send null input buffers to signal end-of-stream.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>

---
 drivers/media/platform/qcom/venus/hfi_cmds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.17.1

Comments

Fritz Koenig Nov. 29, 2020, 6:05 a.m. UTC | #1
On Wed, Nov 11, 2020 at 6:38 AM Stanimir Varbanov
<stanimir.varbanov@linaro.org> wrote:
>

> Allow null buffer address for encoder input buffers. This will

> be used to send null input buffers to signal end-of-stream.

>

> Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>

> ---

>  drivers/media/platform/qcom/venus/hfi_cmds.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/drivers/media/platform/qcom/venus/hfi_cmds.c b/drivers/media/platform/qcom/venus/hfi_cmds.c

> index 4f7565834469..2affaa2ed70f 100644

> --- a/drivers/media/platform/qcom/venus/hfi_cmds.c

> +++ b/drivers/media/platform/qcom/venus/hfi_cmds.c

> @@ -278,7 +278,7 @@ int pkt_session_etb_encoder(

>                 struct hfi_session_empty_buffer_uncompressed_plane0_pkt *pkt,

>                 void *cookie, struct hfi_frame_data *in_frame)

>  {

> -       if (!cookie || !in_frame->device_addr)

> +       if (!cookie)

>                 return -EINVAL;

>

>         pkt->shdr.hdr.size = sizeof(*pkt);

> --

> 2.17.1

>

Reviewed-by: Fritz Koenig <frkoenig@chromium.org>
diff mbox series

Patch

diff --git a/drivers/media/platform/qcom/venus/hfi_cmds.c b/drivers/media/platform/qcom/venus/hfi_cmds.c
index 4f7565834469..2affaa2ed70f 100644
--- a/drivers/media/platform/qcom/venus/hfi_cmds.c
+++ b/drivers/media/platform/qcom/venus/hfi_cmds.c
@@ -278,7 +278,7 @@  int pkt_session_etb_encoder(
 		struct hfi_session_empty_buffer_uncompressed_plane0_pkt *pkt,
 		void *cookie, struct hfi_frame_data *in_frame)
 {
-	if (!cookie || !in_frame->device_addr)
+	if (!cookie)
 		return -EINVAL;
 
 	pkt->shdr.hdr.size = sizeof(*pkt);