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)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:14 +0000 (16:04 +0000)
commit9a4ad0d60af9423fbf40d50525d355c17d4dba2c
tree296ecca5bb172c18103cfb63db65ab0d72c4cb46
parentf5cb2e8c2dbcf19942fe967d7fed7b23510011b2
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