repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: vendor command 05 -> TransmitVendorCommandSetDeviceMode
[deb_libcec.git]
/
src
/
lib
/
implementations
/
SLCommandHandler.cpp
diff --git
a/src/lib/implementations/SLCommandHandler.cpp
b/src/lib/implementations/SLCommandHandler.cpp
index 7c2623f39b3355f61838a090966e0faa539787d5..1d4c8c5a70605ae75db52a019a88d21e94432b6c 100644
(file)
--- a/
src/lib/implementations/SLCommandHandler.cpp
+++ b/
src/lib/implementations/SLCommandHandler.cpp
@@
-45,7
+45,7
@@
using namespace CEC;
#define SL_COMMAND_REQUEST_POWER_STATUS 0xa0
#define SL_COMMAND_POWER_ON 0x03
#define SL_COMMAND_CONNECT_REQUEST 0x04
#define SL_COMMAND_REQUEST_POWER_STATUS 0xa0
#define SL_COMMAND_POWER_ON 0x03
#define SL_COMMAND_CONNECT_REQUEST 0x04
-#define SL_COMMAND_
CONNECT_ACCEPT
0x05
+#define SL_COMMAND_
SET_DEVICE_MODE
0x05
CSLCommandHandler::CSLCommandHandler(CCECBusDevice *busDevice) :
CCECCommandHandler(busDevice),
CSLCommandHandler::CSLCommandHandler(CCECBusDevice *busDevice) :
CCECCommandHandler(busDevice),
@@
-211,17
+211,17
@@
void CSLCommandHandler::HandleVendorCommandPowerOnStatus(const cec_command &comm
void CSLCommandHandler::HandleVendorCommandSLConnect(const cec_command &command)
{
m_bSLEnabled = true;
void CSLCommandHandler::HandleVendorCommandSLConnect(const cec_command &command)
{
m_bSLEnabled = true;
- TransmitVendorCommand
05(m_processor->GetLogicalAddress(), command.initiator
);
+ TransmitVendorCommand
SetDeviceMode(m_processor->GetLogicalAddress(), command.initiator, CEC_DEVICE_TYPE_RECORDING_DEVICE
);
ActivateSource();
}
ActivateSource();
}
-void CSLCommandHandler::TransmitVendorCommand
05(const cec_logical_address iSource, const cec_logical_address iDestination
)
+void CSLCommandHandler::TransmitVendorCommand
SetDeviceMode(const cec_logical_address iSource, const cec_logical_address iDestination, const cec_device_type type
)
{
cec_command response;
cec_command::Format(response, iSource, iDestination, CEC_OPCODE_VENDOR_COMMAND);
{
cec_command response;
cec_command::Format(response, iSource, iDestination, CEC_OPCODE_VENDOR_COMMAND);
- response.PushBack(SL_COMMAND_
CONNECT_ACCEPT
);
- response.PushBack((uint8_t)
m_processor->m_busDevices[iSource]->GetType()
);
+ response.PushBack(SL_COMMAND_
SET_DEVICE_MODE
);
+ response.PushBack((uint8_t)
type
);
Transmit(response, false);
}
Transmit(response, false);
}