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

Commit 0b13113b authored by Sreesudhan Ramakrish Ramkumar's avatar Sreesudhan Ramakrish Ramkumar
Browse files

msm: camera: Add support to query ISP ID



Where there are more than one ISP hardware available, v4l-subdev
nodes are created in the order in which it is probed. ISP hardware
has different capabilities. User space driver needs to differentiate
these hardware. Add support to return ISP id of particular v4l-subdev
node to user space driver. The ISP id comes from kernel dtsi node
which the ideal representation of ISP hardware.

Change-Id: Ica19c0264c5d6bdc8434c7232ea2f3e7bb72f4a1
Signed-off-by: default avatarSreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
parent 2b979b24
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -752,6 +752,19 @@ static int msm_isp_send_hw_cmd(struct vfe_device *vfe_dev,
		}
		break;
	}
	case GET_ISP_ID: {
		uint32_t *isp_id = NULL;

		if (cmd_len < sizeof(uint32_t)) {
			pr_err("%s:%d failed: invalid cmd len %u exp %u\n",
				__func__, __LINE__, cmd_len,
				sizeof(uint32_t));
			return -EINVAL;
		}

		isp_id = (uint32_t *)cfg_data;
		*isp_id = vfe_dev->pdev->id;
	}
	}
	return 0;
}
+1 −0
Original line number Diff line number Diff line
@@ -246,6 +246,7 @@ enum msm_vfe_reg_cfg_type {
	VFE_READ_DMI_32BIT,
	VFE_READ_DMI_64BIT,
	GET_MAX_CLK_RATE,
	GET_ISP_ID,
};

struct msm_vfe_cfg_cmd2 {