From: Lars Op den Kamp Date: Thu, 12 Dec 2013 01:48:04 +0000 (+0100) Subject: transmit our physical address when the TV sends it's physical address X-Git-Tag: upstream/2.2.0~1^2~3^2~19 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=14004a262acba6d284ce6489ef18468bdc1a6e5c;p=deb_libcec.git transmit our physical address when the TV sends it's physical address --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index cee3c85..ee602f1 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -455,6 +455,13 @@ int CCECCommandHandler::HandleReportPhysicalAddress(const cec_command &command) { uint16_t iNewAddress = ((uint16_t)command.parameters[0] << 8) | ((uint16_t)command.parameters[1]); SetPhysicalAddress(command.initiator, iNewAddress); + + if (command.initiator == CECDEVICE_TV) + { + CCECBusDevice* primary = m_processor->GetPrimaryDevice(); + if (primary) + primary->TransmitPhysicalAddress(false); + } return COMMAND_HANDLED; } return CEC_ABORT_REASON_INVALID_OPERAND;