Skip to content

Commit b30fc83

Browse files
committed
RPiCECAdapterDetection: Include check that we can set passive mode
This allows the firmware driver to be discounted when not available (e.g. using KMS driver)
1 parent 6239ae1 commit b30fc83

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/libcec/adapter/RPi/RPiCECAdapterDetection.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
extern "C" {
4040
#include <interface/vmcs_host/vc_cecservice.h>
4141
#include <interface/vchiq_arm/vchiq_if.h>
42+
#include <bcm_host.h>
4243
}
4344

4445
using namespace CEC;
@@ -54,6 +55,11 @@ bool CRPiCECAdapterDetection::FindAdapter(void)
5455
if ((iResult = vchi_connect(NULL, 0, vchiq_instance)) != VCHIQ_SUCCESS)
5556
return false;
5657

58+
bcm_host_init();
59+
iResult = vc_cec_set_passive(true);
60+
if (iResult != VCHIQ_SUCCESS)
61+
return false;
62+
5763
return true;
5864
}
5965

0 commit comments

Comments
 (0)