From: Lars Op den Kamp Date: Mon, 13 Feb 2012 19:45:35 +0000 (+0100) Subject: cec: fix the initial hdmi port setting X-Git-Tag: upstream/2.2.0~1^2~35^2~67 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=8cd01ab8b94037e0a86c266b3ddc45a350a22103;p=deb_libcec.git cec: fix the initial hdmi port setting --- diff --git a/include/cectypes.h b/include/cectypes.h index 3501ce3..1cdb3ea 100644 --- a/include/cectypes.h +++ b/include/cectypes.h @@ -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; diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 0ea5e8a..bf23d94 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -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);