diff options
| author | Daniel Gomez <daniel@qtec.com> | 2019-10-03 16:46:24 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-30 11:51:12 +0100 |
| commit | 51795c385f73655ea63272db7eb2e1a6857879b4 (patch) | |
| tree | d55e029c4449394267ffdc895d6bc2cb31d784c9 /drivers/media/i2c | |
| parent | ceff135b9d9368a9034b550bc3ce4ac292f69dc9 (diff) | |
| download | linux-51795c385f73655ea63272db7eb2e1a6857879b4.tar.gz linux-51795c385f73655ea63272db7eb2e1a6857879b4.tar.bz2 linux-51795c385f73655ea63272db7eb2e1a6857879b4.zip | |
media: imx214: Fix stop streaming
[ Upstream commit eeb76afbe8d91e112396c6281cd020725160f006 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/media/i2c')
| -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 159a3a604f0e..24659cb0d083 100644 --- a/drivers/media/i2c/imx214.c +++ b/drivers/media/i2c/imx214.c @@ -785,7 +785,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); |
