From patchwork Mon Jun 1 09:28:06 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Hou X-Patchwork-Id: 26813 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id EBAD1BDCBC for ; Mon, 1 Jun 2026 09:28:13 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id AE6A262FE8; Mon, 1 Jun 2026 11:28:12 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 5DCFA62FE1 for ; Mon, 1 Jun 2026 11:28:11 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id DB2F91A50EC; Mon, 1 Jun 2026 11:28:10 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A49911A0910; Mon, 1 Jun 2026 11:28:10 +0200 (CEST) Received: from lsvm11u0000124.swis.ap-northeast-2.aws.nxp.com (lsvm11u0000124.swis.ap-northeast-2.aws.nxp.com [10.52.8.111]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 6A5F1180004C; Mon, 1 Jun 2026 17:28:09 +0800 (+08) From: Qi Hou To: libcamera-devel@lists.libcamera.org Cc: nicolas@ndufresne.ca, jared.hu@nxp.com, qi.hou@nxp.com, julien.vuillaumier@nxp.com Subject: [PATCH] LF-18392 libcamera: software_isp: debayer_egl: Demote unsupported format log to Debug Date: Mon, 1 Jun 2026 18:28:06 +0900 Message-Id: <20260601092806.2745728-1-qi.hou@nxp.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" From: Hou Qi DebayerEGL::getInputConfig() logs at Error level when it encounters an unsupported input format. This function is called during format enumeration from the simple pipeline handler's tryPipeline(), which iterates over all pixel formats reported by the video capture device, including non-Bayer formats such as UYVY and YUYV. The caller already handles the failure gracefully by checking the return value and falling back to direct passthrough when the debayer returns no output formats. Since encountering a non-Bayer format during enumeration is expected behaviour rather than an error condition, demote the log message from Error to Debug. This aligns with DebayerCpu::getInputConfig(), which logs at Info level in the same situation. Signed-off-by: Qi Hou Reviewed-by: Kieran Bingham --- src/libcamera/software_isp/debayer_egl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcamera/software_isp/debayer_egl.cpp b/src/libcamera/software_isp/debayer_egl.cpp index 8f0c229f..1bd1efae 100644 --- a/src/libcamera/software_isp/debayer_egl.cpp +++ b/src/libcamera/software_isp/debayer_egl.cpp @@ -73,7 +73,7 @@ int DebayerEGL::getInputConfig(PixelFormat inputFormat, DebayerInputConfig &conf return 0; } - LOG(Debayer, Error) + LOG(Debayer, Debug) << "Unsupported input format " << inputFormat; return -EINVAL;