msm: camera: isp: Update Bus client settings
Configure the width, height, stride, pack format and frame based
mode for Stats and FD Bus Clients.
Change-Id: I2add1a697a3d6c8946838827293e9e1f5ae0a2bf
Signed-off-by: Abhishek Kondaveeti <akondave@codeaurora.org>
diff --git a/drivers/media/platform/msm/camera/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_bus/cam_vfe_bus_ver2.c b/drivers/media/platform/msm/camera/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_bus/cam_vfe_bus_ver2.c
index a9d3bf6..c4fae99 100644
--- a/drivers/media/platform/msm/camera/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_bus/cam_vfe_bus_ver2.c
+++ b/drivers/media/platform/msm/camera/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_bus/cam_vfe_bus_ver2.c
@@ -371,6 +371,7 @@
case CAM_VFE_BUS_VER2_VFE_OUT_STATS_CS:
switch (format) {
case CAM_FORMAT_PLAIN64:
+ case CAM_FORMAT_PLAIN128:
return 1;
default:
break;
@@ -629,7 +630,8 @@
rsrc_data->height = 1;
rsrc_data->pack_fmt = 0x0;
rsrc_data->en_cfg = 0x3;
- } else if (rsrc_data->index < 5) {
+ } else if (rsrc_data->index < 5 ||
+ rsrc_data->index == 7 || rsrc_data->index == 8) {
switch (plane) {
case PLANE_Y:
switch (rsrc_data->format) {
@@ -664,6 +666,12 @@
}
rsrc_data->pack_fmt = 0xE;
rsrc_data->en_cfg = 0x1;
+ } else if (rsrc_data->index >= 11) {
+ rsrc_data->width = 0;
+ rsrc_data->height = 0;
+ rsrc_data->pack_fmt = 0x0;
+ rsrc_data->stride = 1;
+ rsrc_data->en_cfg = 0x3;
} else {
rsrc_data->width = rsrc_data->width * 4;
rsrc_data->height = rsrc_data->height / 2;