summaryrefslogtreecommitdiffstats
path: root/include/hardware/tv_input.h
diff options
context:
space:
mode:
authorWonsik Kim <wonsik@google.com>2014-06-12 14:52:39 +0900
committerWonsik Kim <wonsik@google.com>2014-06-13 11:47:08 +0900
commit45849fb74e7e35efbf798798f8b21a66a1846c8a (patch)
tree2d5658167e1691d4eda9186ce1eb92e4396c6f08 /include/hardware/tv_input.h
parent460343a1b57ff372887b76a718e8e8ca89f29c88 (diff)
downloadhardware_libhardware-45849fb74e7e35efbf798798f8b21a66a1846c8a.zip
hardware_libhardware-45849fb74e7e35efbf798798f8b21a66a1846c8a.tar.gz
hardware_libhardware-45849fb74e7e35efbf798798f8b21a66a1846c8a.tar.bz2
tv_input: Add HDMI port ID
Bug: 15570939 Change-Id: Id15ef9dbc79cd9c4f55be1eb114d66e08dfe923d
Diffstat (limited to 'include/hardware/tv_input.h')
-rw-r--r--include/hardware/tv_input.h33
1 files changed, 22 insertions, 11 deletions
diff --git a/include/hardware/tv_input.h b/include/hardware/tv_input.h
index 75aafce..e721caa 100644
--- a/include/hardware/tv_input.h
+++ b/include/hardware/tv_input.h
@@ -62,7 +62,7 @@ typedef struct tv_input_module {
/*****************************************************************************/
-typedef enum tv_input_type {
+enum {
/* HDMI */
TV_INPUT_TYPE_HDMI = 1,
@@ -71,7 +71,8 @@ typedef enum tv_input_type {
/* Passthrough */
TV_INPUT_TYPE_PASSTHROUGH = 3,
-} tv_input_type_t;
+};
+typedef uint32_t tv_input_type_t;
typedef struct tv_input_device_info {
/* Device ID */
@@ -80,10 +81,16 @@ typedef struct tv_input_device_info {
/* Type of physical TV input. */
tv_input_type_t type;
- /*
- * TODO: A union of type specific information. For example, HDMI port
- * identifier that HDMI hardware understands.
- */
+ union {
+ struct {
+ /* HDMI port ID number */
+ uint32_t port_id;
+ } hdmi;
+
+ /* TODO: add other type specific information. */
+
+ int32_t type_info_reserved[16];
+ };
/* TODO: Add capability if necessary. */
@@ -93,10 +100,12 @@ typedef struct tv_input_device_info {
* audio_type == AUDIO_DEVICE_NONE if this input has no audio.
*/
audio_devices_t audio_type;
- char audio_address[AUDIO_DEVICE_MAX_ADDRESS_LEN];
+ const char* audio_address;
+
+ int32_t reserved[16];
} tv_input_device_info_t;
-typedef enum {
+enum {
/*
* Hardware notifies the framework that a device is available.
*/
@@ -121,7 +130,8 @@ typedef enum {
* canceled the request. Client can assume ownership of the buffer again.
*/
TV_INPUT_EVENT_CAPTURE_FAILED = 5,
-} tv_input_event_type_t;
+};
+typedef uint32_t tv_input_event_type_t;
typedef struct tv_input_capture_result {
/* Device ID */
@@ -179,10 +189,11 @@ typedef struct tv_input_callback_ops {
tv_input_event_t* event, void* data);
} tv_input_callback_ops_t;
-typedef enum {
+enum {
TV_STREAM_TYPE_INDEPENDENT_VIDEO_SOURCE = 1,
TV_STREAM_TYPE_BUFFER_PRODUCER = 2,
-} tv_stream_type_t;
+};
+typedef uint32_t tv_stream_type_t;
typedef struct tv_stream_config {
/*