media: ipu3-cio2: Parse sensor orientation and rotation
authorFabian Wüthrich <me@fabwu.ch>
Mon, 12 Jul 2021 09:03:26 +0000 (11:03 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 8 Oct 2021 11:17:37 +0000 (13:17 +0200)
commit485aa3df0dffa62d347ea4e0116f549338accc59
treee3e02c75a6b282242a3528939ce9966d94bd537e
parent16545aa3dee5a01f3f42aa566a051096c87f4b6f
media: ipu3-cio2: Parse sensor orientation and rotation

The sensor orientation is read from the _PLC ACPI buffer and converted to a v4l2
format.

The sensor rotation is read from the SSDB ACPI buffer and converted into
degrees.

Signed-off-by: Fabian Wüthrich <me@fabwu.ch>
Reviewed-by: Daniel Scally <djrscally@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/intel/ipu3/cio2-bridge.c
drivers/media/pci/intel/ipu3/cio2-bridge.h