google/chell: Adjust nuvoton 8825 button thresholds, add properties
Set "nuvoton,sar-threshold" property to thresholds based on tuning with the Android Wired Headphone Compatibility Kit and Chell EVT. Also set properties nuvoton,sar-compare-time and nuvoton,sar-sampling-time. The values of compare and sampling time align with the ones from this CL: https://chromium-review.googlesource.com/306372 Signed-off-by: Benson Leung <bleung@chromium.org> BUG=chrome-os-partner:49333 BRANCH=none TEST=Run evtest, selecting the input event for sklnau8825adi Using the Nominal headphones from the kit, check that the buttons for "KEY_VOLUMEDOWN", "KEY_VOLUMEUP", "KEY_MEDIA", and code 582 (?) (should be voice search, but evtest doesn't understand) All of these buttons should work properly. Change-Id: I43dc1957f7d95744f41039a306d323806e66c56a Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 2bb545500afeb5b4fa0d1cd02dbf6453f19901ab Original-Change-Id: I126aae1e5ed1b9e1a2429e8c94fe08b3ba3ca736 Original-Reviewed-on: https://chromium-review.googlesource.com/322243 Original-Commit-Ready: Benson Leung <bleung@chromium.org> Original-Tested-by: Benson Leung <bleung@chromium.org> Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/13013 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
bbef4bde2e
commit
b7090ee1d0
|
@ -165,11 +165,17 @@ Scope (\_SB.PCI0.I2C4)
|
||||||
* Android specification
|
* Android specification
|
||||||
*/
|
*/
|
||||||
Package () {"nuvoton,sar-threshold-num", 4},
|
Package () {"nuvoton,sar-threshold-num", 4},
|
||||||
|
/*
|
||||||
|
* Thresholds determined using the Wired Headphone
|
||||||
|
* Compatibility Kit and a Chell EVT
|
||||||
|
*/
|
||||||
Package () {"nuvoton,sar-threshold",
|
Package () {"nuvoton,sar-threshold",
|
||||||
Package () {0xc, 0x1e, 0x38, 0x60}},
|
Package () {0x20, 0x32, 0x50, 0x70}},
|
||||||
Package () {"nuvoton,sar-hysteresis", 1},
|
Package () {"nuvoton,sar-hysteresis", 1},
|
||||||
/* VDDA for button impedance measurement */
|
/* VDDA for button impedance measurement */
|
||||||
Package () {"nuvoton,sar-voltage", 0},
|
Package () {"nuvoton,sar-voltage", 0},
|
||||||
|
Package () {"nuvoton,sar-compare-time", 0 },
|
||||||
|
Package () {"nuvoton,sar-sampling-time", 0 },
|
||||||
/* 100ms short key press debounce */
|
/* 100ms short key press debounce */
|
||||||
Package () {"nuvoton,short-key-debounce", 2},
|
Package () {"nuvoton,short-key-debounce", 2},
|
||||||
/* 2^(7+2) = 512 ms insert/eject debounce */
|
/* 2^(7+2) = 512 ms insert/eject debounce */
|
||||||
|
|
Loading…
Reference in New Issue