[libcamera-devel] [PATCH 2/2] libcamera: camera_sensor: Add AR0521 sensor properties

Laurent Pinchart laurent.pinchart at ideasonboard.com
Wed Nov 23 19:21:31 CET 2022


Hi Jacopo,

Thank you for the patch.

On Mon, Nov 07, 2022 at 02:22:13PM +0100, Jacopo Mondi via libcamera-devel wrote:
> Add an entry to the sensor properties for OnSemi AR0521.
> 
> The chip manual list one additional test pattern "PN9 Link integrity
> test pattern" not supported by the mainline Linux driver.

As that's a CCS pattern, it would be nice to support it.

> Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>

Assuming you've compared the test patterns to the CCS specification,

Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>

> ---
>  src/libcamera/camera_sensor_properties.cpp | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
> index e5f27f06eb1d..d4ee869bf20b 100644
> --- a/src/libcamera/camera_sensor_properties.cpp
> +++ b/src/libcamera/camera_sensor_properties.cpp
> @@ -52,6 +52,15 @@ LOG_DEFINE_CATEGORY(CameraSensorProperties)
>  const CameraSensorProperties *CameraSensorProperties::get(const std::string &sensor)
>  {
>  	static const std::map<std::string, const CameraSensorProperties> sensorProps = {
> +		{ "ar0521", {
> +			.unitCellSize = { 2200, 2200 },
> +			.testPatternModes = {
> +				{ controls::draft::TestPatternModeOff, 0 },
> +				{ controls::draft::TestPatternModeSolidColor, 1 },
> +				{ controls::draft::TestPatternModeColorBars, 2 },
> +				{ controls::draft::TestPatternModeColorBarsFadeToGray, 3 },
> +			},
> +		} },
>  		{ "hi846", {
>  			.unitCellSize = { 1120, 1120 },
>  			.testPatternModes = {

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list