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: 323471 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp444418ils; Wed, 11 Nov 2020 06:40:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+9yeuiFIARRmtUgJledkI/BPvxZwMg12TYqjdHa4Lg/BjNwU828WEtIS7x43BshHN4Tvf X-Received: by 2002:a17:906:6156:: with SMTP id p22mr24505272ejl.64.1605105622769; Wed, 11 Nov 2020 06:40:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605105622; cv=none; d=google.com; s=arc-20160816; b=fu1Jhv11vi4CaD8peBxa2qujUPs46VcU/2OIHTPHyIDBxCTIo3PKWo9LglAAu1WWKr YLeVulT4ODyxkIS6volsXnrKqMszKF4tiGV0v2AxUFLEbKWWSRb8PnlYcrlamI51HxQi mjscEIvWpJMjt5hCk5tShvEvZNu5Ln1Y3LsZad+gx7/LC3cEu9mwVEbJKlP/abHVaH6t ClGKT6YIg54ex4WuuhUTfZn3mm/IkJ7Oy3AryJk2MJi76GqeG+WqOcjH4DJw1RiE6RV/ mwYkAlLjZ8rne2j8uHHmsnwsKSrbcRIlkZjrgIWvb7GWCnO+Fb2XNaopnW6HbgkAvp2i elCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=2CVxiw78RvuEwO3JJMPL80Z3ql7fTAJblZZgActuTxc=; b=UIcZ27BSSSDLKVplt+8FYgPbncJB/YnQ3z1dxuBLPvEv06THdPc1/HIqNF3/cev8b8 ELBpmOxK9CvroVegD8lCpN1r+6hhddN9xCy+NescO/J5OmKybwnNNW2qG2B5iLm0mfUo Jb2Q0vGH/WzcJqogrOrlIRufHBt2xGwQ6rn+9mVge2tOllN+9LvyL78WQ+zJP6T7jz91 Tf9SQmA71OZgGeLPNr88DmqVFEhTexE7Cvt/5C2PwpKjMxHpCPyZ8yZUTHE6HQqsItRW EztkBRkgOpNrtcR3frqoQArV/MMM1lnWVh5khyPg9Ms51GxerSsOIN5ivWutxv2wle34 fhwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GnjXvNlH; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si1408986eje.365.2020.11.11.06.40.22; Wed, 11 Nov 2020 06:40:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GnjXvNlH; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727115AbgKKOkV (ORCPT + 15 others); 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-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 --- drivers/media/platform/qcom/venus/hfi_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Fritz Koenig 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);