diff options
author | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2012-12-20 00:48:37 +0000 |
---|---|---|
committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2012-12-20 00:48:37 +0000 |
commit | 90d6cf79ae229671d3ef735a94d6e215e1a37c5e (patch) | |
tree | 265c9c97ecb0285992566b2e8353a6b250523283 /media/libstagefright/wifi-display | |
parent | b83e8c40add750ff99afda98c9df0a2baf93b99e (diff) | |
download | frameworks_av-90d6cf79ae229671d3ef735a94d6e215e1a37c5e.zip frameworks_av-90d6cf79ae229671d3ef735a94d6e215e1a37c5e.tar.gz frameworks_av-90d6cf79ae229671d3ef735a94d6e215e1a37c5e.tar.bz2 |
WifiDisplay: Add an HDCP toggle
Some WFD dongles have frequent (or permanent) failures while
negotiating HDCP with the device, so add a toggle to allow
skipping HDCP entirely
Change-Id: I999158df84d4a7489c40ecdf07ebcf107d071d40
Diffstat (limited to 'media/libstagefright/wifi-display')
-rw-r--r-- | media/libstagefright/wifi-display/source/WifiDisplaySource.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp b/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp index b16c5d0..29e9e3d 100644 --- a/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp +++ b/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp @@ -745,7 +745,10 @@ status_t WifiDisplaySource::onReceiveM3Response( } mUsingHDCP = false; - if (!params->findParameter("wfd_content_protection", &value)) { + if (property_get("persist.sys.wfd.nohdcp", val, NULL) + && !strcmp("1", val)) { + ALOGI("Content protection has been disabled for WFD sinks"); + } else if (!params->findParameter("wfd_content_protection", &value)) { ALOGI("Sink doesn't appear to support content protection."); } else if (value == "none") { ALOGI("Sink does not support content protection."); |