media: bcm2835-unicam: Allow setting of unpacked formats
authorNaushir Patuck <naush@raspberrypi.com>
Wed, 27 Nov 2024 11:15:13 +0000 (11:15 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 19 Dec 2024 11:50:18 +0000 (12:50 +0100)
commita4781bf807052e04c7f22f7f9c2ae7d18d4639eb
tree43530cb3974f7f5d832ceff2ca75dfb5504ffb50
parentf21ebe2c7defed9f9287778c0ff540be29fe2ce6
media: bcm2835-unicam: Allow setting of unpacked formats

When matching formats via try_fmt/set_fmt ioctls, test for the unpacked
formats as well as packed formats. This allows userland clients setup
unpacking to 16-bits from the 10/12/14-packed CSI2 formats.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/broadcom/bcm2835-unicam.c