cec: fix the initial hdmi port setting
authorLars Op den Kamp <lars@opdenkamp.eu>
Mon, 13 Feb 2012 19:45:35 +0000 (20:45 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Mon, 13 Feb 2012 19:45:35 +0000 (20:45 +0100)
include/cectypes.h
src/lib/CECProcessor.cpp

index 3501ce356f74562dc83d4340678aaa75f525e5fb..1cdb3ea8c619c23cbe72f171c7211dc631cff6d9 100644 (file)
@@ -941,7 +941,7 @@ typedef struct libcec_configuration
   {
     memset(strDeviceName, 0, 13);
     deviceTypes.clear();
-    iPhysicalAddress = CEC_DEFAULT_PHYSICAL_ADDRESS;
+    iPhysicalAddress = 0;
     baseDevice       = (cec_logical_address)CEC_DEFAULT_BASE_DEVICE;
     iHDMIPort        = CEC_DEFAULT_HDMI_PORT;
     clientVersion    = CEC_CLIENT_VERSION_PRE_1_5;
index 0ea5e8adb36c403cbb59e6c0a48bf1dc92245f7a..bf23d94b6863bef1337765c34f174823b25970df 100644 (file)
@@ -214,6 +214,7 @@ bool CCECProcessor::Initialise(void)
 
   if (m_iPhysicalAddress != 0)
   {
+    CLibCEC::AddLog(CEC_LOG_NOTICE, "setting the physical address to %4x", m_iPhysicalAddress);
     m_busDevices[m_logicalAddresses.primary]->m_iPhysicalAddress = m_iPhysicalAddress;
     if ((bReturn = m_busDevices[m_logicalAddresses.primary]->TransmitPhysicalAddress()) == false)
       CLibCEC::AddLog(CEC_LOG_ERROR, "unable to set the physical address to %4x", m_iPhysicalAddress);