msm: camera: isp: Add format and alignment for type 3 PD
Add applicable format and alignment properties for Sparse PD client. CRs-Fixed: 2841729 Change-Id: I5f3c5c195793ce4758b1393653b14fb49ac039c6 Signed-off-by: Mukund Madhusudan Atre <matre@codeaurora.org>
Цей коміт міститься в:
@@ -1127,10 +1127,20 @@ static int cam_vfe_bus_ver3_acquire_wm(
|
||||
|
||||
} else if (vfe_out_res_id == CAM_VFE_BUS_VER3_VFE_OUT_SPARSE_PD) {
|
||||
switch (rsrc_data->format) {
|
||||
case CAM_FORMAT_PLAIN16_16:
|
||||
case CAM_FORMAT_PLAIN8:
|
||||
rsrc_data->stride = ALIGNUP(rsrc_data->width * 2, 8);
|
||||
rsrc_data->en_cfg = 0x1;
|
||||
break;
|
||||
case CAM_FORMAT_PLAIN16_8:
|
||||
case CAM_FORMAT_PLAIN16_10:
|
||||
case CAM_FORMAT_PLAIN16_12:
|
||||
case CAM_FORMAT_PLAIN16_14:
|
||||
rsrc_data->stride = ALIGNUP(rsrc_data->width * 2, 8);
|
||||
rsrc_data->en_cfg = 0x1;
|
||||
/* LSB aligned */
|
||||
rsrc_data->pack_fmt |= (1 <<
|
||||
ver3_bus_priv->common_data.pack_align_shift);
|
||||
break;
|
||||
default:
|
||||
CAM_ERR(CAM_ISP, "Invalid format %d out_type:%d",
|
||||
rsrc_data->format, vfe_out_res_id);
|
||||
|
Посилання в новій задачі
Заблокувати користувача