forked from len0rd/rockbox
Android: listen to ACTION_AUDIO_BECOMING_NOISY for headphone (FS#12097).
This event is sent before the audio is routed back to the speaker so we get the information about the unplugged headphone notably earlier. Decrease the debouncing of the headphone status from 1s to 0.5s to work around audio still getting played back via the speaker due to the pause delay by debouncing. On Android we shouldn't need the debouncing at all. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29957 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6c22be4a3d
commit
d25a61f01c
2 changed files with 17 additions and 1 deletions
|
@ -177,7 +177,7 @@ static void button_tick(void)
|
|||
/* Use the autoresetting oneshot to debounce the detection signal */
|
||||
phones_present = !phones_present;
|
||||
timeout_register(&hp_detect_timeout, btn_detect_callback,
|
||||
HZ, phones_present);
|
||||
HZ/2, phones_present);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue