cec_command::format(command, m_iLogicalAddress, CECDEVICE_BROADCAST, CEC_OPCODE_REPORT_PHYSICAL_ADDRESS);
command.parameters.push_back((uint8_t) ((m_physicaladdress >> 8) & 0xFF));
command.parameters.push_back((uint8_t) (m_physicaladdress & 0xFF));
+ command.parameters.push_back((uint8_t) (CEC_DEVICE_TYPE_PLAYBACK_DEVICE));
Transmit(command);
}
if (msg.size() >= 2)
{
logStr.AppendFormat(" initiator:%u destination:%u ack:%s %s", msg.initiator(), msg.destination(), msg.ack() ? "high" : "low", msg.eom() ? "eom" : "");
- m_currentframe.initiator = msg.initiator();
+ m_currentframe.initiator = msg.initiator();
m_currentframe.destination = msg.destination();
m_currentframe.ack = msg.ack();
m_currentframe.eom = msg.eom();
uint8_t iData = msg[1];
logStr.AppendFormat(" %02x", iData);
m_currentframe.push_back(iData);
+ m_currentframe.eom = msg.eom();
}
m_controller->AddLog(CEC_LOG_DEBUG, logStr.c_str());
}
break;
case CEC_OPCODE_GIVE_DEVICE_POWER_STATUS:
ReportPowerState(command.initiator);
- SetActiveView();
break;
case CEC_OPCODE_GET_CEC_VERSION:
ReportCECVersion(command.initiator);
m_controller->AddLog(CEC_LOG_DEBUG, strLog.c_str());
}
}
+
+const char *CCECProcessor::CECVendorIdToString(const uint64_t iVendorId)
+{
+ switch (iVendorId)
+ {
+ case CEC_VENDOR_SAMSUNG:
+ return "Samsung";
+ default:
+ return "Unknown";
+ }
+}