diff options
author | Daniel Gomez <daniel@qtec.com> | 2019-10-03 17:46:24 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-11-27 12:16:27 +0300 |
commit | eeb76afbe8d91e112396c6281cd020725160f006 (patch) | |
tree | 754aa6a16264537e510829ddb4121621c0b75f91 /drivers/media/i2c/imx214.c | |
parent | 9c60cc797cf72e95bb39f32316e9f0e5f85435f9 (diff) | |
download | linux-eeb76afbe8d91e112396c6281cd020725160f006.tar.xz |
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: 436190596241 ("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>
Diffstat (limited to 'drivers/media/i2c/imx214.c')
-rw-r--r-- | drivers/media/i2c/imx214.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/imx214.c b/drivers/media/i2c/imx214.c index 1ef5af9a8c8b..cee1a4817af9 100644 --- a/drivers/media/i2c/imx214.c +++ b/drivers/media/i2c/imx214.c @@ -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); |