summaryrefslogtreecommitdiffstats
path: root/include/hardware/hdmi_cec.h
diff options
context:
space:
mode:
authorJinsuk Kim <jinsukkim@google.com>2014-07-09 17:17:24 +0900
committerJinsuk Kim <jinsukkim@google.com>2014-07-09 17:17:24 +0900
commitca6fa797034cad0fe827724bf1adb7d8979108bc (patch)
tree0fd5b4dd88eaa331885c4c4fbec02a03638e6da1 /include/hardware/hdmi_cec.h
parent30f3e6d348e5267320b40dbd8a67ffd77d179b4b (diff)
downloadhardware_libhardware-ca6fa797034cad0fe827724bf1adb7d8979108bc.zip
hardware_libhardware-ca6fa797034cad0fe827724bf1adb7d8979108bc.tar.gz
hardware_libhardware-ca6fa797034cad0fe827724bf1adb7d8979108bc.tar.bz2
Use the term port_id for HDMI port index across definitions
Renamed various terms like, port, port_num to port_id, and added a description that the id starts from 1. Change-Id: I9229edff7fd75dd15e672e309369e237ca339238
Diffstat (limited to 'include/hardware/hdmi_cec.h')
-rw-r--r--include/hardware/hdmi_cec.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/hardware/hdmi_cec.h b/include/hardware/hdmi_cec.h
index d7951f3..95c0c4e 100644
--- a/include/hardware/hdmi_cec.h
+++ b/include/hardware/hdmi_cec.h
@@ -237,7 +237,7 @@ typedef struct hotplug_event {
* true if the cable is connected; otherwise false.
*/
int connected;
- int port;
+ int port_id;
} hotplug_event_t;
typedef struct tx_status_event {
@@ -262,7 +262,8 @@ typedef struct hdmi_event {
*/
typedef struct hdmi_port_info {
hdmi_port_type_t type;
- int port_num;
+ // Port ID should start from 1 which corresponds to HDMI "port 1".
+ int port_id;
int cec_supported;
int arc_supported;
uint16_t physical_address;
@@ -396,7 +397,7 @@ typedef struct hdmi_cec_device {
* Returns HDMI_CONNECTED if a device is connected, otherwise HDMI_NOT_CONNECTED.
* The HAL should watch for +5V power signal to determine the status.
*/
- int (*is_connected)(const struct hdmi_cec_device* dev, int port);
+ int (*is_connected)(const struct hdmi_cec_device* dev, int port_id);
/* Reserved for future use to maximum 16 functions. Must be NULL. */
void* reserved[16 - 11];