Re: [PATCH v2 00/20] Reorganize media Kconfig

From: Mauro Carvalho Chehab
Date: Tue Mar 24 2020 - 10:03:06 EST


Em Tue, 24 Mar 2020 15:53:59 +0200
Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> escreveu:

> Hi Mauro,
>
> Thank you for the patches.
>
> On Tue, Mar 24, 2020 at 02:42:53PM +0100, Mauro Carvalho Chehab wrote:
> > This patch series do lots of reorg at the media Kconfig options.
> > It also move test drivers from platform dir to a new one.
> >
> > After this change, the main config is organized on menus, allowing to
> > select:
> >
> > - type of devices selection - the filtering options
> > - Media core options - with API and other core stuff
> > - Media core extra options
> > - Media drivers
> > - Media ancillary drivers
> >
> > The "type of devices" menu has the filtering options for:
> >
> > - Cameras and video grabbers
> > - Analog TV
> > - Digital TV
> > - AM/FM radio receivers/transmitters
> > - SDR
> > - CEC
> > - Embeded devices (SoC)
> > - Test drivers
> >
> > This way, one interested only on embedded devices can unselect
> > everything but "Embedded devices (SoC)" option.
> >
> > Distros for PC/Laptops can enable everything but
> > "Embedded devices (SoC)" and "Test drivers".
>
> How about a device such as the Intel IPU3 ? It's a SoC, and is present
> in laptops. Unlike the physical interface which is a fairly well defined
> way to categorize devices, creating artificial classes will always leave
> some devices without a home. We could have a capture card that supports
> both analog and digital TV. A digital TV capture card with an HDMI input
> can have a CEC device. Lots of combinations are possible.

This is basically what we had before, just better organized.

It is a hints based selection. So, a multi-function device like IPU3
would basically do (either directly or the menu which contains it):

depends on MEDIA_EMBEDDED_SUPPORT || MEDIA_CAMERA_SUPPORT

When the filter is disabled, both options tune to "y".


Thanks,
Mauro