Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1137287pxb; Fri, 1 Oct 2021 04:27:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuu0m3LjK+4dIVFr4pGvyWwg/WliORCbp47GOHi78O9k4x108xUf7Ey/KQafxbPbPZWpYF X-Received: by 2002:a63:1d58:: with SMTP id d24mr9433364pgm.316.1633087650292; Fri, 01 Oct 2021 04:27:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633087650; cv=none; d=google.com; s=arc-20160816; b=uLFYes38PbMMsmnCpF+KeeuI4Dik8mQi3h13dnVlKUfg/Ist/bIf5r8KgztqG+FrC6 xrASYJ5gBmhnDGEnNNHwxTHSHyGGKYIm2rG+XKvjimjscopl3bO58xK9YfVhdSqJ0O7H ccxtNX3oQ8ywBdbdPbI8o3gCo1gAHJuTl4frKw7rUbiGBYCtFkE1RQNAQBNKOi9vV//F 1/aGJk5pg5m/3uGqFTju0PbCnG+mfXkxZtVwkSa0QmceCZBGC462hrtvKFY1vOEomkJP wIiyMgqIctIEEh42g3Hd77xkBzjEl3bfHbtwzZC8kTFKegoFBYCabNw/C3lfGjQPlVYx Rl6g== 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=m6aY0YpHcXZ+qqrCq04NObneuOCOj6Id6UG/ellzwnU=; b=wb19xitxzr9uPis6cOW5/nomuQavexlvKEa8zAh6pYlyP0iSPU8D/2ddWxIi5fmPo4 zth/xD03ZF/GdWzX3mqpCdWTxWeOZCJehtPxSo8IdCMhpnFvWRE2/UdOzePC7pkyQlXg 92BxjSEhAM4QSvI6N29+IXr8dOupvkyalApfOwDs1nscbht4gWnVXdynyLAFFLx5q2zS vJk6ykBWjTaKbEzpFa+mFQw/dLrFYVWZO5Mw6sGNFC48cGK7179ldMvAGWvbXDgw+/nH K9K1WZJRNHyVgsVCrmypIn6G297K1bA1q4WpND5bjUaS5A3+dJJcawmV6CDMwFu/NgJZ XM9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=B9X59kj+; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v184si5352680pgd.3.2021.10.01.04.27.12; Fri, 01 Oct 2021 04:27:30 -0700 (PDT) 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=@chromium.org header.s=google header.b=B9X59kj+; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353775AbhJAL12 (ORCPT + 99 others); Fri, 1 Oct 2021 07:27:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353779AbhJAL1M (ORCPT ); Fri, 1 Oct 2021 07:27:12 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F17EC06177B for ; Fri, 1 Oct 2021 04:25:28 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id d207-20020a1c1dd8000000b00307e2d1ec1aso6497993wmd.5 for ; Fri, 01 Oct 2021 04:25:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=m6aY0YpHcXZ+qqrCq04NObneuOCOj6Id6UG/ellzwnU=; b=B9X59kj+AFnqGE71dUdCYqiWLG0i4banTRVSEHKFUt8ClCeOxNjUFs6W0mwGHee9lD vEVy8f7NtFPYiTBFGJbtwAtvjxr3RCbS2KxNXBMLAa00YpIE7pH46tqHRZkSOY2fhhGS yqE5sMCPvzr9wdl/lbPwF+fYHSBQWuv0nSgbU= 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=m6aY0YpHcXZ+qqrCq04NObneuOCOj6Id6UG/ellzwnU=; b=5xnB49oQwB/dJ07AP7VEKPn3ZMT3LGq4/bX2dI+LW0FWawE8TkTUVHzfGizc7pSS8/ 533yNBJyCbX9H1bis9+bmX/mOCofwr0krhX18/LPH5ueOxBpueVQ2N/L7FY0plbQkboq A6K4bPw4nV8sKPFPmcZex3KYkFYOX1mI0osZcIUjM/hCGuyaKUAgEu3m8MN04lIlYGFS KEu1ROTektU2M7AszU7i+hAL7/eme/Wgm7puIuHYXet4R8L8gmj54R1jgeAbAbT6M7kQ g6WbyBw/NZOkwjYYZoiioU3h7eQ3MOMIsk6UWEz1kF3ERKZxnxq42eh2nYx0bLGr3HWc u0bg== X-Gm-Message-State: AOAM5325FC7De525XwMd+YGM9XksGkGgjb5T/QRU4e1dvbekOSzuqdns 62klv6UoA7FYCRtav1cX+7UyNA== X-Received: by 2002:a05:600c:1553:: with SMTP id f19mr4000273wmg.66.1633087526791; Fri, 01 Oct 2021 04:25:26 -0700 (PDT) Received: from beni.c.googlers.com.com (216.131.76.34.bc.googleusercontent.com. [34.76.131.216]) by smtp.gmail.com with ESMTPSA id x17sm5530958wrc.51.2021.10.01.04.25.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Oct 2021 04:25:26 -0700 (PDT) From: Ricardo Ribalda To: Mauro Carvalho Chehab , Yong Zhi , Bingbu Cao , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Chiranjeevi Rapolu , Sakari Ailus Cc: Ricardo Ribalda Subject: [PATCH v3 4/8] media: ipu3-imgu: imgu_fmt: Handle properly try Date: Fri, 1 Oct 2021 11:25:18 +0000 Message-Id: <20211001112522.2839602-5-ribalda@chromium.org> X-Mailer: git-send-email 2.33.0.800.g4c38ced690-goog In-Reply-To: <20211001112522.2839602-1-ribalda@chromium.org> References: <20211001112522.2839602-1-ribalda@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For a try_fmt call, the node noes not need to be enabled. Fixes v4l2-compliance fail: v4l2-test-formats.cpp(717): Video Output Multiplanar is valid, but no TRY_FMT was implemented test VIDIOC_TRY_FMT: FAIL Signed-off-by: Ricardo Ribalda --- drivers/staging/media/ipu3/ipu3-v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/ipu3/ipu3-v4l2.c b/drivers/staging/media/ipu3/ipu3-v4l2.c index 1813bb29e362b..bf3cd1d576280 100644 --- a/drivers/staging/media/ipu3/ipu3-v4l2.c +++ b/drivers/staging/media/ipu3/ipu3-v4l2.c @@ -696,7 +696,7 @@ static int imgu_fmt(struct imgu_device *imgu, unsigned int pipe, int node, /* CSS expects some format on OUT queue */ if (i != IPU3_CSS_QUEUE_OUT && - !imgu_pipe->nodes[inode].enabled) { + !imgu_pipe->nodes[inode].enabled && !try) { fmts[i] = NULL; continue; } -- 2.33.0.800.g4c38ced690-goog