commit | b7432cc57cd957fb18f68d7976c5829b3a3a7751 | [log] [tgz] |
---|---|---|
author | Fabien Sanglard <sanglardf@google.com> | Fri Nov 11 09:40:27 2016 -0800 |
committer | Fabien Sanglard <sanglardf@google.com> | Wed Nov 16 16:49:57 2016 -0800 |
tree | 5ec848fc3a328bdf23786ac6d1e30ac4a0e8a23b | |
parent | e52d9e2acec131484588a2eb184d1d4b34eebeb3 [diff] |
Fix HWC2to1Adapter crashing dragon at startup Some devices such a dragon(ryu) do not start with a valid active configuration id (e.g: -1). This is unexpected from HWC2to1Adapter and resulted in crash at startup when switching the device from HWC1 to HWC2 with adapter. This patch detects this at startup and put the device in an expected configutation using the first configuration index (0). Test: Tested on ryu Change-Id: If2bb258d12636f1b2ebe8c7b167708dbf572fbe8