atomisp and g/s_parm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sakari,

I looked a bit closer at how atomisp uses g/s_parm. They abuse the capturemode field
to select video/preview/still modes on the sensor, which actually changes the list
of supported resolutions.

The following files use this:

i2c/atomisp-gc0310.c
i2c/atomisp-gc2235.c
i2c/atomisp-ov2680.c
i2c/atomisp-ov2722.c
i2c/ov5693/atomisp-ov5693.c
pci/atomisp2/atomisp_file.c
pci/atomisp2/atomisp_tpg.c

The last two have a dummy g/s_parm implementation, so are easy to fix.
The gc0310 and 0v2680 have identical resolution lists for all three modes, so
the capturemode can just be ignored and these two drivers can be simplified.

Looking at the higher level code it turns out that this atomisp driver appears
to be in the middle of a conversion from using s_parm to a V4L2_CID_RUN_MODE
control. If the control is present, then that will be used to set the mode,
otherwise it falls back to s_parm.

So the best solution would be if Intel can convert the remaining drivers from
using s_parm to the new control and then drop all code that uses s_parm to do
this, so g/s_parm is then only used to get/set the framerate.

Is this something you or a colleague can take on?

Regards,

	Hans



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux