Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3361610pxb; Mon, 17 Jan 2022 18:36:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6t+D8549mWG1QjeLj8N79jOEIKSA6sEst2PvbIY4K19eBaItdKW9oP9DDYAivQXTRFgeA X-Received: by 2002:a17:90b:1c91:: with SMTP id oo17mr37840624pjb.58.1642473383548; Mon, 17 Jan 2022 18:36:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642473383; cv=none; d=google.com; s=arc-20160816; b=lgZk0Q4VDbgemDKZjZ4uOaxfmgKTEmPyrKmpMnw6B+InqNOh5w4R0t4mEEjeOW6QdC cNEPbv8L/8jQZhf3srvds/CNT/ORwBeaahA+aLc40OKrHXvtGdokyQdGpGjvLLIc9HJe sYDBoUInBLDAYVIGM/+BYQTxjmAgX1WZkYlwE8Ht7mX/YQn8l8Nhb2utqpzNW8DIbLDI 3Fv8V1hXrRPupHkIDunVNTaSob32sW+kyGcApL8u9/a+tgO36+vQv8Er1Y10IhTPMUqR YRVhkHgmJ9Oj8+GJnurZnI0Ojeof+z0ENR2DPAwI5xqt7AGhhFGDtvK6MLZu0OXcJKqw Muqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bgKGUZV9Ow5lTkYXyL6TgBgt5kr++QVKt0rnOqG3iUs=; b=OR8gpv6pbsK15hACmKCNqZYErigaADWKhoAP4FxaaHVkHeDr6K5MmEDL5w8xMQcTY9 KVYWYmYQfCDCXRjXlGwWnepB9ixLggZ2M0PS9vuVQRLGFB+4zC6HUqqUNst02KNEB1UU 4pXFKofzuFJk9nPCRMPz71cuKDt8nMbhcFxUF+Bkw4B6jwauseOukmoK5ghIZXgQwjYA BPSwptRb15eJHjJHW5D59ZtNMrvtznjWhuXdHp7NU09dzp8c17HNp22MXJKj820XOQGb tqg6jgIlyc0dBwDJu0swg5zIrZltTKco/nz+l2U5rFp8OWATk1uMnwt5J4ywNBjENkNc 2O6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hPKEO6Rb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 g14si14507784plo.129.2022.01.17.18.36.11; Mon, 17 Jan 2022 18:36:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=hPKEO6Rb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S240765AbiAQP4n (ORCPT + 99 others); Mon, 17 Jan 2022 10:56:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240728AbiAQP4d (ORCPT ); Mon, 17 Jan 2022 10:56:33 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CF0FC06174E for ; Mon, 17 Jan 2022 07:56:33 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id f141-20020a1c1f93000000b003497aec3f86so541448wmf.3 for ; Mon, 17 Jan 2022 07:56:33 -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 :mime-version:content-transfer-encoding; bh=bgKGUZV9Ow5lTkYXyL6TgBgt5kr++QVKt0rnOqG3iUs=; b=hPKEO6RbEwtanUyhH29rvXKo7a1lDWirpsEPcwqroYORwk+SWdfHWYOXwGMT8nZI6y 1vVWcA91VsvtCa37CzG6TguLIZEU1BCUS9vbcN1YBZ60OgrWdL67IDUi9aoQH63yK3a4 FX+cYYf3/dryh3+4w8aHRaXMiklOxdeu/wF8cw1FjWUiJtk/dy4jajBQp9F/wvMV3DGj M7K5H/o/nQLx3B3Kqb6dEKDvDdanuvbwLm+x0vvxU+FLZ9nRQiW+IzGRQFPZZ0m1FhJC hq/nD44am+dUSAAc4k+POFiojdxs9Wgkr5V1AxF1HrQzVebKwZa9MadF+6aatbKZVC8v qG2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bgKGUZV9Ow5lTkYXyL6TgBgt5kr++QVKt0rnOqG3iUs=; b=KiKUd8Htye3099pTSzdL1wMyLDp/4k8DUwq05wZv1ppyB7/t5uPZ8R1TJgudlgY3lM nKSTdSimUHCj3VmzheJDT10D82SBu+n7fihyCu2LcDq7SfXSzMxwVLbp3EysXFtdRqAK YVF/hqRFXnRFrJGXoSuMitLobiFDNzDX6+01yG9UwdmUBzYkpA31s/LRzdpsyG/pG6ER 17YA9wgQmGan0m/LwdD8Qug1hcQIR2ts4CGbNJGoKi2go0IIcpyYuOBZcd1qRAnkyw/H NhhtdB5B7p7xrqp407f9v7YOzYZVyC7OhS+E31nzxgISEhNCB2FJI/6f1Sj6jivUGgwm rzww== X-Gm-Message-State: AOAM531ne8oCNdRvN9SHA/saWWSdC4Oh3R/edvz4G8msJmtZcbEETmzg 5J6y2YdIKH3oNqASGCOc/Y+pDoOcIUGxig== X-Received: by 2002:a5d:4bd2:: with SMTP id l18mr19767924wrt.445.1642434992091; Mon, 17 Jan 2022 07:56:32 -0800 (PST) Received: from localhost.localdomain (hst-221-60.medicom.bg. [84.238.221.60]) by smtp.gmail.com with ESMTPSA id i82sm15542900wma.23.2022.01.17.07.56.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 07:56:31 -0800 (PST) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Cc: hverkuil-cisco@xs4all.nl, Stanimir Varbanov Subject: [PATCH v3 6/6] venus: vdec: Use output resolution on reconfigure Date: Mon, 17 Jan 2022 17:55:59 +0200 Message-Id: <20220117155559.234026-7-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220117155559.234026-1-stanimir.varbanov@linaro.org> References: <20220117155559.234026-1-stanimir.varbanov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When recalculate output buffer size we have to take into account the output resolution from the firmware received during event change notification. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/vdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c index c8261c6cb0fb..76716ceb3e18 100644 --- a/drivers/media/platform/qcom/venus/vdec.c +++ b/drivers/media/platform/qcom/venus/vdec.c @@ -701,8 +701,8 @@ static int vdec_output_conf(struct venus_inst *inst) struct venus_core *core = inst->core; struct hfi_enable en = { .enable = 1 }; struct hfi_buffer_requirements bufreq; - u32 width = inst->out_width; - u32 height = inst->out_height; + u32 width = inst->width; + u32 height = inst->height; u32 out_fmt, out2_fmt; bool ubwc = false; u32 ptype; -- 2.25.1