mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
media: rockchip: cif: stop reset watchdog timer when stop multi streams in non-hdr
Signed-off-by: Allon Huang <allon.huang@rock-chips.com> Change-Id: I2c96d039c2248e39df5cf05b4d713386c858141c
This commit is contained in:
@@ -3559,6 +3559,7 @@ static int rkcif_csi_g_mipi_id(struct v4l2_device *v4l2_dev,
|
||||
static void rkcif_monitor_reset_event(struct rkcif_device *dev)
|
||||
{
|
||||
struct rkcif_sensor_info *sensor = &dev->terminal_sensor;
|
||||
struct rkcif_stream *stream = &dev->stream[RKCIF_STREAM_MIPI_ID0];
|
||||
struct rkcif_timer *timer = &dev->reset_watchdog_timer;
|
||||
unsigned long lock_flags = 0;
|
||||
u32 denominator = 0, numerator = 0, interval = 0;
|
||||
@@ -3567,6 +3568,9 @@ static void rkcif_monitor_reset_event(struct rkcif_device *dev)
|
||||
if (timer->reset_src == RKCIF_RESET_SRC_NON)
|
||||
return;
|
||||
|
||||
if (stream->state != RKCIF_STATE_STREAMING)
|
||||
return;
|
||||
|
||||
if (timer->is_running)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user