diff options
author | Changhuang Liang <changhuang.liang@starfivetech.com> | 2024-03-07 10:39:14 +0300 |
---|---|---|
committer | Changhuang Liang <changhuang.liang@starfivetech.com> | 2024-03-28 04:52:39 +0300 |
commit | d00e8b6e509e1a8d2f9e9b549e7a62317f6fb1d4 (patch) | |
tree | aad5a82fb0c7a161306aca164a46f618b22dd1e5 | |
parent | 191e5e2591166868c716c4f81a82ca23f542cd7a (diff) | |
download | linux-d00e8b6e509e1a8d2f9e9b549e7a62317f6fb1d4.tar.xz |
media: starfive: make stream alway be zero
make stream alway be zero.
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
-rw-r--r-- | drivers/media/platform/starfive/v4l2_driver/stf_video.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/platform/starfive/v4l2_driver/stf_video.c b/drivers/media/platform/starfive/v4l2_driver/stf_video.c index 49fcecdbc3e4..d1c7a921f1e8 100644 --- a/drivers/media/platform/starfive/v4l2_driver/stf_video.c +++ b/drivers/media/platform/starfive/v4l2_driver/stf_video.c @@ -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) |