summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDomi Papoi <dpapoi@codeaurora.org>2015-10-05 16:08:08 -0400
committerGerrit - the friendly Code Review server <code-review@localhost>2015-10-06 12:01:37 -0700
commit3ef9fa6abc653221f986283658efefc53a03fb95 (patch)
tree73c9a303ab78286ffe07e8ef011d44db57250efe
parent45922f06fc68e7e27bee2eea777447c887a35f52 (diff)
downloadhardware_libhardware-3ef9fa6abc653221f986283658efefc53a03fb95.zip
hardware_libhardware-3ef9fa6abc653221f986283658efefc53a03fb95.tar.gz
hardware_libhardware-3ef9fa6abc653221f986283658efefc53a03fb95.tar.bz2
tv_input: Add buffer count support
Buffer producer thread only works on one buffer at a time, we need to be able to configure number of buffers allocated for datapath. Change-Id: I6165d87e7a5e0fe1c7dc0456d05ee9ab1f67201d
-rw-r--r--include/hardware/tv_input.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hardware/tv_input.h b/include/hardware/tv_input.h
index ed3fafb..456b06e 100644
--- a/include/hardware/tv_input.h
+++ b/include/hardware/tv_input.h
@@ -278,6 +278,9 @@ typedef struct buffer_producer_stream {
/* OUT: Client must allocate a buffer with this format. */
uint32_t format;
+
+ /* OUT: Client must allocate buffers based on this count. */
+ uint32_t buffer_count;
} buffer_producer_stream_t;
typedef struct tv_stream {