From patchwork Mon Aug 3 16:18:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 9149 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 D930EBD87B for ; Mon, 3 Aug 2020 16:18:29 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9FE8061ADE; Mon, 3 Aug 2020 18:18:29 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ohCO7UPF"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 38A4460396 for ; Mon, 3 Aug 2020 18:18:26 +0200 (CEST) Received: from Q.local (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CA863FCC; Mon, 3 Aug 2020 18:18:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1596471506; bh=X9wiBEZ2oKUPYHLOBPD207/2aKgscdykfwGfxeMnlR8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ohCO7UPFEadyBZsweWDKxd0oqMc/Eh111JOmbXYo66SK9kk5T2r092Sv6M5ddSK9R c51zofbIOSYAp6XUDydArbHx7ppCWVwOhVtyj6opRgZzDfB0PMLvOWHbK6QA4sj2b+ XuVHYy96Uwhw+jnvgHkBr812+32UQZVlCdy0PmHI= From: Kieran Bingham To: libcamera devel Date: Mon, 3 Aug 2020 17:18:13 +0100 Message-Id: <20200803161816.107113-10-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200803161816.107113-1-kieran.bingham@ideasonboard.com> References: <20200803161816.107113-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 09/12] android: camera_device: Report configuration changes from validate() 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" When we call validate on a configuration, if there are any adjustments on the configuration, we fail without showing why. Display the stream configuration after the validate stage to aid debugging stream startup failures. Signed-off-by: Kieran Bingham Reviewed-by: Jacopo Mondi --- src/android/camera_device.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp index 9f3f3315aed4..ae52a5ca8b86 100644 --- a/src/android/camera_device.cpp +++ b/src/android/camera_device.cpp @@ -987,7 +987,11 @@ int CameraDevice::configureStreams(camera3_stream_configuration_t *stream_list) case CameraConfiguration::Valid: break; case CameraConfiguration::Adjusted: - LOG(HAL, Info) << "Camera configuration adjusted"; + LOG(HAL, Info) << "Camera configuration adjusted:"; + + for (const StreamConfiguration &cfg : *config_) + LOG(HAL, Info) << " : " << cfg.toString(); + config_.reset(); return -EINVAL; case CameraConfiguration::Invalid: