Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9177e51d authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

[media] cec: select CEC_CORE instead of depend on it



The CEC framework is used by both drm and media. That makes it tricky
to get the dependencies right.

This patch moves the CEC_CORE and MEDIA_CEC_NOTIFIER config options
out of the media menu and instead drivers that want to use CEC should
select CEC_CORE and MEDIA_CEC_NOTIFIER (if needed).

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent ca33784b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2,6 +2,12 @@
# Multimedia device configuration
#

config CEC_CORE
	tristate

config MEDIA_CEC_NOTIFIER
	bool

menuconfig MEDIA_SUPPORT
	tristate "Multimedia support"
	depends on HAS_IOMEM
+2 −2
Original line number Diff line number Diff line
@@ -4,8 +4,6 @@

media-objs	:= media-device.o media-devnode.o media-entity.o

obj-$(CONFIG_CEC_CORE) += cec/

#
# I2C drivers should come before other drivers, otherwise they'll fail
# when compiled as builtin drivers
@@ -26,6 +24,8 @@ obj-$(CONFIG_DVB_CORE) += dvb-core/
# There are both core and drivers at RC subtree - merge before drivers
obj-y += rc/

obj-$(CONFIG_CEC_CORE) += cec/

#
# Finally, merge the drivers that require the core
#
+0 −8
Original line number Diff line number Diff line
config CEC_CORE
	tristate
	depends on MEDIA_CEC_SUPPORT
	default y

config MEDIA_CEC_NOTIFIER
	bool

config MEDIA_CEC_RC
	bool "HDMI CEC RC integration"
	depends on CEC_CORE && RC_CORE
+6 −3
Original line number Diff line number Diff line
@@ -220,7 +220,8 @@ config VIDEO_ADV7604

config VIDEO_ADV7604_CEC
	bool "Enable Analog Devices ADV7604 CEC support"
	depends on VIDEO_ADV7604 && CEC_CORE
	depends on VIDEO_ADV7604
	select CEC_CORE
	---help---
	  When selected the adv7604 will support the optional
	  HDMI CEC feature.
@@ -240,7 +241,8 @@ config VIDEO_ADV7842

config VIDEO_ADV7842_CEC
	bool "Enable Analog Devices ADV7842 CEC support"
	depends on VIDEO_ADV7842 && CEC_CORE
	depends on VIDEO_ADV7842
	select CEC_CORE
	---help---
	  When selected the adv7842 will support the optional
	  HDMI CEC feature.
@@ -478,7 +480,8 @@ config VIDEO_ADV7511

config VIDEO_ADV7511_CEC
	bool "Enable Analog Devices ADV7511 CEC support"
	depends on VIDEO_ADV7511 && CEC_CORE
	depends on VIDEO_ADV7511
	select CEC_CORE
	---help---
	  When selected the adv7511 will support the optional
	  HDMI CEC feature.
+4 −2
Original line number Diff line number Diff line
@@ -501,7 +501,8 @@ if CEC_PLATFORM_DRIVERS

config VIDEO_SAMSUNG_S5P_CEC
       tristate "Samsung S5P CEC driver"
       depends on CEC_CORE && (PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST)
       depends on PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST
       select CEC_CORE
       select MEDIA_CEC_NOTIFIER
       ---help---
         This is a driver for Samsung S5P HDMI CEC interface. It uses the
@@ -511,7 +512,8 @@ config VIDEO_SAMSUNG_S5P_CEC

config VIDEO_STI_HDMI_CEC
       tristate "STMicroelectronics STiH4xx HDMI CEC driver"
       depends on CEC_CORE && (ARCH_STI || COMPILE_TEST)
       depends on ARCH_STI || COMPILE_TEST
       select CEC_CORE
       select MEDIA_CEC_NOTIFIER
       ---help---
         This is a driver for STIH4xx HDMI CEC interface. It uses the
Loading