summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2013-09-03 14:17:58 -0700
committerChong Zhang <chz@google.com>2013-09-07 23:33:50 -0700
commitb344adf0892e37fe50aabcf7f8ad01f3473bbb4d (patch)
tree9cb38c0223a710d9a1b0975e566c0c874bdc9391 /include/media
parent77414216cde4d131eb09454d81dab30e408e4e7a (diff)
downloadframeworks_native-b344adf0892e37fe50aabcf7f8ad01f3473bbb4d.zip
frameworks_native-b344adf0892e37fe50aabcf7f8ad01f3473bbb4d.tar.gz
frameworks_native-b344adf0892e37fe50aabcf7f8ad01f3473bbb4d.tar.bz2
HDCP: add getCaps to query HDCP module capabilities
This is used now to query whether HDCP module supports encryption from a native buffer output from the encoder. Bug: 10609422 Change-Id: Ib7fa14e7f4de1da90b46eaa174a7a05ec9dacbdc
Diffstat (limited to 'include/media')
-rw-r--r--include/media/hardware/HDCPAPI.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/hardware/HDCPAPI.h b/include/media/hardware/HDCPAPI.h
index d4abb3f..3a53e9f 100644
--- a/include/media/hardware/HDCPAPI.h
+++ b/include/media/hardware/HDCPAPI.h
@@ -88,6 +88,11 @@ struct HDCPModule {
// Request to shutdown the active HDCP session.
virtual status_t shutdownAsync() = 0;
+ // Returns the capability bitmask of this HDCP session.
+ virtual uint32_t getCaps() {
+ return HDCP_CAPS_ENCRYPT;
+ }
+
// ENCRYPTION only:
// Encrypt data according to the HDCP spec. "size" bytes of data are
// available at "inData" (virtual address), "size" may not be a multiple