From patchwork Tue Jul 16 05:42:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 1704 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 0950860E3C for ; Tue, 16 Jul 2019 07:42:51 +0200 (CEST) Received: from pendragon.ideasonboard.com (unknown [IPv6:2a00:79e1:abc:3602:59ec:6c:1869:337]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B8174564 for ; Tue, 16 Jul 2019 07:42:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1563255770; bh=7862GVobhQ9PFQYQACjt4VSEVZidDvcoDVsOoiH/0Pw=; h=From:To:Subject:Date:From; b=AaN8yu6jQY1pvyP9KehGvwM1Xg9GrGqxFVR9wRXhqb2p9P+tFl4GGt1K9/IFrbL/L Ar/bD4F2zbPrHMq1yxW8I3m+3RbdvuQdZy2WQ1XIkMMqd88gmmNoAjfF/l7dgrVMrN ssdFIvJtRoTmr2kAEVK2B4/XdLF7zG5X2AliSRQ8= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Tue, 16 Jul 2019 08:42:17 +0300 Message-Id: <20190716054218.22136-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/2] libcamera: pipeline: ipu3: Initialise pixel format to NV12 in new config X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jul 2019 05:42:51 -0000 To avoid printing debugging messages related to stream configuration adjustement when generating a new configuration, set the pixel format explicitly instead of relying on the internal validate() call to do so. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund Reviewed-by: Paul Elder --- src/libcamera/pipeline/ipu3/ipu3.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp index 22987dbf1460..febc867b4d7e 100644 --- a/src/libcamera/pipeline/ipu3/ipu3.cpp +++ b/src/libcamera/pipeline/ipu3/ipu3.cpp @@ -402,6 +402,8 @@ CameraConfiguration *PipelineHandlerIPU3::generateConfiguration(Camera *camera, StreamConfiguration cfg = {}; IPU3Stream *stream = nullptr; + cfg.pixelFormat = V4L2_PIX_FMT_NV12; + switch (role) { case StreamRole::StillCapture: /*