• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: (LGPL-2.1-only OR BSD-3-Clause)
2 /*
3  * cec-htng - HDMI CEC messages for Hospitality Profile
4  *
5  * Copyright 2016-2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
6  */
7 
8 #ifndef _CEC_HTNG_H
9 #define _CEC_HTNG_H
10 
11 #include <linux/cec.h>
12 
13 #define VENDOR_ID_HTNG 0x00d38d
14 
15 #define CEC_MSG_HTNG_TUNER_1PART_CHAN		0x00
16 /* HTNG Tuner Type Operand (htng_tuner_type) */
17 #define CEC_OP_HTNG_TUNER_TYPE_AIR		0x00
18 #define CEC_OP_HTNG_TUNER_TYPE_CABLE		0x01
19 #define CEC_OP_HTNG_TUNER_TYPE_SAT		0x02
20 #define CEC_OP_HTNG_TUNER_TYPE_NOT_SPECIFIED	0x03
21 
22 #define CEC_MSG_HTNG_TUNER_2PART_CHAN		0x01
23 #define CEC_MSG_HTNG_INPUT_SEL_AV		0x02
24 #define CEC_MSG_HTNG_INPUT_SEL_PC		0x03
25 #define CEC_MSG_HTNG_INPUT_SEL_HDMI		0x04
26 #define CEC_MSG_HTNG_INPUT_SEL_COMPONENT	0x05
27 #define CEC_MSG_HTNG_INPUT_SEL_DVI		0x06
28 #define CEC_MSG_HTNG_INPUT_SEL_DP		0x07
29 #define CEC_MSG_HTNG_INPUT_SEL_USB		0x08
30 
31 #define CEC_MSG_HTNG_SET_DEF_PWR_ON_INPUT_SRC	0x10
32 /* HTNG Input Source Operand (htng_input_src) */
33 #define CEC_OP_HTNG_INPUT_SRC_TUNER_1PART	0x00
34 #define CEC_OP_HTNG_INPUT_SRC_TUNER_2PART	0x01
35 #define CEC_OP_HTNG_INPUT_SRC_AV		0x02
36 #define CEC_OP_HTNG_INPUT_SRC_PC		0x03
37 #define CEC_OP_HTNG_INPUT_SRC_HDMI		0x04
38 #define CEC_OP_HTNG_INPUT_SRC_COMPONENT		0x05
39 #define CEC_OP_HTNG_INPUT_SRC_DVI		0x06
40 #define CEC_OP_HTNG_INPUT_SRC_DP		0x07
41 #define CEC_OP_HTNG_INPUT_SRC_USB		0x08
42 
43 #define CEC_MSG_HTNG_SET_TV_SPEAKERS		0x20
44 #define CEC_MSG_HTNG_SET_DIG_AUDIO		0x21
45 #define CEC_MSG_HTNG_SET_ANA_AUDIO		0x22
46 #define CEC_MSG_HTNG_SET_DEF_PWR_ON_VOL		0x23
47 #define CEC_MSG_HTNG_SET_MAX_VOL		0x24
48 #define CEC_MSG_HTNG_SET_MIN_VOL		0x25
49 
50 #define CEC_MSG_HTNG_SET_BLUE_SCREEN		0x40
51 /* HTNG TV Screen Color Operand (htng_tv_screen_color) */
52 #define CEC_OP_HTNG_TV_SCREEN_BLACK		0x00
53 #define CEC_OP_HTNG_TV_SCREEN_BLUE		0x01
54 
55 #define CEC_MSG_HTNG_SET_BRIGHTNESS		0x41
56 #define CEC_MSG_HTNG_SET_COLOR			0x42
57 #define CEC_MSG_HTNG_SET_CONTRAST		0x43
58 #define CEC_MSG_HTNG_SET_SHARPNESS		0x44
59 #define CEC_MSG_HTNG_SET_HUE			0x45
60 #define CEC_MSG_HTNG_SET_LED_BACKLIGHT		0x46
61 #define CEC_MSG_HTNG_SET_TV_OSD_CONTROL		0x47
62 #define CEC_MSG_HTNG_SET_AUDIO_ONLY_DISPLAY	0x48
63 
64 #define CEC_MSG_HTNG_SET_DATE			0x60
65 #define CEC_MSG_HTNG_SET_DATE_FORMAT		0x61
66 #define CEC_MSG_HTNG_SET_TIME			0x62
67 #define CEC_MSG_HTNG_SET_CLK_BRIGHTNESS_STANDBY	0x63
68 #define CEC_MSG_HTNG_SET_CLK_BRIGHTNESS_ON	0x64
69 #define CEC_MSG_HTNG_LED_CONTROL		0x65
70 /* HTNG LED Control Operand (htng_led_control) */
71 #define CEC_OP_HTNG_LED_CONTROL_DEFAULT		0x00
72 #define CEC_OP_HTNG_LED_CONTROL_ON		0x01
73 #define CEC_OP_HTNG_LED_CONTROL_OFF		0x02
74 
75 #define CEC_MSG_HTNG_LOCK_TV_PWR_BUTTON		0x66
76 #define CEC_MSG_HTNG_LOCK_TV_VOL_BUTTONS	0x67
77 #define CEC_MSG_HTNG_LOCK_TV_CHAN_BUTTONS	0x68
78 #define CEC_MSG_HTNG_LOCK_TV_INPUT_BUTTONS	0x69
79 #define CEC_MSG_HTNG_LOCK_TV_OTHER_BUTTONS	0x6a
80 #define CEC_MSG_HTNG_LOCK_EVERYTHING		0x6b
81 #define CEC_MSG_HTNG_LOCK_EVERYTHING_BUT_PWR	0x6c
82 #define CEC_MSG_HTNG_HOTEL_MODE			0x6d
83 
84 #define CEC_MSG_HTNG_SET_PWR_SAVING_PROFILE	0x80
85 #define CEC_MSG_HTNG_SET_SLEEP_TIMER		0x81
86 #define CEC_MSG_HTNG_SET_WAKEUP_TIME		0x82
87 #define CEC_MSG_HTNG_SET_AUTO_OFF_TIME		0x83
88 #define CEC_MSG_HTNG_SET_WAKEUP_SRC		0x84
89 #define CEC_MSG_HTNG_SET_INIT_WAKEUP_VOL	0x85
90 #define CEC_MSG_HTNG_CLR_ALL_SLEEP_WAKE		0x86
91 #define CEC_MSG_HTNG_GLOBAL_DIRECT_TUNE_FREQ	0x88
92 /* HTNG Channel Type Operand (htng_chan_type) */
93 #define CEC_OP_HTNG_CHAN_TYPE_AUTO		0x00
94 #define CEC_OP_HTNG_CHAN_TYPE_ANA_ANT		0x01
95 #define CEC_OP_HTNG_CHAN_TYPE_ANA_CABLE		0x02
96 #define CEC_OP_HTNG_CHAN_TYPE_DIG_ANT		0x03
97 #define CEC_OP_HTNG_CHAN_TYPE_DIG_CABLE		0x04
98 #define CEC_OP_HTNG_CHAN_TYPE_SATELLITE		0x06
99 /* HTNG Program Type Operand (htng_prog_type) */
100 #define CEC_OP_HTNG_PROG_TYPE_AV		0x00
101 #define CEC_OP_HTNG_PROG_TYPE_RADIO		0x01
102 /* HTNG System Type Operand (htng_system_type) */
103 #define CEC_OP_HTNG_SYSTEM_TYPE_PAL_BG		0x00
104 #define CEC_OP_HTNG_SYSTEM_TYPE_PAL_I		0x01
105 #define CEC_OP_HTNG_SYSTEM_TYPE_PAL_DK		0x02
106 #define CEC_OP_HTNG_SYSTEM_TYPE_PAL_M		0x03
107 #define CEC_OP_HTNG_SYSTEM_TYPE_PAL_N		0x04
108 #define CEC_OP_HTNG_SYSTEM_TYPE_SECAM_BG	0x05
109 #define CEC_OP_HTNG_SYSTEM_TYPE_SECAM_DK	0x06
110 #define CEC_OP_HTNG_SYSTEM_TYPE_SECAM_L		0x07
111 #define CEC_OP_HTNG_SYSTEM_TYPE_NTSC_M		0x08
112 /* HTNG Modulation Type Operand (htng_mod_type) */
113 #define CEC_OP_HTNG_MOD_TYPE_AUTO		0x00
114 #define CEC_OP_HTNG_MOD_TYPE_QPSK		0x01
115 #define CEC_OP_HTNG_MOD_TYPE_QCAM16		0x02
116 #define CEC_OP_HTNG_MOD_TYPE_QCAM32		0x03
117 #define CEC_OP_HTNG_MOD_TYPE_QCAM64		0x04
118 #define CEC_OP_HTNG_MOD_TYPE_QCAM128		0x05
119 #define CEC_OP_HTNG_MOD_TYPE_QCAM256		0x06
120 #define CEC_OP_HTNG_MOD_TYPE_DQPSK		0x07
121 /* HTNG Symbol Rate Operand (htng_symbol_rate) */
122 #define CEC_OP_HTNG_SYMBOL_RATE_AUTO		0x00
123 #define CEC_OP_HTNG_SYMBOL_RATE_MANUAL		0x01
124 
125 #define CEC_MSG_HTNG_GLOBAL_DIRECT_TUNE_CHAN	0x89
126 #define CEC_MSG_HTNG_GLOBAL_DIRECT_TUNE_EXT_FREQ 0x8a
127 /* HTNG Extended Channel Type Operand (htng_ext_chan_type) */
128 #define CEC_OP_HTNG_EXT_CHAN_TYPE_AUTO		0x00
129 #define CEC_OP_HTNG_EXT_CHAN_TYPE_ANA_ANT	0x01
130 #define CEC_OP_HTNG_EXT_CHAN_TYPE_ANA_CABLE	0x02
131 #define CEC_OP_HTNG_EXT_CHAN_TYPE_DVB_T_ISDB_T_DTMB 0x03
132 #define CEC_OP_HTNG_EXT_CHAN_TYPE_DVB_C		0x04
133 #define CEC_OP_HTNG_EXT_CHAN_TYPE_DVB_T2	0x05
134 /* HTNG ONID Operand (htng_onid) */
135 #define CEC_OP_HTNG_ONID_AUTO			0x00
136 #define CEC_OP_HTNG_ONID_MANUAL			0x01
137 /* HTNG NID Operand (htng_nid) */
138 #define CEC_OP_HTNG_NID_AUTO			0x00
139 #define CEC_OP_HTNG_NID_MANUAL			0x01
140 /* HTNG TSID PLP Operand (htng_tsid_plp) */
141 #define CEC_OP_HTNG_TSID_PLP_AUTO		0x00
142 #define CEC_OP_HTNG_TSID_PLP_MANUAL		0x01
143 
144 #endif
145