add(media): add mipi switch and sensor sc202cs. [MIPI_SWITCH][CAMERA_V1.2]

This commit is contained in:
kangjun
2024-12-27 20:12:08 +08:00
parent fb4f7b3baf
commit a2ba6d78f2
32 changed files with 11557 additions and 182 deletions

View File

@@ -1029,8 +1029,9 @@ static int __vin_pipeline_s_stream(struct vin_pipeline *p, int on_idx)
else
vin_warn("large image mode not support isp%d\n", vinc->isp_sel);
} else {
if ((vinc->csi_ch != 0xff) && (vinc->csi_ch & 0x10))
if ((vinc->csi_ch != 0xff) && (vinc->csi_ch & 0x10)){
csic_isp_input_select(vind->id, vinc->isp_sel/ISP_VIRT_NUM, vinc->isp_sel%ISP_VIRT_NUM + 0, vinc->csi_sel, vinc->csi_ch & 0xf);
}
else {
for (i = 0; i < vinc->total_rx_ch; i++)
csic_isp_input_select(vind->id, vinc->isp_sel/ISP_VIRT_NUM, vinc->isp_sel%ISP_VIRT_NUM + i, vinc->csi_sel, i);
@@ -1710,6 +1711,7 @@ static int vin_create_media_links(struct vin_md *vind)
vin_log(VIN_LOG_MD, "created link [%s] %c> [%s]\n",
source->name, '=', sink->name);
} else {
#if defined CONFIG_MIPI_VC
source = &csi->entity;
sink = &isp->entity;
ret = media_create_pad_link(source, SCALER_PAD_SOURCE,
@@ -1717,6 +1719,7 @@ static int vin_create_media_links(struct vin_md *vind)
MEDIA_LNK_FL_ENABLED);
vin_log(VIN_LOG_MD, "created link [%s] %c> [%s]\n",
source->name, '=', sink->name);
#endif
}
#endif
cap_sd = &vinc->vid_cap.subdev;
@@ -1753,7 +1756,7 @@ static int vin_create_media_links(struct vin_md *vind)
vin_log(VIN_LOG_MD, "created link [%s] %c> [%s]\n",
source->name, '=', sink->name);
}
#if !defined CONFIG_MIPI_VC
for (i = 0; i < VIN_MAX_CSI; i++) {
#ifdef SUPPORT_ISP_TDM
struct vin_core *vinc = NULL;
@@ -1780,7 +1783,7 @@ static int vin_create_media_links(struct vin_md *vind)
source->name, '-', sink->name);
}
}
#endif
for (i = 0; i < VIN_MAX_ISP; i++) {
isp = vind->isp[i].sd;
if (isp == NULL)