]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e6b1091bacbd3290b57529e38c2a62248a8b099
treee3e02c75a6b282242a3528939ce9966d94bd537e
parent4471b65f1b3dfb9134a95378278a2a7cfa0e5912
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