mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
media: i2c: sc4336 remove g_frame_interval's metex
g_frame_interval may be called by interrupt function Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com> Change-Id: If0cf7d27edd22108aef0cb15d9f03ee251ad2b8a
This commit is contained in:
@@ -640,12 +640,10 @@ static int sc4336_g_frame_interval(struct v4l2_subdev *sd,
|
||||
struct sc4336 *sc4336 = to_sc4336(sd);
|
||||
const struct sc4336_mode *mode = sc4336->cur_mode;
|
||||
|
||||
mutex_lock(&sc4336->mutex);
|
||||
if (sc4336->streaming)
|
||||
fi->interval = sc4336->cur_fps;
|
||||
else
|
||||
fi->interval = mode->max_fps;
|
||||
mutex_unlock(&sc4336->mutex);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user