]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: register first the preview devnode
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 6 Nov 2021 11:26:20 +0000 (11:26 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:53 +0000 (08:11 +0000)
commitcd6b84d8851c4a5492395b463d5b424ad6fe89b5
tree506729bf21162931ce73c51aafe7449f0435d87c
parente4778e7a3e952a41d336a3d3082a6682a813b8cc
media: atomisp: register first the preview devnode

The atomisp currenyl registers 5 pairs of devices each one
for one different run_mode, plus one for "ACC". The only
one that behaves like a normal V4L2 device is the preview
one. The others are doing weird things, and perhaps are
using some proprietary extensions to the API.

Change the device order to start with the preview one,
e. g:

/dev/video0: ATOMISP ISP PREVIEW output
/dev/video1: ATOMISP ISP CAPTURE output
/dev/video2: ATOMISP ISP VIEWFINDER output
/dev/video3: ATOMISP ISP VIDEO output
/dev/video4: ATOMISP ACC

This way, a normal V4L2 application will get the right
device, as the first one will be the one they should use.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_subdev.c