From patchwork Mon Jun 20 21:06:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 16296 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 8FFA4BD808 for ; Mon, 20 Jun 2022 21:07:24 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 37A3165640; Mon, 20 Jun 2022 23:07:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1655759244; bh=NhWJX8baJmY2Lg/g4qHcVCR2X8bC93y7/0kBcGOYSfo=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=n/P6AQZiDRYFKs15jWX8cI0/jEtGUVCGlfWNktpogZZ8IumgEPwdQJh76feas7BiN u6I7o93At74ul+oZeokbeZnTlRmZLE9s69duybaObZOArrwQ8Ne1thG+V+0+VWkCPO zOudASytRQ4HmqTa53QHOu4bQDKsTQZ5g4AIZg+mQjB4U5xNsv92B74tF+g97Ix52r ZiVjzzw5aDbHKIo6pztCqdXRg+wRTUIH6cI/qY1GvUJHll/QLeGBvfxoed3mkVUUgr AId5MjmsJIb4c8TW1sS6ZMSM21hJM5GSxuwGoJ4oPASIqlRwNfogIuGB2bPZ522WPJ zuszV0Gj2qjeQ== 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 87A3465638 for ; Mon, 20 Jun 2022 23:07:18 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="gCzx0neR"; dkim-atps=neutral Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 26731104 for ; Mon, 20 Jun 2022 23:07:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1655759238; bh=NhWJX8baJmY2Lg/g4qHcVCR2X8bC93y7/0kBcGOYSfo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gCzx0neRofHkr5RQTd2G4TGbeZ+b8Dq/Of60RitzBa6FTm9exNL9PVeaY9gNmHCme 7qPFlyhFQSNxnPV+DnIXZYtIvWm186u3ZorRjXrf8gzSDEcVJizZI+jxfMBuisOnN2 oayrqi0FnLSlreD4MB9jKV4cgMGlCs/rTVHAJYT8= To: libcamera-devel@lists.libcamera.org Date: Tue, 21 Jun 2022 00:06:57 +0300 Message-Id: <20220620210658.20288-4-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220620210658.20288-1-laurent.pinchart@ideasonboard.com> References: <20220620210658.20288-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 3/4] utils: rkisp1: Fix pixel format for raw capture 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: , X-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The regexp to convert the raw pixel media bus code to a pixel format is incorrect. Fix it. Signed-off-by: Laurent Pinchart Reviewed-by: Paul Elder --- utils/rkisp1/rkisp1-capture.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/rkisp1/rkisp1-capture.sh b/utils/rkisp1/rkisp1-capture.sh index eee6b8027261..2549779d0f78 100755 --- a/utils/rkisp1/rkisp1-capture.sh +++ b/utils/rkisp1/rkisp1-capture.sh @@ -171,7 +171,7 @@ mediactl="media-ctl -d $mdev" get_sensor_format "$sensor" if [[ $raw == true ]] ; then - capture_format=$(echo $sensor_mbus_code | sed 's/_[0-9X]$//') + capture_format=$(echo $sensor_mbus_code | sed 's/_[0-9X]*$//') capture_mbus_code=$sensor_mbus_code else capture_format=YUYV