media: Revert "media: vimc: Remove or modify stream checks"
This reverts commit 3c1b9ac753
.
Required to Revert "media: vimc: propagate pixel format in the stream"
which introduced the stream object in the vimc_ent_device struct.
Signed-off-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Lucas A. M. Magalhaes <lucmaga@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
84246ae3fd
commit
10b1aed6da
@@ -262,7 +262,7 @@ static int vimc_deb_set_fmt(struct v4l2_subdev *sd,
|
||||
|
||||
if (fmt->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
|
||||
/* Do not change the format while stream is on */
|
||||
if (vdeb->ved.stream)
|
||||
if (vdeb->src_frame)
|
||||
return -EBUSY;
|
||||
|
||||
sink_fmt = &vdeb->sink_fmt;
|
||||
@@ -329,6 +329,9 @@ static int vimc_deb_s_stream(struct v4l2_subdev *sd, int enable)
|
||||
const struct v4l2_format_info *pix_info;
|
||||
unsigned int frame_size;
|
||||
|
||||
if (vdeb->src_frame)
|
||||
return 0;
|
||||
|
||||
/* We only support translating bayer to RGB24 */
|
||||
if (src_pixelformat != V4L2_PIX_FMT_RGB24) {
|
||||
dev_err(vdeb->dev,
|
||||
|
Reference in New Issue
Block a user