Skip to content

Commit

Permalink
media: Kconfig: allow to select drivers if EMBEDDED
Browse files Browse the repository at this point in the history
Embedded systems often connect to sensors or other multimedia
subdevices directly. Currently, to be able to select such a
subdevice (e.g. CONFIG_VIDEO_OV5640) disabling of the auto-
select config option is needed (CONFIG_MEDIA_SUBDRV_AUTOSELECT).

This is inconvenient as the ancillary drivers for a particular
device then need to be selected manually.

Allow to select drivers manually while keeping the auto-select
feature in case EXPERT (selected by EMBEDDED) is enabled.

Signed-off-by: Stefan Agner <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
agners authored and mchehab committed May 23, 2019
1 parent b29ecab commit 8169cf0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/Kconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
menu "Customise DVB Frontends"
visible if !MEDIA_SUBDRV_AUTOSELECT || COMPILE_TEST
visible if !MEDIA_SUBDRV_AUTOSELECT || COMPILE_TEST || EXPERT

comment "Multistandard (satellite) frontends"
depends on DVB_CORE
Expand Down
4 changes: 2 additions & 2 deletions drivers/media/i2c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
if VIDEO_V4L2

config VIDEO_IR_I2C
tristate "I2C module for IR" if !MEDIA_SUBDRV_AUTOSELECT
tristate "I2C module for IR" if !MEDIA_SUBDRV_AUTOSELECT || EXPERT
depends on I2C && RC_CORE
default y
help
Expand All @@ -22,7 +22,7 @@ config VIDEO_IR_I2C
#

menu "I2C Encoders, decoders, sensors and other helper chips"
visible if !MEDIA_SUBDRV_AUTOSELECT || COMPILE_TEST
visible if !MEDIA_SUBDRV_AUTOSELECT || COMPILE_TEST || EXPERT

comment "Audio decoders, processors and mixers"

Expand Down
2 changes: 1 addition & 1 deletion drivers/media/spi/Kconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
if VIDEO_V4L2

menu "SPI helper chips"
visible if !MEDIA_SUBDRV_AUTOSELECT || COMPILE_TEST
visible if !MEDIA_SUBDRV_AUTOSELECT || COMPILE_TEST || EXPERT

config VIDEO_GS1662
tristate "Gennum Serializers video"
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/tuners/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ config MEDIA_TUNER
select MEDIA_TUNER_MC44S803 if MEDIA_SUBDRV_AUTOSELECT

menu "Customize TV tuners"
visible if !MEDIA_SUBDRV_AUTOSELECT || COMPILE_TEST
visible if !MEDIA_SUBDRV_AUTOSELECT || COMPILE_TEST || EXPERT
depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT

config MEDIA_TUNER_SIMPLE
Expand Down

0 comments on commit 8169cf0

Please sign in to comment.