commit | 3298d360630957f93b1aaa63ad5a8cc0f9a269e2 | [log] [tgz] |
---|---|---|
author | Eiji <Eiji.Takahashi@sony.com> | Tue Aug 06 13:56:37 2024 +0900 |
committer | Paul Colta <donpaul@google.com> | Wed Aug 07 23:03:28 2024 +0000 |
tree | 580276830b57201f57fd471cae04938d8e623b11 | |
parent | 2d8aff7ea01a064a496a9b7d0a496f8526db6636 [diff] |
HDMI: Fix BCD handling error isValidHour/isValidMinute accept a parameter as BCD encoded value, but they check it without translating to raw value, so valid hour/minute may be detected as an error; e.g. 18:00 is within 23:00 but 0x18(24) is over 23 * 0x18 should be decoded (0x10 >> 4) x 10 + 0x08 = 18 Fix to translate the parameter before checking by isWithinRange. Bug: 357733495 Change-Id: Id0cfb1211048b1f2eaebf3db5814e3da0f34e5b9