Commit b6a7d1bc authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: Kconfig: don't use visible for device type select

While making the menu invisible seemed a good idea, there's
a drawback: when the menu is not visible, it is not parsing
the "default" dependency.

So, instead, let's just avoid the items at the menu to be
prompted, by using the "prompt ... if" construction.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent f48fd151
...@@ -57,13 +57,13 @@ config MEDIA_SUBDRV_AUTOSELECT ...@@ -57,13 +57,13 @@ config MEDIA_SUBDRV_AUTOSELECT
If unsure say Y. If unsure say Y.
menu "Media device types" menu "Media device types"
visible if MEDIA_SUPPORT_FILTER
# #
# Multimedia support - automatically enable V4L2 and DVB core # Multimedia support - automatically enable V4L2 and DVB core
# #
config MEDIA_CAMERA_SUPPORT config MEDIA_CAMERA_SUPPORT
bool "Cameras and video grabbers" bool
prompt "Cameras and video grabbers" if MEDIA_SUPPORT_FILTER
default y if !MEDIA_SUPPORT_FILTER default y if !MEDIA_SUPPORT_FILTER
help help
Enable support for webcams and video grabbers. Enable support for webcams and video grabbers.
...@@ -71,7 +71,8 @@ config MEDIA_CAMERA_SUPPORT ...@@ -71,7 +71,8 @@ config MEDIA_CAMERA_SUPPORT
Say Y when you have a webcam or a video capture grabber board. Say Y when you have a webcam or a video capture grabber board.
config MEDIA_ANALOG_TV_SUPPORT config MEDIA_ANALOG_TV_SUPPORT
bool "Analog TV" bool
prompt "Analog TV" if MEDIA_SUPPORT_FILTER
default y if !MEDIA_SUPPORT_FILTER default y if !MEDIA_SUPPORT_FILTER
help help
Enable analog TV support. Enable analog TV support.
...@@ -79,7 +80,8 @@ config MEDIA_ANALOG_TV_SUPPORT ...@@ -79,7 +80,8 @@ config MEDIA_ANALOG_TV_SUPPORT
Say Y when you have a board with analog TV support. Say Y when you have a board with analog TV support.
config MEDIA_DIGITAL_TV_SUPPORT config MEDIA_DIGITAL_TV_SUPPORT
bool "Digital TV" bool
prompt "Digital TV" if MEDIA_SUPPORT_FILTER
default y if !MEDIA_SUPPORT_FILTER default y if !MEDIA_SUPPORT_FILTER
help help
Enable digital TV support. Enable digital TV support.
...@@ -87,7 +89,8 @@ config MEDIA_DIGITAL_TV_SUPPORT ...@@ -87,7 +89,8 @@ config MEDIA_DIGITAL_TV_SUPPORT
Say Y when you have a board with digital TV support. Say Y when you have a board with digital TV support.
config MEDIA_RADIO_SUPPORT config MEDIA_RADIO_SUPPORT
bool "AM/FM radio receivers/transmitters" bool
prompt "AM/FM radio receivers/transmitters" if MEDIA_SUPPORT_FILTER
default y if !MEDIA_SUPPORT_FILTER default y if !MEDIA_SUPPORT_FILTER
help help
Enable AM/FM radio support. Enable AM/FM radio support.
...@@ -98,7 +101,8 @@ config MEDIA_RADIO_SUPPORT ...@@ -98,7 +101,8 @@ config MEDIA_RADIO_SUPPORT
Say Y when you have a board with radio support. Say Y when you have a board with radio support.
config MEDIA_SDR_SUPPORT config MEDIA_SDR_SUPPORT
bool "Software defined radio" bool
prompt "Software defined radio" if MEDIA_SUPPORT_FILTER
default y if !MEDIA_SUPPORT_FILTER default y if !MEDIA_SUPPORT_FILTER
help help
Enable software defined radio support. Enable software defined radio support.
...@@ -106,7 +110,8 @@ config MEDIA_SDR_SUPPORT ...@@ -106,7 +110,8 @@ config MEDIA_SDR_SUPPORT
Say Y when you have a software defined radio device. Say Y when you have a software defined radio device.
config MEDIA_CEC_SUPPORT config MEDIA_CEC_SUPPORT
bool "HDMI CEC" bool
prompt "HDMI CEC support" if MEDIA_SUPPORT_FILTER
default y if !MEDIA_SUPPORT_FILTER default y if !MEDIA_SUPPORT_FILTER
help help
Enable support for HDMI CEC (Consumer Electronics Control), Enable support for HDMI CEC (Consumer Electronics Control),
...@@ -116,7 +121,8 @@ config MEDIA_CEC_SUPPORT ...@@ -116,7 +121,8 @@ config MEDIA_CEC_SUPPORT
adapter that supports HDMI CEC. adapter that supports HDMI CEC.
config MEDIA_PLATFORM_SUPPORT config MEDIA_PLATFORM_SUPPORT
bool "Platform-specific devices" bool
prompt "Platform-specific devices" if MEDIA_SUPPORT_FILTER
default y if !MEDIA_SUPPORT_FILTER default y if !MEDIA_SUPPORT_FILTER
help help
Enable support for complex cameras, codecs, and other hardware Enable support for complex cameras, codecs, and other hardware
...@@ -129,7 +135,8 @@ config MEDIA_PLATFORM_SUPPORT ...@@ -129,7 +135,8 @@ config MEDIA_PLATFORM_SUPPORT
Say Y when you want to be able so see such devices. Say Y when you want to be able so see such devices.
config MEDIA_TEST_SUPPORT config MEDIA_TEST_SUPPORT
bool "Test drivers" bool
prompt "Test drivers" if MEDIA_SUPPORT_FILTER
default y if !MEDIA_SUPPORT_FILTER default y if !MEDIA_SUPPORT_FILTER
help help
Those drivers should not be used on production Kernels, but Those drivers should not be used on production Kernels, but
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment