| 227 | } |
| 228 | |
| 229 | int CCECCommandHandler::HandleDeckControl(const cec_command &command) |
| 230 | { |
| 231 | CCECPlaybackDevice *device = CCECBusDevice::AsPlaybackDevice(GetDevice(command.destination)); |
| 232 | if (device && command.parameters.size > 0) |
| 233 | { |
| 234 | device->SetDeckControlMode((cec_deck_control_mode) command.parameters[0]); |
| 235 | return COMMAND_HANDLED; |
| 236 | } |
| 237 | |
| 238 | return CEC_ABORT_REASON_INVALID_OPERAND; |
| 239 | } |
| 240 | |
| 241 | int CCECCommandHandler::HandleDeviceCecVersion(const cec_command &command) |
| 242 | { |
nothing calls this directly
no test coverage detected