mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Headphone / lineout pause/resume #FS13237
Allow Lineout to behave like headphone port in regards to plug/unplug pause/resume Change-Id: I9cb2c9c40e0bdf3bf7e1e272164acd343f6b3850
This commit is contained in:
parent
4fa945d810
commit
2df3a5b04c
6 changed files with 56 additions and 13 deletions
|
|
@ -89,10 +89,12 @@ void button_init_device(void)
|
|||
__gpio_as_output(PIN_CHARGE_CON);
|
||||
|
||||
__gpio_as_input(PIN_PH_DECT);
|
||||
__gpio_enable_pull(PIN_PH_DECT);
|
||||
/*__gpio_disable_pull(PIN_PH_DECT); // Spurious Detections */
|
||||
|
||||
__gpio_as_input(PIN_LO_DECT);
|
||||
__gpio_disable_pull(PIN_LO_DECT);
|
||||
__gpio_enable_pull(PIN_LO_DECT);
|
||||
/*__gpio_disable_pull(PIN_LO_DECT); // Spurious Detections */
|
||||
}
|
||||
|
||||
bool button_hold(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue