If user space application fails to explicitly disable streaming before
closing the device, the streaming state will be left with an incorrect
value. This will possible make it impossible to reopen the device.
This fixes an issue where after camera application has crashed, the
camera device can not be opened any more.
Signed-off-by: Yan Feilong <feilongx.yan@intel.com>
isp->need_gfx_throttle = true;
isp->isp_fatal_error = false;
isp->delayed_init = ATOMISP_DELAYED_INIT_NOT_QUEUED;
+ isp->streaming = ATOMISP_DEVICE_STREAMING_DISABLED;
/*
* For Merrifield, frequency is scalable.
.ioctl = video_ioctl2,
.poll = atomisp_poll,
};
-