media: i2c: ov4689: Implement vflip/hflip controls
authorMikhail Rudenko <mike.rudenko@gmail.com>
Tue, 16 Apr 2024 22:45:20 +0000 (23:45 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 26 Apr 2024 10:26:49 +0000 (11:26 +0100)
commitec43d634d55fb9c541ce8c7b3bcf687c3141a1df
tree52ba044e1c081f1cd69ea2c9f3a147347a2d435c
parent62911fead5311f7f9e029ac662397738ad592d63
media: i2c: ov4689: Implement vflip/hflip controls

The OV4689 sensor supports horizontal and vertical flipping. Add
appropriate controls to the driver. Toggling both array flip and
digital flip bits allows to achieve flipping while maintaining output
Bayer order. Note that the default value of hflip control corresponds
to both bits set, as it was before this patch.

Signed-off-by: Mikhail Rudenko <mike.rudenko@gmail.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov4689.c