Re: [PATCH 2/2] media: Remove VIDEO_DEV unneeded dependency

From: Mauro Carvalho Chehab
Date: Tue Mar 24 2020 - 05:47:37 EST


Em Mon, 23 Mar 2020 18:10:22 -0300
Ezequiel Garcia <ezequiel@xxxxxxxxxxxxx> escreveu:

> Enable VIDEO_DEV (which compiles Video4Linux core)
> when MEDIA_SUPPORT is selected. This is needed, in order
> to be able to enable devices such as stateless codecs.
>
> Signed-off-by: Ezequiel Garcia <ezequiel@xxxxxxxxxxxxx>
> ---
> drivers/media/Kconfig | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig
> index b36a41332867..7de472ad07a2 100644
> --- a/drivers/media/Kconfig
> +++ b/drivers/media/Kconfig
> @@ -93,13 +93,11 @@ source "drivers/media/mc/Kconfig"
>
> #
> # Video4Linux support
> -# Only enables if one of the V4L2 types (ATV, webcam, radio) is selected
> #
>
> config VIDEO_DEV
> tristate
> depends on MEDIA_SUPPORT
> - depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT
> default y
>
> config VIDEO_V4L2_SUBDEV_API

The rationale of the above is to exclude Digital TV and remote
controller.

Removing the above will make the V4L2 core available every time, even
if all the user wants is remote controller or Digital TV support.

I'm working on a patchset that should hopefully address the issues
you're concerning.

Thanks,
Mauro