Commit eeb76afb authored by Daniel Gomez's avatar Daniel Gomez Committed by Mauro Carvalho Chehab

media: imx214: Fix stop streaming

Stop video streaming when requested.

When s_stream is called to stop the video streaming, if/else condition calls
start_streaming function instead of the one for stopping it.

Fixes: 43619059 ("media: imx214: Add imx214 camera sensor driver")
Signed-off-by: default avatarDaniel Gomez <daniel@qtec.com>
Signed-off-by: default avatarRicardo Ribalda <ribalda@kernel.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 9c60cc79
......@@ -786,7 +786,7 @@ static int imx214_s_stream(struct v4l2_subdev *subdev, int enable)
if (ret < 0)
goto err_rpm_put;
} else {
ret = imx214_start_streaming(imx214);
ret = imx214_stop_streaming(imx214);
if (ret < 0)
goto err_rpm_put;
pm_runtime_put(imx214->dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment