]> git.baikalelectronics.ru Git - kernel.git/commit
media: Kconfig: better support hybrid TV devices
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 25 Mar 2020 07:36:36 +0000 (08:36 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 14 Apr 2020 08:29:05 +0000 (10:29 +0200)
commit137bd5276241a3fafed1ce2e8c4e31d841883d2e
treec6d32f8e4d62a3cec9e00a25fcd589466ae4906a
parent7012a61bbb5768def023444b8d3ee032967c725f
media: Kconfig: better support hybrid TV devices

Right now, if one has an hybrid TV card, it has to select
both analog and digital TV support, as otherwise the needed
core support won't be selected.

Change the logic to auto-select the core support for those
drivers, as this is a way more intuitive.

It should be noticed that, as now both DVB_CORE and VIDEO_DEV
defaults depends on selecting a hybrid cards, we had to remove
the explicit dependencies there, in order to avoid circular
dependencies.

That requires some tricks:

1) the prompt should not be not visible when an hybrid card
   is selected, as the user shold not change it.

2) When a media hybrid device is selected, the modular
   option for DVB_CORE and VIDEO_DEV will follow the
   MEDIA_SUPPORT dependency, as we can't have a core
   built with "y" with a driver built as module.

Note: while here, moved two pure V4L2 PCI drivers out of the
"hybrid" part of config and consider pvrusb2 as an hybrid
device.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
14 files changed:
drivers/media/Kconfig
drivers/media/pci/Kconfig
drivers/media/pci/bt8xx/Kconfig
drivers/media/pci/cx18/Kconfig
drivers/media/pci/cx23885/Kconfig
drivers/media/pci/cx88/Kconfig
drivers/media/pci/saa7134/Kconfig
drivers/media/pci/saa7164/Kconfig
drivers/media/platform/Kconfig
drivers/media/usb/Kconfig
drivers/media/usb/au0828/Kconfig
drivers/media/usb/cx231xx/Kconfig
drivers/media/usb/pvrusb2/Kconfig
drivers/media/usb/tm6000/Kconfig