From 2c2a3017624678ee65d92feb51340f542a1d244c Mon Sep 17 00:00:00 2001 From: Jinsuk Kim Date: Tue, 27 May 2014 17:23:27 +0900 Subject: DO NOT MERGE: Fix a bug using wrong addresses for CEC logical address allocation Change-Id: I41da586c16dca4f325d147bb3abe5d4e09f7b91c --- services/core/java/com/android/server/hdmi/HdmiCecController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services') diff --git a/services/core/java/com/android/server/hdmi/HdmiCecController.java b/services/core/java/com/android/server/hdmi/HdmiCecController.java index 68ce607..3c18a59 100644 --- a/services/core/java/com/android/server/hdmi/HdmiCecController.java +++ b/services/core/java/com/android/server/hdmi/HdmiCecController.java @@ -196,7 +196,7 @@ final class HdmiCecController { for (int i = 0; i < NUM_LOGICAL_ADDRESS; ++i) { int curAddress = (startAddress + i) % NUM_LOGICAL_ADDRESS; if (curAddress != HdmiCec.ADDR_UNREGISTERED - && deviceType == HdmiCec.getTypeFromAddress(i)) { + && deviceType == HdmiCec.getTypeFromAddress(curAddress)) { if (!sendPollMessage(curAddress, RETRY_COUNT_FOR_LOGICAL_ADDRESS_ALLOCATION)) { logicalAddress = curAddress; break; -- cgit v1.1