| 208 | } |
| 209 | |
| 210 | int CCECCommandHandler::HandleActiveSource(const cec_command &command) |
| 211 | { |
| 212 | if (command.parameters.size == 2) |
| 213 | { |
| 214 | uint16_t iAddress = ((uint16_t)command.parameters[0] << 8) | ((uint16_t)command.parameters[1]); |
| 215 | CCECBusDevice *device = m_processor->GetDevice(command.initiator); |
| 216 | if (device) |
| 217 | { |
| 218 | device->SetPhysicalAddress(iAddress); |
| 219 | device->MarkAsActiveSource(); |
| 220 | } |
| 221 | |
| 222 | m_processor->GetDevices()->SignalAll(command.opcode); |
| 223 | return COMMAND_HANDLED; |
| 224 | } |
| 225 | |
| 226 | return CEC_ABORT_REASON_INVALID_OPERAND; |
| 227 | } |
| 228 | |
| 229 | int CCECCommandHandler::HandleDeckControl(const cec_command &command) |
| 230 | { |
nothing calls this directly
no test coverage detected