Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1096305pxm; Thu, 3 Mar 2022 10:12:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmuJ2CnCQub/E4QV8+h4SIkQKAER8pDdB0+xTlkUVMoGdoPC0nvor0DC2khc/D0Hik4Vca X-Received: by 2002:a05:6a00:24c4:b0:4f6:5b15:b39a with SMTP id d4-20020a056a0024c400b004f65b15b39amr8136579pfv.82.1646331126116; Thu, 03 Mar 2022 10:12:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646331126; cv=none; d=google.com; s=arc-20160816; b=KARVjwXk634MnJRvEaKsuv1a/14KseqtZ73eSltzBKFBjkvFuVHtCTNACTR0Fo7Ive DfNDVCJ2m7fGi/n50mZ7lSdtC1h9mLwsFQw0KXBSQQBg+S6YJJSm/jbvf1jFSLIzyzhG 6q1ksJf/nR/IZ5zMCGTVvaENLmWadhMHyYIjBOhAe+XXam/7bBUpER9HymTaaDrVh+aE s2nlPsaC1t3+tTLT22QC8T9nZ6I3TQbJ6ksLX0PpT4oehmoEveyHCyAkIke6v2ilieUc BNR5U9NofRT2ay8Umqiiici9i7u6yesy5fztM/1oJENgH9QR8WIAe8ONMBMX6hL9u8Qh +mow== 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=YafdIIXjvbiubGYXfoC0CDo3WI0sqPS1Vy4XaEToN4Ds4gITtWfKDAmngSACt2ZPJe JpQALx6WgWSqNC6n5OfqGz5ltaeyUOMgIoKAvTlFNe0QPQwyEmmNS9CtcRl/O2xy+nlR 5GglLHepd0p8fuII0lc9OK3h8zzdYE1BFzLnV9+pfqWXbDhTsMOZinz9wpayBKn4tTAm 0H4UeTzv9LbFtQVCxsPKB35jQeu60YnNpVkfQkbopiMMqyVjVFxnGYsSI+ZQ6CPWFwUE +VuT/HdkLtlqjsfxgRuVnHNZAZE+cXgcy4tueyhM4fvpqirRYVZJP7ZUeJd0vJUL03qt 1U8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TWIVaeFL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020a056a000ad400b004e057a894aesi3014916pfl.176.2022.03.03.10.11.47; Thu, 03 Mar 2022 10:12:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TWIVaeFL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234259AbiCCPH4 (ORCPT + 99 others); Thu, 3 Mar 2022 10:07:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234317AbiCCPHi (ORCPT ); Thu, 3 Mar 2022 10:07:38 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1578F190B43 for ; Thu, 3 Mar 2022 07:06:48 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id r187-20020a1c2bc4000000b003810e6b192aso3433014wmr.1 for ; Thu, 03 Mar 2022 07:06:48 -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=TWIVaeFLPw3aJf4W+SVAkQayYuhXJUaCDckHLmfl2sqjIvYVf7A5d2VIxXHhUEbctG /0CAr73TCB/72Sal9mTRhAM9U9G8N1SnJYOPhYZBW0WFoKlNirW+FCHEHz5490eWcJK/ fvms0rlfWgRfM/E+E2ImynSk5ar/CoKEqmCzqm68l0T64lMASIOCEDDEbC33Ju9BCn99 3ouJryNh373bn7HuUoSXXp25UZUl7HEocdQhGvcfbqUrMH1BZQr/7eG5R6jalEeIsyPl ZOFk75SPzWG1hf/PJ2fu63xfirLVFvv/hPBxLvIRpOdKBEHX0FvPRY2/5xuW5t5/VeBX FZIA== 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=P5LlSDm8nQ1S2eaHy91fgrhrAFby8fZxWP1kpxIap9O4Hm7zJrZWmKpu2O0lFri3k8 cAlHi6AcClP6CWAjuPvkaUwLUvpKZ6JjMj7aDM/tsaBPAEABFAWm6flKBp3FHnoeKAoE 1dAtZw5PnUxX3GluNySF8cvdXwWihSN0/Az+ZwmtsLQKIoGgiO//KIhgD+VGMNP7IywF UcgGZNJYYcc0gzTGKEqCVukfvRhjlrLJwgCOeg4uRjxiBVygnMB0wxgimBvzR9PdD03g cvPOU7sfDhpq76m0ElaZx03Pr2nrv5rUwSSJkvseRrhRrpl/75fIntCbaQBDIdGn+PUq 5s2A== X-Gm-Message-State: AOAM532DNMCrbCxGCgMYk8LQ61yqVz5eCtDobUI8aCZW2eUIhCUOSZTP 4jYk8fZQa7rCtNb6ZvXkLQNI6A== X-Received: by 2002:a1c:f70a:0:b0:37c:533d:d296 with SMTP id v10-20020a1cf70a000000b0037c533dd296mr4022986wmh.147.1646320007507; Thu, 03 Mar 2022 07:06:47 -0800 (PST) Received: from localhost.localdomain (hst-221-14.medicom.bg. [84.238.221.14]) by smtp.gmail.com with ESMTPSA id o16-20020a05600c511000b0038141b4a4edsm10757072wms.38.2022.03.03.07.06.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 07:06:47 -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, Nicolas Dufresne , Stanimir Varbanov Subject: [PATCH v4 6/6] venus: vdec: Use output resolution on reconfigure Date: Thu, 3 Mar 2022 17:06:36 +0200 Message-Id: <20220303150636.577063-7-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220303150636.577063-1-stanimir.varbanov@linaro.org> References: <20220303150636.577063-1-stanimir.varbanov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,TVD_PH_BODY_ACCOUNTS_PRE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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