mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
media: imx214: Fix stop streaming
[ Upstream commiteeb76afbe8] 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:4361905962("media: imx214: Add imx214 camera sensor driver") Signed-off-by: Daniel Gomez <daniel@qtec.com> Signed-off-by: Ricardo Ribalda <ribalda@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5bf76d566a
commit
e7fd18c203
@@ -786,7 +786,7 @@ static int imx214_s_stream(struct v4l2_subdev *subdev, int enable)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto err_rpm_put;
|
goto err_rpm_put;
|
||||||
} else {
|
} else {
|
||||||
ret = imx214_start_streaming(imx214);
|
ret = imx214_stop_streaming(imx214);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto err_rpm_put;
|
goto err_rpm_put;
|
||||||
pm_runtime_put(imx214->dev);
|
pm_runtime_put(imx214->dev);
|
||||||
|
|||||||
Reference in New Issue
Block a user