media: atomisp: Stop resetting selected input to 0 between /dev/video# opens
authorHans de Goede <hdegoede@redhat.com>
Sun, 4 Jun 2023 16:14:02 +0000 (17:14 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 9 Jun 2023 14:42:51 +0000 (15:42 +0100)
commitef0feca22e866a8544847232fe32d5fdc11f0fbd
treee441ffc2342ceb93d79b30a24a214b294719cbf7
parent930d333a00e1c7ac6caa83b70402367069f6c377
media: atomisp: Stop resetting selected input to 0 between /dev/video# opens

No other V4L2 driver resets the selected input (front cam or back cam
selected in case of the atomisp).

Stop resetting selected input to 0 between /dev/video# opens.

This allows e.g. using v4l2-ctl -i to switch the input before starting
another app, which is useful since most apps don't support selecting
the input.

Note more in general the whole resetting of a bunch of internal
state from the open fop needs to be removed there to allow multiple
opens of /dev/video# for full v4l2 API compliance.

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