From patchwork Mon Aug 5 15:51:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 1731 Return-Path: Received: from vsp-unauthed02.binero.net (vsp-unauthed02.binero.net [195.74.38.227]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 76F5961616 for ; Mon, 5 Aug 2019 17:51:41 +0200 (CEST) X-Halon-ID: ea336584-b798-11e9-903a-005056917f90 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (unknown [145.14.112.32]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA id ea336584-b798-11e9-903a-005056917f90; Mon, 05 Aug 2019 17:51:40 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Mon, 5 Aug 2019 17:51:33 +0200 Message-Id: <20190805155133.11335-5-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805155133.11335-1-niklas.soderlund@ragnatech.se> References: <20190805155133.11335-1-niklas.soderlund@ragnatech.se> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 4/4] tests: camera-sensor: Drop check on media bus format 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: Mon, 05 Aug 2019 15:51:41 -0000 Linux commit b6c61a6c37317efd ("media: vimc: propagate pixel format in the stream") changes the sensor in the vimc media graph to accept any media bus format set on it. This prevents the camera-sensor test case to verify that a supported media bus format is selected. In lack of a better fix remove the check for media bus format. Signed-off-by: Niklas Söderlund --- test/camera-sensor.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/camera-sensor.cpp b/test/camera-sensor.cpp index 092cbdd8111ce70d..a04b7333daecd9dd 100644 --- a/test/camera-sensor.cpp +++ b/test/camera-sensor.cpp @@ -87,10 +87,8 @@ protected: MEDIA_BUS_FMT_SBGGR10_1X10, MEDIA_BUS_FMT_BGR888_1X24 }, Size(1024, 768)); - if (format.mbus_code != MEDIA_BUS_FMT_SBGGR10_1X10 || - format.size != Size(4096, 2160)) { - cerr << "Failed to get a suitable format, expected 4096x2160-0x" - << std::hex << MEDIA_BUS_FMT_SBGGR10_1X10 + if (format.size != Size(4096, 2160)) { + cerr << "Failed to get a suitable format, expected 4096x2160" << ", got " << format.toString() << endl; return TestFail; }