diff options
author | Ben Chen <ben.chen2@quanta.corp-partner.google.com> | 2021-05-03 15:22:54 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-10 10:07:31 +0000 |
commit | 3f0a4e0978e1c593d5013d1df846d8ef8d2d31fe (patch) | |
tree | bbfb5906f90217ffb838980e746f7f07b995872e /board | |
parent | a2ffd0f59694e1fa57144fd22f0b32dbb9368440 (diff) | |
download | chrome-ec-3f0a4e0978e1c593d5013d1df846d8ef8d2d31fe.tar.gz |
magister: modify ADC volume button thresholds
change volume up/down of ADC thresholds value.
BUG=b:167319238
BRANCH=master
TEST=Press Vol+- button function work.
Change-Id: Iddb688832ca5bd343c9e6b577cd129c0895fd7dc
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2952283
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/magolor/board.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/magolor/board.c b/board/magolor/board.c index 5b3c5b0c4d..ed1d3e88db 100644 --- a/board/magolor/board.c +++ b/board/magolor/board.c @@ -978,16 +978,16 @@ static void adc_vol_key_press_check(void) static uint8_t old_adc_key_state; uint8_t adc_key_state_change; - if (volt > 2400 && volt < 2490) { + if (volt > 2400 && volt < 2540) { /* volume-up is pressed */ new_adc_key_state = ADC_VOL_UP_MASK; - } else if (volt > 2600 && volt < 2690) { + } else if (volt > 2600 && volt < 2740) { /* volume-down is pressed */ new_adc_key_state = ADC_VOL_DOWN_MASK; - } else if (volt < 2290) { + } else if (volt < 2300) { /* both volumn-up and volume-down are pressed */ new_adc_key_state = ADC_VOL_UP_MASK | ADC_VOL_DOWN_MASK; - } else if (volt > 2700) { + } else if (volt > 2780) { /* both volumn-up and volume-down are released */ new_adc_key_state = 0; } |