| 96 | } |
| 97 | |
| 98 | bool CPHCommandHandler::InitHandler(void) |
| 99 | { |
| 100 | CCECBusDevice *primary = m_processor->GetPrimaryDevice(); |
| 101 | if (primary && primary->GetLogicalAddress() != CECDEVICE_UNREGISTERED) |
| 102 | { |
| 103 | //XXX hack to use this handler for the primary device |
| 104 | if (m_busDevice->GetLogicalAddress() == CECDEVICE_TV && |
| 105 | primary && m_busDevice->GetLogicalAddress() != primary->GetLogicalAddress()) |
| 106 | { |
| 107 | primary->SetVendorId(CEC_VENDOR_PHILIPS); |
| 108 | primary->ReplaceHandler(false); |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | return CCECCommandHandler::InitHandler(); |
| 113 | } |
| 114 | |
| 115 | bool CPHCommandHandler::ActivateSource(bool bTransmitDelayedCommandsOnly /* = false */) |
| 116 | { |
nothing calls this directly
no test coverage detected