From patchwork Wed Nov 11 14:37:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 11897965 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AB9831391 for ; Wed, 11 Nov 2020 14:40:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 80263207BB for ; Wed, 11 Nov 2020 14:40:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GnjXvNlH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727115AbgKKOkV (ORCPT ); Wed, 11 Nov 2020 09:40:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727103AbgKKOid (ORCPT ); Wed, 11 Nov 2020 09:38:33 -0500 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED210C061A4A for ; Wed, 11 Nov 2020 06:38:28 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id r17so2779567wrw.1 for ; Wed, 11 Nov 2020 06:38:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2CVxiw78RvuEwO3JJMPL80Z3ql7fTAJblZZgActuTxc=; b=GnjXvNlHccEzofSPCStx3HQZTpOGU9JVteupoMiWdOT7dr0PNDBfdvXpyggaGk9Qmj xLs+EmoFXmagv5kyKvDL+eCltQJBGxRTSxKsqyjW51wE8GCj8Nqlmni7ziIgF+4uQHCo elNLwXhQJa/CrMhLSHNY+pJc3UINTByhv6tiU+81lrtzWbsyVolO8QbFQafwaPnlI7fp RXDAuV5tLxFog2a63wkAk4hgCQqDddb8Q2Dtj4ggKKu6diUbSRE/kpYV1IYd6ShmA86k QAO13s0JvSL58opvp7GVWl7xQIbRJ6zZ3g9cDuAkrL3W8apbqertuGQZUFwQERhvWSGU TCsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2CVxiw78RvuEwO3JJMPL80Z3ql7fTAJblZZgActuTxc=; b=QxBxE/mNiooa2SBmjEAqtyq2VaGVQsa6+g+EUYPRjT7HkCsedT/YH84EMNXhRBHtp3 j1sDlqER7uSelLw2/z1xRjUE3EuGLVRcLUN4wg/fHIEsIwbWCv7HBKkmcSJk6j0aM8k4 alqB/7a36bMKn5V3HJ7cF2j5QFEmsR2hWeWiCrqyAASKzH4YK6orLK11hGVe0VX/9Ogi 53g9SdK+SPRaTrZeiQTo7XZmFR72T6gD98MROCREtakeutEBcc0vCqptxl2pk7ItpYhO K8cpqEOaNxdKjZL2fT4pkGXpaAzZZfbJvme2fg6fVAFonWnky3F3eI7w7Fakz7P+lWra yOgg== X-Gm-Message-State: AOAM532LUUmnmrFI4J/sR6Y9ZyIlaIeO++pLFKQoneJMglpbnBAv4QI6 gGp6+h90CTG3fppQu7+/tE1u0Q== X-Google-Smtp-Source: ABdhPJzgjpuQevq0D98kNNwBGspcXhVbH+57+WmmTaTWnZpt8ijERz1XuF3zP4/d5nVBNug9DDgoBw== X-Received: by 2002:a5d:4883:: with SMTP id g3mr30509001wrq.19.1605105507679; Wed, 11 Nov 2020 06:38:27 -0800 (PST) Received: from localhost.localdomain (hst-221-89.medicom.bg. [84.238.221.89]) by smtp.gmail.com with ESMTPSA id b8sm2991405wrv.57.2020.11.11.06.38.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 06:38:27 -0800 (PST) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vikash Garodia , Alexandre Courbot , Fritz Koenig , Stanimir Varbanov Subject: [PATCH v2 3/8] venus: hfi_cmds: Allow null buffer address on encoder input Date: Wed, 11 Nov 2020 16:37:50 +0200 Message-Id: <20201111143755.24541-4-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201111143755.24541-1-stanimir.varbanov@linaro.org> References: <20201111143755.24541-1-stanimir.varbanov@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 Reviewed-by: Fritz Koenig --- 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);