Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

media: imx8-isi-cap: workaround of v4l2_subdev_format bad initialization #17

Open
wants to merge 1 commit into
base: lf-6.6.y
Choose a base branch
from

Conversation

Scott31393
Copy link
Contributor

struct v4l2_subdev_format change from kernel 6.1.22 with a new stream field. This is not initialized into the imx8-isi-cap nxp driver and once you try to stream something check_state() of drivers/media/v4l2-core/v4l2-subdev.c return -EINVAL into the following statement:

if (stream != 0)
return -EINVAL;

Let's initialize also this missing field into mxc_isi_source_fmt_init() to avoid the following error that prevent user to stream on ISI path:

mxc_isi.0: set remote fmt fail!

struct v4l2_subdev_format change from kernel 6.1.22 with a new stream
field. This is not initialized into the imx8-isi-cap nxp driver and once
you try to stream something check_state() of drivers/media/v4l2-core/v4l2-subdev.c
return -EINVAL into the following statement:

if (stream != 0)
	return -EINVAL;

Let's initialize also this missing field into mxc_isi_source_fmt_init()
to avoid the following error that prevent user to stream on ISI path:

mxc_isi.0: set remote fmt fail!

Signed-off-by: Tommaso Merciai <[email protected]>
Signed-off-by: Tommaso Merciai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant