Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ca3aa52 authored by Gaurav Jindal's avatar Gaurav Jindal
Browse files

msm: camera: isp: Add support for YUV422 10 bit



Add support for YUV422 format 10 bit in CSID and bus drivers.

CRs-Fixed: 2923254
Change-Id: Icecc367d88509b9ed08f5d0cab8c4da788886a0a
Signed-off-by: default avatarGaurav Jindal <gjindal@codeaurora.org>
parent a1e44aa4
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -78,6 +78,7 @@ static int cam_ife_csid_is_ipp_ppp_format_supported(
	case CAM_FORMAT_DPCM_14_10_14:
	case CAM_FORMAT_DPCM_12_10_12:
	case CAM_FORMAT_YUV422:
	case CAM_FORMAT_YUV422_10:
		rc = 0;
		break;
	default:
@@ -260,6 +261,10 @@ static int cam_ife_csid_get_format_rdi(
		*decode_fmt  = 0x1;
		*plain_fmt = 0x0;
		break;
	case CAM_FORMAT_YUV422_10:
		*decode_fmt  = 0x2;
		*plain_fmt = 0x1;
		break;
	default:
		rc = -EINVAL;
		break;
@@ -342,6 +347,10 @@ static int cam_ife_csid_get_format_ipp_ppp(
		*decode_fmt  = 0x1;
		*plain_fmt = 0;
		break;
	case CAM_FORMAT_YUV422_10:
		*decode_fmt  = 0x2;
		*plain_fmt = 0x1;
		break;
	default:
		CAM_ERR(CAM_ISP, "Unsupported format %d",
			in_format);
+1 −0
Original line number Diff line number Diff line
@@ -1108,6 +1108,7 @@ static int cam_vfe_bus_ver3_acquire_wm(
		case CAM_FORMAT_PLAIN128:
		case CAM_FORMAT_PLAIN32_20:
		case CAM_FORMAT_YUV422:
		case CAM_FORMAT_YUV422_10:
			rsrc_data->width = CAM_VFE_RDI_BUS_DEFAULT_WIDTH;
			rsrc_data->height = 0;
			rsrc_data->stride = CAM_VFE_RDI_BUS_DEFAULT_STRIDE;
+3 −2
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
/*
 * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
 */

#ifndef __UAPI_CAM_DEFS_H__
@@ -179,7 +179,8 @@ struct cam_iommu_handle {
#define CAM_FORMAT_PLAIN32                      47
#define CAM_FORMAT_ARGB_16                      48
#define CAM_FORMAT_PLAIN16_10_LSB               49
#define CAM_FORMAT_MAX                          50
#define CAM_FORMAT_YUV422_10                    50
#define CAM_FORMAT_MAX                          51

/* Pixel Patterns */
#define PIXEL_PATTERN_RGRGRG                    0x0