media: imx: depends on V4L2 sub-device userspace API
PATCH 1/1 media: imx: depends on V4L2 sub-device userspace API
This driver uses various v4l2_subdev_get_try_*() functions provided by V4L2 sub-device userspace API. Current configuration of Kconfig file allows us to enable VIDEO_IMX_MEDIA without enabling this API. This breaks the build of driver.
Depend on VIDEO_V4L2_SUBDEV_API to fix this issue.
--- drivers/staging/media/imx/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/media/imx/Kconfig +2 -1
@@ -1,6 +1,7 @@ config VIDEO_IMX_MEDIA tristate "i.MX5/6 V4L2 media core driver" - depends on MEDIA_CONTROLLER && VIDEO_V4L2 && ARCH_MXC && IMX_IPUV3_CORE + depends on MEDIA_CONTROLLER && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && \ + ARCH_MXC && IMX_IPUV3_CORE select V4L2_FWNODE ---help--- Say yes here to enable support for video4linux media controller
Signature · 1 line
2.7.4
Steve Longerbeam
maintainerHi Akturk, this has already been fixed, see
4560cb4a0c ("media: imx: add VIDEO_V4L2_SUBDEV_API dependency").
Steve
Quoted 25 lines · Cihangir Akturk
This driver uses various v4l2_subdev_get_try_*() functions provided by V4L2 sub-device userspace API. Current configuration of
Kconfigfile allows us to enableVIDEO_IMX_MEDIAwithout enabling this API. This breaks the build of driver.Depend on
VIDEO_V4L2_SUBDEV_APIto fix this issue.Signed-off-by Cihangir Akturk <[email protected]>--- drivers/staging/media/imx/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/staging/media/imx/Kconfig +2
-1@@ -1,6 +1,7 @@ config VIDEO_IMX_MEDIA tristate "i.MX5/6 V4L2 media core driver" - depends on MEDIA_CONTROLLER && VIDEO_V4L2 && ARCH_MXC && IMX_IPUV3_CORE + depends on MEDIA_CONTROLLER && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && \ + ARCH_MXC && IMX_IPUV3_CORE select V4L2_FWNODE ---help--- Say yes here to enable support for video4linux media controller
Quoted 1 line · Steve Longerbeam
Hi Akturk, this has already been fixed, see
Sorry. Apparently, I missed to update my tree, somehow.
Quoted 32 lines
4560cb4a0c("media: imx: addVIDEO_V4L2_SUBDEV_APIdependency").Steve
Quoted 25 lines · Cihangir Akturk
This driver uses various v4l2_subdev_get_try_*() functions provided by V4L2 sub-device userspace API. Current configuration of
Kconfigfile allows us to enableVIDEO_IMX_MEDIAwithout enabling this API. This breaks the build of driver.Depend on
VIDEO_V4L2_SUBDEV_APIto fix this issue.Signed-off-by Cihangir Akturk <[email protected]>--- drivers/staging/media/imx/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/staging/media/imx/Kconfig +2
-1@@ -1,6 +1,7 @@ config VIDEO_IMX_MEDIA tristate "i.MX5/6 V4L2 media core driver" - depends on MEDIA_CONTROLLER && VIDEO_V4L2 && ARCH_MXC && IMX_IPUV3_CORE + depends on MEDIA_CONTROLLER && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && \ + ARCH_MXC && IMX_IPUV3_CORE select V4L2_FWNODE ---help--- Say yes here to enable support for video4linux media controller