* [PATCH] media: Kconfig: Add configuration entry for MEDIA_MEM2MEM_SUPPORT
@ 2018-11-26 16:38 Priit Laes
2018-12-05 19:47 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 3+ messages in thread
From: Priit Laes @ 2018-11-26 16:38 UTC (permalink / raw)
To: Mauro Carvalho Chehab, linux-media, linux-kernel; +Cc: Priit Laes
Currently there is no easy way to enable mem2mem based video
processor drivers (cedrus for example). Simplify this by adding
separate category to media support.
Signed-off-by: Priit Laes <plaes@plaes.org>
---
drivers/media/Kconfig | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig
index 8add62a18293..f2a773896dcf 100644
--- a/drivers/media/Kconfig
+++ b/drivers/media/Kconfig
@@ -56,6 +56,14 @@ config MEDIA_DIGITAL_TV_SUPPORT
Say Y when you have a board with digital support or a board with
hybrid digital TV and analog TV.
+config MEDIA_MEM2MEM_SUPPORT
+ bool "Mem2mem devices (stateless media decoders/encoders support)"
+ ---help---
+ Enable support for mem2mem / stateless media decoders/encoders.
+
+ Say Y when you have a system with stateless media encoder/decoder
+ support.
+
config MEDIA_RADIO_SUPPORT
bool "AM/FM radio receivers/transmitters support"
---help---
@@ -95,7 +103,7 @@ source "drivers/media/cec/Kconfig"
config MEDIA_CONTROLLER
bool "Media Controller API"
- depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT
+ depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_MEM2MEM_SUPPORT
---help---
Enable the media controller API used to query media devices internal
topology and configure it dynamically.
@@ -118,7 +126,7 @@ config MEDIA_CONTROLLER_DVB
config VIDEO_DEV
tristate
depends on MEDIA_SUPPORT
- depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT
+ depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT || MEDIA_MEM2MEM_SUPPORT
default y
config VIDEO_V4L2_SUBDEV_API
--
2.19.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] media: Kconfig: Add configuration entry for MEDIA_MEM2MEM_SUPPORT
2018-11-26 16:38 [PATCH] media: Kconfig: Add configuration entry for MEDIA_MEM2MEM_SUPPORT Priit Laes
@ 2018-12-05 19:47 ` Mauro Carvalho Chehab
2018-12-06 2:15 ` Priit Laes
0 siblings, 1 reply; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2018-12-05 19:47 UTC (permalink / raw)
To: Priit Laes; +Cc: linux-media, linux-kernel
Em Mon, 26 Nov 2018 18:38:44 +0200
Priit Laes <plaes@plaes.org> escreveu:
> Currently there is no easy way to enable mem2mem based video
> processor drivers (cedrus for example). Simplify this by adding
> separate category to media support.
>
> Signed-off-by: Priit Laes <plaes@plaes.org>
> ---
> drivers/media/Kconfig | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig
> index 8add62a18293..f2a773896dcf 100644
> --- a/drivers/media/Kconfig
> +++ b/drivers/media/Kconfig
> @@ -56,6 +56,14 @@ config MEDIA_DIGITAL_TV_SUPPORT
> Say Y when you have a board with digital support or a board with
> hybrid digital TV and analog TV.
>
> +config MEDIA_MEM2MEM_SUPPORT
> + bool "Mem2mem devices (stateless media decoders/encoders support)"
> + ---help---
> + Enable support for mem2mem / stateless media decoders/encoders.
> +
> + Say Y when you have a system with stateless media encoder/decoder
> + support.
> +
> config MEDIA_RADIO_SUPPORT
> bool "AM/FM radio receivers/transmitters support"
> ---help---
> @@ -95,7 +103,7 @@ source "drivers/media/cec/Kconfig"
>
> config MEDIA_CONTROLLER
> bool "Media Controller API"
> - depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT
> + depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_MEM2MEM_SUPPORT
> ---help---
> Enable the media controller API used to query media devices internal
> topology and configure it dynamically.
> @@ -118,7 +126,7 @@ config MEDIA_CONTROLLER_DVB
> config VIDEO_DEV
> tristate
> depends on MEDIA_SUPPORT
> - depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT
> + depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT || MEDIA_MEM2MEM_SUPPORT
> default y
>
> config VIDEO_V4L2_SUBDEV_API
Hmm... this patch looks incomplete. I mean, the main goal of those
MEDIA_*_SUPPORT is to make simpler for the users to select a
subset of the drivers. Those options actually make visible
the corresponding entries for pci/usb/... drivers. So,
for example, drivers/media/usb/Kconfig contains:
if MEDIA_CAMERA_SUPPORT
comment "Webcam devices"
source "drivers/media/usb/uvc/Kconfig"
source "drivers/media/usb/gspca/Kconfig"
source "drivers/media/usb/pwc/Kconfig"
source "drivers/media/usb/cpia2/Kconfig"
source "drivers/media/usb/zr364xx/Kconfig"
source "drivers/media/usb/stkwebcam/Kconfig"
source "drivers/media/usb/s2255/Kconfig"
source "drivers/media/usb/usbtv/Kconfig"
endif
If we'll be adding it, I would expect a corresponding change at
drivers/media/platform/Kconfig.
Thanks,
Mauro
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] media: Kconfig: Add configuration entry for MEDIA_MEM2MEM_SUPPORT
2018-12-05 19:47 ` Mauro Carvalho Chehab
@ 2018-12-06 2:15 ` Priit Laes
0 siblings, 0 replies; 3+ messages in thread
From: Priit Laes @ 2018-12-06 2:15 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: linux-media, linux-kernel
On Wed, Dec 05, 2018 at 05:47:03PM -0200, Mauro Carvalho Chehab wrote:
> Em Mon, 26 Nov 2018 18:38:44 +0200
> Priit Laes <plaes@plaes.org> escreveu:
>
> > Currently there is no easy way to enable mem2mem based video
> > processor drivers (cedrus for example). Simplify this by adding
> > separate category to media support.
> >
> > Signed-off-by: Priit Laes <plaes@plaes.org>
> > ---
> > drivers/media/Kconfig | 12 ++++++++++--
> > 1 file changed, 10 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig
> > index 8add62a18293..f2a773896dcf 100644
> > --- a/drivers/media/Kconfig
> > +++ b/drivers/media/Kconfig
> > @@ -56,6 +56,14 @@ config MEDIA_DIGITAL_TV_SUPPORT
> > Say Y when you have a board with digital support or a board with
> > hybrid digital TV and analog TV.
> >
> > +config MEDIA_MEM2MEM_SUPPORT
> > + bool "Mem2mem devices (stateless media decoders/encoders support)"
> > + ---help---
> > + Enable support for mem2mem / stateless media decoders/encoders.
> > +
> > + Say Y when you have a system with stateless media encoder/decoder
> > + support.
> > +
> > config MEDIA_RADIO_SUPPORT
> > bool "AM/FM radio receivers/transmitters support"
> > ---help---
> > @@ -95,7 +103,7 @@ source "drivers/media/cec/Kconfig"
> >
> > config MEDIA_CONTROLLER
> > bool "Media Controller API"
> > - depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT
> > + depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_MEM2MEM_SUPPORT
> > ---help---
> > Enable the media controller API used to query media devices internal
> > topology and configure it dynamically.
> > @@ -118,7 +126,7 @@ config MEDIA_CONTROLLER_DVB
> > config VIDEO_DEV
> > tristate
> > depends on MEDIA_SUPPORT
> > - depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT
> > + depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT || MEDIA_MEM2MEM_SUPPORT
> > default y
> >
> > config VIDEO_V4L2_SUBDEV_API
>
> Hmm... this patch looks incomplete. I mean, the main goal of those
> MEDIA_*_SUPPORT is to make simpler for the users to select a
> subset of the drivers. Those options actually make visible
> the corresponding entries for pci/usb/... drivers. So,
> for example, drivers/media/usb/Kconfig contains:
>
> if MEDIA_CAMERA_SUPPORT
> comment "Webcam devices"
> source "drivers/media/usb/uvc/Kconfig"
> source "drivers/media/usb/gspca/Kconfig"
> source "drivers/media/usb/pwc/Kconfig"
> source "drivers/media/usb/cpia2/Kconfig"
> source "drivers/media/usb/zr364xx/Kconfig"
> source "drivers/media/usb/stkwebcam/Kconfig"
> source "drivers/media/usb/s2255/Kconfig"
> source "drivers/media/usb/usbtv/Kconfig"
> endif
>
> If we'll be adding it, I would expect a corresponding change at
> drivers/media/platform/Kconfig.
Thanks, I will look into it. The current approach at least made it
somewhat easier to enable sunxi-cedrus via menuconfig.
>
> Thanks,
> Mauro
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-12-06 2:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-26 16:38 [PATCH] media: Kconfig: Add configuration entry for MEDIA_MEM2MEM_SUPPORT Priit Laes
2018-12-05 19:47 ` Mauro Carvalho Chehab
2018-12-06 2:15 ` Priit Laes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).