fimc_is_hardware_config_lock(hw_ip, instance_id, (u32)fcount);
break;
case LIB_EVENT_FRAME_START_ISR:
+ if (sysfs_debug.pattern_en && (hw_ip->id == DEV_HW_3AA0 || hw_ip->id == DEV_HW_3AA1)) {
+ struct fimc_is_group *group;
+ struct v4l2_subdev *subdev;
+ struct fimc_is_device_csi *csi;
+
+ group = hw_ip->group[instance_id];
+ if (IS_ERR_OR_NULL(group)) {
+ mserr_hw("group is NULL", instance_id, hw_ip);
+ return;
+ }
+
+ if (IS_ERR_OR_NULL(group->device)) {
+ mserr_hw("device is NULL", instance_id, hw_ip);
+ return;
+ }
+
+ if (IS_ERR_OR_NULL(group->device->sensor)) {
+ mserr_hw("sensor is NULL", instance_id, hw_ip);
+ return;
+ }
+
+ if (IS_ERR_OR_NULL(group->device->sensor->subdev_csi)) {
+ mserr_hw("subdev_csi is NULL", instance_id, hw_ip);
+ return;
+ }
+
+ subdev = group->device->sensor->subdev_csi;
+ csi = v4l2_get_subdevdata(subdev);
+ if (IS_ERR_OR_NULL(csi)) {
+ mserr_hw("csi is NULL", instance_id, hw_ip);
+ return;
+ }
+
+ csi_frame_start_inline(csi);
+ }
+
hw_ip->debug_index[1] = hw_ip->debug_index[0] % DEBUG_FRAME_COUNT;
index = hw_ip->debug_index[1];
hw_ip->debug_info[index].fcount = hw_ip->debug_index[0];