Android: listen to ACTION_AUDIO_BECOMING_NOISY for headphone (FS#12097).
commitd382edfe881d993f8ab3d04010631b21a52350a2
authorbluebrother <bluebrother@a1c6a512-1295-4272-9138-f99709370657>
Sat, 4 Jun 2011 19:17:51 +0000 (4 19:17 +0000)
committerbluebrother <bluebrother@a1c6a512-1295-4272-9138-f99709370657>
Sat, 4 Jun 2011 19:17:51 +0000 (4 19:17 +0000)
treea3334620eae5b1818d0afea69e686ddc0a610905
parent28a83278c8ad2b4a72c9de782deac268a23023e9
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
android/src/org/rockbox/RockboxService.java
firmware/drivers/button.c