summaryrefslogtreecommitdiffstats
path: root/modules/tv_input
diff options
context:
space:
mode:
authorWonsik Kim <wonsik@google.com>2014-04-01 11:34:33 +0900
committerWonsik Kim <wonsik@google.com>2014-04-09 21:30:04 +0900
commitdce529a1488a13f3c0df8cc7de5f93262af81646 (patch)
tree46556a6483f7d18d6c93694ec2156e8839e48591 /modules/tv_input
parent46781fd8f60ed0eea0cc2c8c751eb62c4aac5d84 (diff)
downloadhardware_libhardware-dce529a1488a13f3c0df8cc7de5f93262af81646.zip
hardware_libhardware-dce529a1488a13f3c0df8cc7de5f93262af81646.tar.gz
hardware_libhardware-dce529a1488a13f3c0df8cc7de5f93262af81646.tar.bz2
tv_input: add buffer producer profile
Change-Id: Id86e282a06d6353f05d47a2f198bde0534d9dcf2
Diffstat (limited to 'modules/tv_input')
-rw-r--r--modules/tv_input/tv_input.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/tv_input/tv_input.cpp b/modules/tv_input/tv_input.cpp
index bdb47ca..bc02786 100644
--- a/modules/tv_input/tv_input.cpp
+++ b/modules/tv_input/tv_input.cpp
@@ -86,6 +86,17 @@ static int tv_input_close_stream(struct tv_input_device*, int, int)
return -EINVAL;
}
+static int tv_input_request_capture(
+ struct tv_input_device*, int, int, buffer_handle_t, uint32_t)
+{
+ return -EINVAL;
+}
+
+static int tv_input_cancel_capture(struct tv_input_device*, int, int, uint32_t)
+{
+ return -EINVAL;
+}
+
/*****************************************************************************/
static int tv_input_device_close(struct hw_device_t *dev)
@@ -120,6 +131,8 @@ static int tv_input_device_open(const struct hw_module_t* module,
tv_input_get_stream_configurations;
dev->device.open_stream = tv_input_open_stream;
dev->device.close_stream = tv_input_close_stream;
+ dev->device.request_capture = tv_input_request_capture;
+ dev->device.cancel_capture = tv_input_cancel_capture;
*device = &dev->device.common;
status = 0;