2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-29 15:43:59 +08:00
linux-next/drivers/media/platform/omap3isp
Hans Verkuil f7234138f1 [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config
If a subdevice pad op is called from a bridge driver, then there is
no v4l2_subdev_fh struct that can be passed to the subdevice. This
made it hard to use such subdevs from a bridge driver.

This patch replaces the v4l2_subdev_fh pointer by a v4l2_subdev_pad_config
pointer in the pad ops. This allows bridge drivers to use the various
try_ pad ops by creating a v4l2_subdev_pad_config struct and passing it
along to the pad op.

The v4l2_subdev_get_try_* macros had to be changed because of this, so
I also took the opportunity to use the full name of the v4l2_subdev_get_try_*
functions in the __V4L2_SUBDEV_MK_GET_TRY macro arguments: if you now do
'git grep v4l2_subdev_get_try_format' you will actually find the header
where it is defined.

One remark regarding the drivers/staging/media/davinci_vpfe patches: the
*_init_formats() functions assumed that fh could be NULL. However, that's
not true for this driver, it's always set. This is almost certainly a copy
and paste from the omap3isp driver. I've updated the code to reflect the
fact that fh is never NULL.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Tested-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-03-23 11:41:36 -07:00
..
cfa_coef_table.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
gamma_table.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
isp.c [media] omap3isp: Fix division by 0 2014-12-23 08:43:54 -02:00
isp.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
ispccdc.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
ispccdc.h [media] omap3isp: ccdc: Don't timeout on stream off when the CCDC is stopped 2014-08-21 15:25:16 -05:00
ispccp2.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
ispccp2.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
ispcsi2.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
ispcsi2.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
ispcsiphy.c [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
ispcsiphy.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
isph3a_aewb.c [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
isph3a_af.c [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
isph3a.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
isphist.c [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
isphist.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
isppreview.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
isppreview.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
ispreg.h [media] omap3isp: ccdc: Support the interlaced field orders at the CCDC output 2014-08-21 15:25:14 -05:00
ispresizer.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
ispresizer.h [media] omap3isp: resizer: Protect against races when updating crop 2014-08-21 15:25:17 -05:00
ispstat.c [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
ispstat.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
ispvideo.c [media] omap3isp: Correctly set QUERYCAP capabilities 2015-01-21 21:09:11 -02:00
ispvideo.h [media] platform: Make use of media_bus_format enum 2014-11-14 17:54:08 -02:00
luma_enhance_table.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
Makefile [media] omap3isp: Move to videobuf2 2014-05-25 11:38:53 -03:00
noise_filter_table.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00