Skip to content

Video: more input validation and parameter decoding #93024

@josuah

Description

@josuah

Summary

With #90415, video APIs got improved to perform extra input validation with either __ASSERT_NO_MSG() or return -EINVAL;.

There is no complete plan for how to process the input between the application and the drivers.

Describe the solution you'd like

Reduce boilerplate in drivers by moving everything done for each and every driver to the APIs or maybe extra front-end code on top.

Split the input validation concern away from the drivers to making sure all drivers apply the same checks.

Alternatives

Define guidelines for what input has to be validated at the level of the drivers and applications.

Additional Context

Metadata

Metadata

Assignees

Labels

EnhancementChanges/Updates/Additions to existing featuresarea: APIChanges to public APIsarea: VideoVideo subsystem

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions