media: starfive: make stream alway be zero

make stream alway be zero.

Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
This commit is contained in:
Changhuang Liang 2024-03-07 15:39:14 +08:00
parent 191e5e2591
commit d00e8b6e50

View file

@ -457,7 +457,9 @@ static int video_get_subdev_format(struct stfcamss_video *video,
struct v4l2_pix_format *pix = &video->active_fmt.fmt.pix;
struct v4l2_pix_format_mplane *pix_mp =
&video->active_fmt.fmt.pix_mp;
struct v4l2_subdev_format fmt;
struct v4l2_subdev_format fmt = {
.which = V4L2_SUBDEV_FORMAT_ACTIVE,
};
struct v4l2_subdev *subdev;
u32 pixelformat;
u32 pad;
@ -468,7 +470,6 @@ static int video_get_subdev_format(struct stfcamss_video *video,
return -EPIPE;
fmt.pad = pad;
fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE;
ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &fmt);
if (ret)