vc04_services: bcm2835-codec: Set port format from s_selection
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 19 May 2022 16:38:53 +0000 (17:38 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Tue, 7 Jun 2022 16:54:32 +0000 (17:54 +0100)
commit6b945e6f05d5cb0a299dbbb9bdd285aff330a204
tree88524b8c37b813b0b06ae98122964d610c120e6d
parent0cd33a0bba43fb15d83a44ae19ccecf656aa1070
vc04_services: bcm2835-codec: Set port format from s_selection

s_selection allows the crop region of an uncompressed pixel
format to be specified, but it wasn't passing the setting on to
the firmware. Depending on call order this would potentially
mean that the crop wasn't actioned.

Set the port format on s_selection if we have a component created.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c