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
This commit is contained in:
Chong Zhang 2013-09-03 14:17:58 -07:00
parent 77414216cd
commit b344adf089

View File

@ -88,6 +88,11 @@ struct HDCPModule {
// Request to shutdown the active HDCP session. // Request to shutdown the active HDCP session.
virtual status_t shutdownAsync() = 0; virtual status_t shutdownAsync() = 0;
// Returns the capability bitmask of this HDCP session.
virtual uint32_t getCaps() {
return HDCP_CAPS_ENCRYPT;
}
// ENCRYPTION only: // ENCRYPTION only:
// Encrypt data according to the HDCP spec. "size" bytes of data are // Encrypt data according to the HDCP spec. "size" bytes of data are
// available at "inData" (virtual address), "size" may not be a multiple // available at "inData" (virtual address), "size" may not be a multiple