From: Lars Op den Kamp Date: Thu, 7 Mar 2013 23:38:50 +0000 (+0100) Subject: rpi: don't set the physical address to 1.0.0.0 when receiving VC_HDMI_UNPLUGGED.... X-Git-Tag: upstream/2.2.0~1^2~5^2~9 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=c66fdf1fa601bf4e30c603eccbed9799e5339628 rpi: don't set the physical address to 1.0.0.0 when receiving VC_HDMI_UNPLUGGED. it may wake up device when they were just sent to standby. issue #142 --- diff --git a/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp b/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp index a68c0ec..76c61b3 100644 --- a/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp +++ b/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp @@ -118,17 +118,13 @@ void CRPiCECAdapterCommunication::OnTVServiceCallback(uint32_t reason, uint32_t { switch(reason) { - case VC_HDMI_UNPLUGGED: - { - m_callback->HandlePhysicalAddressChanged(0x1000); - break; - } case VC_HDMI_ATTACHED: { uint16_t iNewAddress = GetPhysicalAddress(); m_callback->HandlePhysicalAddressChanged(iNewAddress); break; } + case VC_HDMI_UNPLUGGED: case VC_HDMI_DVI: case VC_HDMI_HDMI: case VC_HDMI_HDCP_UNAUTH: