From patchwork Tue Nov 19 07:37:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harvey Yang X-Patchwork-Id: 21983 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 D8C1DC326B for ; Tue, 19 Nov 2024 07:39:27 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id AF91A65904; Tue, 19 Nov 2024 08:39:26 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="dRyelxm+"; dkim-atps=neutral Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 5942062C8C for ; Tue, 19 Nov 2024 08:39:24 +0100 (CET) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-20cb47387ceso5353935ad.1 for ; Mon, 18 Nov 2024 23:39:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1732001962; x=1732606762; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Rp0SQ7zY8bQMP/xE8FqnVgOWlupPWvt3PF0GdvNYUaE=; b=dRyelxm+lRtnHNpnlLWjwmC/L62bIGCMa31JbZicY9RFgKAxf7fpJ0JKZmpePX3L1Y MG2ZkMD05iAZ7XrggXnUVFpMbOCxO7i3v4U++8QQm3OIMnM76YiJkAbRT9sSmno1TgKS 4lJcMi9szADBltRT3mOvtl8naMzCTInwQWylo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732001962; x=1732606762; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Rp0SQ7zY8bQMP/xE8FqnVgOWlupPWvt3PF0GdvNYUaE=; b=YlFO5V1Rua2rr5S1fhp8M7pgBFsKTTvhOgQ9/Gjh+ESqdyKs89/dHQriwmL946rp5r em5tospCkYv+F/utVpiU1x6y+gQ2tnh/3kTEC12Iz5BQ0/exa0x0DZ2yHlZa1ZKwQxR4 sglohPd1fAbojfCuybk27IhU84F03zd26EiP77XFn4DquIaG1kIbtijoZB/xllEdUyxH YUQwPN0K9KZvJW42yGLyLdTFsS24MkQKrolF4Nyv9MF+uPby5+VueOLtOb21N3gifAke OxBlFr6WrhPgPdojQ+4vzkSPy1QOQOynVOHQKwawTsb5xgbHmE6O81wmSCiUyXPurfbP 59fQ== X-Gm-Message-State: AOJu0Yy/rO9InkcsxYRac+iO5VI8uQx8R8pdH/4tVmbCy3YAfFZ7ZxJF /4al13fYZSvYgUVXVGt+DPHD4Ak8Cd5Hvclb/Z/F6Iy1tO2vtVPOEdyjLw06OgVKzK1UntB6JFo = X-Google-Smtp-Source: AGHT+IHqMAp9ub2vwy0p++/nWNPT0S0Be4SgKYyIPJPrIkggwS3ziaZQdGhDEZWsMOA+ng0GsIn4Pw== X-Received: by 2002:a17:902:ce92:b0:212:26e:712a with SMTP id d9443c01a7336-212026e7571mr135413765ad.25.1732001962522; Mon, 18 Nov 2024 23:39:22 -0800 (PST) Received: from chenghaoyang-low.c.googlers.com.com (27.247.221.35.bc.googleusercontent.com. [35.221.247.27]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-211d0ec85fasm68548445ad.81.2024.11.18.23.39.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2024 23:39:22 -0800 (PST) From: Harvey Yang To: libcamera-devel@lists.libcamera.org Cc: Harvey Yang Subject: [PATCH v3 0/2] Add camera sensor properties for ciri Date: Tue, 19 Nov 2024 07:37:34 +0000 Message-ID: <20241119073913.500732-1-chenghaoyang@chromium.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog MIME-Version: 1.0 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" Hi folks, This patch adds camera sensor properties for sensors on ciri. It's required to produce correct color bars test pattern instead of random pattern. Tested on mtkisp7 branch with ChromeOS tast test `camera.HAL3Frame`. This patch passed gitlab pipeline: https://gitlab.freedesktop.org/chenghaoyang/libcamera/-/pipelines/1312819 The source file includes quite some legacy code that has linter warnings. This patch follows the same legacy format, so there are some lint warnings as well. v3: - Updated commit messages. - Added proper linear conversion rules for the two sensors. v2: - Removed hi1339 that was not upstreamed and deprecated. - Added CameraSensorHelper implementations, while might not end up using. - Split into two patches for two sensors. BR, Harvey Harvey Yang (2): libcamera: libipa: camera_sensor: Add MediaTek gc05a2 sensor properties libcamera: libipa: camera_sensor: Add MediaTek gc08a3 sensor properties src/ipa/libipa/camera_sensor_helper.cpp | 22 +++++++++++++++++++ .../sensor/camera_sensor_properties.cpp | 14 ++++++++++++ 2 files changed, 36 insertions(+)