Merge branch 'next-tpm' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris...
[sfrench/cifs-2.6.git] / Documentation / media / uapi / cec / cec-intro.rst
1 .. Permission is granted to copy, distribute and/or modify this
2 .. document under the terms of the GNU Free Documentation License,
3 .. Version 1.1 or any later version published by the Free Software
4 .. Foundation, with no Invariant Sections, no Front-Cover Texts
5 .. and no Back-Cover Texts. A copy of the license is included at
6 .. Documentation/media/uapi/fdl-appendix.rst.
7 ..
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
9
10 .. _cec-intro:
11
12 Introduction
13 ============
14
15 HDMI connectors provide a single pin for use by the Consumer Electronics
16 Control protocol. This protocol allows different devices connected by an
17 HDMI cable to communicate. The protocol for CEC version 1.4 is defined
18 in supplements 1 (CEC) and 2 (HEAC or HDMI Ethernet and Audio Return
19 Channel) of the HDMI 1.4a (:ref:`hdmi`) specification and the
20 extensions added to CEC version 2.0 are defined in chapter 11 of the
21 HDMI 2.0 (:ref:`hdmi2`) specification.
22
23 The bitrate is very slow (effectively no more than 36 bytes per second)
24 and is based on the ancient AV.link protocol used in old SCART
25 connectors. The protocol closely resembles a crazy Rube Goldberg
26 contraption and is an unholy mix of low and high level messages. Some
27 messages, especially those part of the HEAC protocol layered on top of
28 CEC, need to be handled by the kernel, others can be handled either by
29 the kernel or by userspace.
30
31 In addition, CEC can be implemented in HDMI receivers, transmitters and
32 in USB devices that have an HDMI input and an HDMI output and that
33 control just the CEC pin.
34
35 Drivers that support CEC will create a CEC device node (/dev/cecX) to
36 give userspace access to the CEC adapter. The
37 :ref:`CEC_ADAP_G_CAPS` ioctl will tell userspace what it is allowed to do.
38
39 In order to check the support and test it, it is suggested to download
40 the `v4l-utils <https://git.linuxtv.org/v4l-utils.git/>`_ package. It
41 provides three tools to handle CEC:
42
43 - cec-ctl: the Swiss army knife of CEC. Allows you to configure, transmit
44   and monitor CEC messages.
45
46 - cec-compliance: does a CEC compliance test of a remote CEC device to
47   determine how compliant the CEC implementation is.
48
49 - cec-follower: emulates a CEC follower.