mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
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:
parent
191e5e2591
commit
d00e8b6e50
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue