Commit 1913944
Fix volume keys wakeup status handling
The same status flag is used for the three different volume keys,
however nothing prevents users from pressing multiple keys at the
same time. This allows to set the status flag with one volume key
and clear it with the other volume key.
Use one flag per key so that we never end up in an inconsistent
state. This fixes the seldom power button issues that happen when
the "volume wake" feature is enabled.
Change-Id: I08f5f9ff696bef3dd840cff97d570e44ebe03e4e1 parent b3616bc commit 1913944
1 file changed
Lines changed: 36 additions & 4 deletions
Lines changed: 36 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
499 | 501 | | |
500 | 502 | | |
501 | 503 | | |
| |||
5572 | 5574 | | |
5573 | 5575 | | |
5574 | 5576 | | |
| 5577 | + | |
| 5578 | + | |
| 5579 | + | |
| 5580 | + | |
| 5581 | + | |
| 5582 | + | |
| 5583 | + | |
| 5584 | + | |
| 5585 | + | |
| 5586 | + | |
| 5587 | + | |
| 5588 | + | |
| 5589 | + | |
| 5590 | + | |
| 5591 | + | |
| 5592 | + | |
| 5593 | + | |
| 5594 | + | |
| 5595 | + | |
| 5596 | + | |
| 5597 | + | |
| 5598 | + | |
| 5599 | + | |
| 5600 | + | |
| 5601 | + | |
| 5602 | + | |
| 5603 | + | |
| 5604 | + | |
| 5605 | + | |
| 5606 | + | |
5575 | 5607 | | |
5576 | 5608 | | |
5577 | 5609 | | |
| |||
5667 | 5699 | | |
5668 | 5700 | | |
5669 | 5701 | | |
5670 | | - | |
| 5702 | + | |
5671 | 5703 | | |
5672 | | - | |
| 5704 | + | |
5673 | 5705 | | |
5674 | | - | |
| 5706 | + | |
5675 | 5707 | | |
5676 | 5708 | | |
5677 | 5709 | | |
| |||
0 commit comments