| 1162 | } |
| 1163 | |
| 1164 | bool CCECCommandHandler::TransmitSetStreamPath(uint16_t iStreamPath, bool bIsReply) |
| 1165 | { |
| 1166 | if (m_busDevice->GetLogicalAddress() != CECDEVICE_TV) |
| 1167 | { |
| 1168 | LIB_CEC->AddLog(CEC_LOG_ERROR, "only the TV is allowed to send CEC_OPCODE_SET_STREAM_PATH"); |
| 1169 | return false; |
| 1170 | } |
| 1171 | cec_command command; |
| 1172 | cec_command::Format(command, m_busDevice->GetLogicalAddress(), CECDEVICE_BROADCAST, CEC_OPCODE_SET_STREAM_PATH); |
| 1173 | command.parameters.PushBack((uint8_t) ((iStreamPath >> 8) & 0xFF)); |
| 1174 | command.parameters.PushBack((uint8_t) (iStreamPath & 0xFF)); |
| 1175 | |
| 1176 | return Transmit(command, false, bIsReply); |
| 1177 | } |
| 1178 | |
| 1179 | bool CCECCommandHandler::TransmitSystemAudioModeStatus(const cec_logical_address iInitiator, const cec_logical_address iDestination, cec_system_audio_status state, bool bIsReply) |
| 1180 | { |
no test coverage detected