DO NOT MERGE: Do not reply with <Feature Abort> to CEC Broadcast message
Broadcast message is not targeted to a specific device but for announcement. Individual reponse with <Feature Abort> is neither necessary nor useful. Changed to send the message back only for direct messages. Change-Id: I927aa8e58a9868e158ed945c753492207e7c97f6
This commit is contained in:
committed by
Jungshik Jang
parent
e1e63c7c54
commit
48a0729d62
@@ -499,14 +499,14 @@ final class HdmiCecController {
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: Use device's source address for broadcast message.
|
||||
int sourceAddress = message.getDestination() != HdmiCec.ADDR_BROADCAST ?
|
||||
message.getDestination() : 0;
|
||||
// Reply <Feature Abort> to initiator (source) for all requests.
|
||||
HdmiCecMessage cecMessage = HdmiCecMessageBuilder.buildFeatureAbortCommand
|
||||
(sourceAddress, message.getSource(), message.getOpcode(),
|
||||
HdmiCecMessageBuilder.ABORT_REFUSED);
|
||||
sendCommand(cecMessage, null);
|
||||
if (message.getDestination() != HdmiCec.ADDR_BROADCAST) {
|
||||
int sourceAddress = message.getDestination();
|
||||
// Reply <Feature Abort> to initiator (source) for all requests.
|
||||
HdmiCecMessage cecMessage = HdmiCecMessageBuilder.buildFeatureAbortCommand(
|
||||
sourceAddress, message.getSource(), message.getOpcode(),
|
||||
HdmiCecMessageBuilder.ABORT_REFUSED);
|
||||
sendCommand(cecMessage, null);
|
||||
}
|
||||
}
|
||||
|
||||
void sendCommand(HdmiCecMessage cecMessage) {
|
||||
|
||||
Reference in New Issue
Block a user