media: cx18: fix format compliance issues
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 1 Feb 2023 12:56:46 +0000 (13:56 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 19 Mar 2023 21:13:35 +0000 (22:13 +0100)
commit13de5a512a440c081946109b1a208bd6eeebb169
tree1cecf7c767593795b502fcd80afdbab3bf6c8296
parent00d08584e401460d73da45921ff2405f910e9254
media: cx18: fix format compliance issues

This properly fills in all the format fields and calculates the
width and height correctly.

Esp. the minimum width and height was wrong.

When changing the standard the width and height also have to be
reset to the corresponding default width/height for the chosen
standard.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/pci/cx18/cx18-ioctl.c