media: atomisp: Implement link_setup() op for ISP subdev MC entity
authorHans de Goede <hdegoede@redhat.com>
Sun, 4 Feb 2024 16:01:45 +0000 (17:01 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 11 Apr 2024 13:40:29 +0000 (15:40 +0200)
commit71b3ed53b08d87212fbbe51bdc3bf44eb8c462f8
treeccd49d6f9241c6add4b95a3f2a91b6ee86838483
parent185883b28bf66f27e854a1ea2324f645be1df640
media: atomisp: Implement link_setup() op for ISP subdev MC entity

The atomisp driver's Android heritage makes it weird in that
even though it uses MC + subdev-s it is designed to primarily
be controlled through its /dev/video# node.

It implements s_input() on /dev/video# to select which sensor to use,
while ignoring link_setup() calls to enable a link to another sensor.

Add support for selecting the active sensor the MC way by adding
link_setup() support.

The implementation is a bit convoluted due to the atomisp driver's
heritage.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_subdev.c