staging/bcm2835-codec: Do not update crop from S_FMT after res change
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 15 Apr 2021 10:07:55 +0000 (11:07 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Fri, 23 Apr 2021 14:38:37 +0000 (15:38 +0100)
commite2c0dadf82a293855c27e722f6460c528cb9a23a
tree6bae835763c0a931495bd6da0c519b29bf2c9281
parentc227862c1e351489d7071bc4f8627a0a4fb7036b
staging/bcm2835-codec: Do not update crop from S_FMT after res change

During decode, setting the CAPTURE queue format was setting the crop
rectangle to the requested height before aligning up the format to
cater for simple clients that weren't expecting to deal with cropping
and the SELECTION API.
This caused problems on some resolution change events if the client
didn't also then use the selection API.

Disable the crop update after a resolution change.

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