mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-22 02:20:40 +00:00
media: imx: imx7_mipi_csis: Power off the source when stopping streaming
[ Upstream commit770cbf89f9
] The .s_stream() implementation incorrectly powers on the source when stopping the stream. Power it off instead. Fixes:7807063b86
("media: staging/imx7: add MIPI CSI-2 receiver subdev for i.MX7") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
502b83e73e
commit
dd051f1af5
1 changed files with 1 additions and 1 deletions
|
@ -579,7 +579,7 @@ static int mipi_csis_s_stream(struct v4l2_subdev *mipi_sd, int enable)
|
|||
state->flags |= ST_STREAMING;
|
||||
} else {
|
||||
v4l2_subdev_call(state->src_sd, video, s_stream, 0);
|
||||
ret = v4l2_subdev_call(state->src_sd, core, s_power, 1);
|
||||
ret = v4l2_subdev_call(state->src_sd, core, s_power, 0);
|
||||
mipi_csis_stop_stream(state);
|
||||
state->flags &= ~ST_STREAMING;
|
||||
if (state->debug)
|
||||
|
|
Loading…
Reference in a new issue