media: bcm2835-unicam: Re-fetch mbus code from subdev on a g_fmt call
authorNaushir Patuck <naush@raspberrypi.com>
Tue, 21 Apr 2020 15:26:03 +0000 (16:26 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 27 Jan 2021 19:13:08 +0000 (19:13 +0000)
commitc62bb1bcca0368772f3d62d36101f85f3aef0391
tree4a7a5ae0dd4bb82fcd73e75ae60d1ca0a3a59048
parent971134bc86674130bc58f4f93b5c32bc2601647a
media: bcm2835-unicam: Re-fetch mbus code from subdev on a g_fmt call

The sensor subdevice may change the Bayer order if a H/V flip is
requested after a s_fmt call.  Unicam g_fmt must call the subdev get_fmt
in case this has happened and return out the correct format 4cc.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
drivers/media/platform/bcm2835/bcm2835-unicam.c