linux-stable/drivers/staging/media/atomisp
Hans de Goede f66556c133 media: atomisp: Adjust for v4l2_subdev_state handling changes in 6.8
The atomisp driver emulates a standard v4l2 device, which also works
for non media-controller aware applications.

Part of this requires making try_fmt calls on the sensor when
a normal v4l2 app is making try_fmt calls on the /dev/video# mode.

With the recent v4l2_subdev_state handling changes in 6.8 this no longer
works, fixing this requires 2 changes:

1. The atomisp code was using its own internal v4l2_subdev_pad_config
   for this. Replace the internal v4l2_subdev_pad_config with allocating
   a full v4l2_subdev_state for storing the full try_fmt state.

2. The paths actually setting the fmt or crop selection now need to be
   passed the v4l2_subdev's active state, so that sensor drivers which
   are using the v4l2_subdev's active state to store their state keep
   working.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2024-02-01 13:47:52 +01:00
..
i2c media: v4l2-subdev: Add which field to struct v4l2_subdev_frame_interval 2023-12-13 16:52:35 +01:00
include media: atomisp: Remove support for custom run-mode v4l2-ctrl on sensors 2023-09-27 09:40:02 +02:00
pci media: atomisp: Adjust for v4l2_subdev_state handling changes in 6.8 2024-02-01 13:47:52 +01:00
Kconfig media updates for v6.7-rc1 2023-11-06 15:06:06 -08:00
Makefile media: atomisp: Drop VIDEO_ATOMISP_ISP2401 Kconfig option 2023-09-27 09:40:04 +02:00
TODO media: atomisp: Drop VIDEO_ATOMISP_ISP2401 Kconfig option 2023-09-27 09:40:04 +02:00
notes.txt media: atomisp: Remove custom ATOMISP_IOC_G_SENSOR_MODE_DATA ioctl 2023-02-08 08:01:31 +01:00