From 14004a262acba6d284ce6489ef18468bdc1a6e5c Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Thu, 12 Dec 2013 02:48:04 +0100 Subject: [PATCH] transmit our physical address when the TV sends it's physical address --- src/lib/implementations/CECCommandHandler.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.34.1