Skip to content

Commit 0dbaceb

Browse files
Hans Verkuilmchehab
authored andcommitted
[media] cec: move the CEC framework out of staging and to media
The last open issues have been addressed, so it is time to move this out of staging and into the mainline and to move the public cec headers to include/uapi/linux. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
1 parent a69a168 commit 0dbaceb

21 files changed

Lines changed: 32 additions & 46 deletions

File tree

‎Documentation/media/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ $(BUILDDIR)/videodev2.h.rst: ${UAPI}/videodev2.h ${PARSER} $(SRC_DIR)/videodev2.
5151
$(BUILDDIR)/media.h.rst: ${UAPI}/media.h ${PARSER} $(SRC_DIR)/media.h.rst.exceptions
5252
@$($(quiet)gen_rst)
5353

54-
$(BUILDDIR)/cec.h.rst: ${KAPI}/cec.h ${PARSER} $(SRC_DIR)/cec.h.rst.exceptions
54+
$(BUILDDIR)/cec.h.rst: ${UAPI}/cec.h ${PARSER} $(SRC_DIR)/cec.h.rst.exceptions
5555
@$($(quiet)gen_rst)
5656

5757
$(BUILDDIR)/lirc.h.rst: ${UAPI}/lirc.h ${PARSER} $(SRC_DIR)/lirc.h.rst.exceptions

‎drivers/media/Kconfig‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,22 @@ config MEDIA_RC_SUPPORT
8080

8181
Say Y when you have a TV or an IR device.
8282

83+
config MEDIA_CEC_SUPPORT
84+
bool "HDMI CEC support"
85+
select MEDIA_CEC_EDID
86+
---help---
87+
Enable support for HDMI CEC (Consumer Electronics Control),
88+
which is an optional HDMI feature.
89+
90+
Say Y when you have an HDMI receiver, transmitter or a USB CEC
91+
adapter that supports HDMI CEC.
92+
93+
config MEDIA_CEC_DEBUG
94+
bool "HDMI CEC debugfs interface"
95+
depends on MEDIA_CEC_SUPPORT && DEBUG_FS
96+
---help---
97+
Turns on the DebugFS interface for CEC devices.
98+
8399
config MEDIA_CEC_EDID
84100
bool
85101

‎drivers/media/Makefile‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ ifeq ($(CONFIG_MEDIA_CEC_EDID),y)
66
obj-$(CONFIG_MEDIA_SUPPORT) += cec-edid.o
77
endif
88

9+
ifeq ($(CONFIG_MEDIA_CEC_SUPPORT),y)
10+
obj-$(CONFIG_MEDIA_SUPPORT) += cec/
11+
endif
12+
913
media-objs := media-device.o media-devnode.o media-entity.o
1014

1115
#
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cec-objs := cec-core.o cec-adap.o cec-api.o
22

3-
ifeq ($(CONFIG_MEDIA_CEC),y)
3+
ifeq ($(CONFIG_MEDIA_CEC_SUPPORT),y)
44
obj-$(CONFIG_MEDIA_SUPPORT) += cec.o
55
endif

‎drivers/media/i2c/Kconfig‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ config VIDEO_ADV7604
221221

222222
config VIDEO_ADV7604_CEC
223223
bool "Enable Analog Devices ADV7604 CEC support"
224-
depends on VIDEO_ADV7604 && MEDIA_CEC
224+
depends on VIDEO_ADV7604 && MEDIA_CEC_SUPPORT
225225
---help---
226226
When selected the adv7604 will support the optional
227227
HDMI CEC feature.
@@ -242,7 +242,7 @@ config VIDEO_ADV7842
242242

243243
config VIDEO_ADV7842_CEC
244244
bool "Enable Analog Devices ADV7842 CEC support"
245-
depends on VIDEO_ADV7842 && MEDIA_CEC
245+
depends on VIDEO_ADV7842 && MEDIA_CEC_SUPPORT
246246
---help---
247247
When selected the adv7842 will support the optional
248248
HDMI CEC feature.
@@ -481,7 +481,7 @@ config VIDEO_ADV7511
481481

482482
config VIDEO_ADV7511_CEC
483483
bool "Enable Analog Devices ADV7511 CEC support"
484-
depends on VIDEO_ADV7511 && MEDIA_CEC
484+
depends on VIDEO_ADV7511 && MEDIA_CEC_SUPPORT
485485
---help---
486486
When selected the adv7511 will support the optional
487487
HDMI CEC feature.

‎drivers/media/platform/vivid/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ config VIDEO_VIVID
2525

2626
config VIDEO_VIVID_CEC
2727
bool "Enable CEC emulation support"
28-
depends on VIDEO_VIVID && MEDIA_CEC
28+
depends on VIDEO_VIVID && MEDIA_CEC_SUPPORT
2929
---help---
3030
When selected the vivid module will emulate the optional
3131
HDMI CEC feature.

0 commit comments

Comments
 (0)