[LG Optimus L9 P760, P765, P768, P769] facuarmo:
Hi guys, I'm here to tell you that my LG Optimus L9's audio output is experiencing a strange behavior. If you put the volume all the way up, it cracks for some seconds and the it closes the output, pauses the music, marks the headphones as disconnected and then, changes the output to the speaker until I unplug and plug again the headphones.

Here's the dmesg:

<7>[11-11 22:03:17.653] =============================================twl6040_audio_handler
<7>[11-11 22:03:17.677] Headset JACK State is Matched 3
<7>[11-11 22:03:17.677] =============================================twl6040_audio_handler
<7>[11-11 22:03:17.677] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:17.677] =============================================twl6040_audio_handler
<7>[11-11 22:03:17.700] Headset JACK State is Matched 3
<7>[11-11 22:03:17.700] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:17.700] =============================================twl6040_audio_handler
<7>[11-11 22:03:17.724] Headset JACK State is Matched 3
<7>[11-11 22:03:17.724] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:17.724] =============================================twl6040_audio_handler
<7>[11-11 22:03:17.747] Headset JACK State is Matched 3
<7>[11-11 22:03:17.747] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:17.747] =============================================twl6040_audio_handler
<7>[11-11 22:03:17.771] Headset JACK State is Matched 3
<7>[11-11 22:03:17.771] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:17.771] =============================================twl6040_audio_handler
<7>[11-11 22:03:17.794] Headset JACK State is Matched 3
<7>[11-11 22:03:17.794] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:17.794] =============================================twl6040_audio_handler
<7>[11-11 22:03:17.817] Headset JACK State is Matched 3
<7>[11-11 22:03:17.817] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:17.825] =============================================twl6040_audio_handler
<7>[11-11 22:03:17.849] Headset JACK State is Matched 3
<7>[11-11 22:03:17.849] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:17.849] =============================================twl6040_audio_handler
<7>[11-11 22:03:17.849] =============================================twl6040_audio_handler
<7>[11-11 22:03:17.872] Headset JACK State is Matched 3
<7>[11-11 22:03:17.872] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:17.872] =============================================twl6040_audio_handler
<7>[11-11 22:03:17.896] Headset JACK State is Matched 3
<7>[11-11 22:03:17.896] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:17.896] =============================================twl6040_audio_handler
<7>[11-11 22:03:17.896] =============================================twl6040_audio_handler
<7>[11-11 22:03:17.919] Headset JACK State is Matched 3
<7>[11-11 22:03:17.919] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:17.919] =============================================twl6040_audio_handler
<7>[11-11 22:03:17.942] Headset JACK State is Matched 3
<7>[11-11 22:03:17.942] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:17.942] =============================================twl6040_audio_handler
<7>[11-11 22:03:17.966] Headset JACK State is Matched 3
<7>[11-11 22:03:17.966] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:17.974] =============================================twl6040_audio_handler
<7>[11-11 22:03:17.997] Headset JACK State is Matched 3
<7>[11-11 22:03:17.997] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:17.997] =============================================twl6040_audio_handler
<7>[11-11 22:03:18.005] =============================================twl6040_audio_handler
<7>[11-11 22:03:18.028] Headset JACK State is Matched 3
<7>[11-11 22:03:18.028] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:18.028] =============================================twl6040_audio_handler
<7>[11-11 22:03:18.052] Headset JACK State is Matched 3
<7>[11-11 22:03:18.052] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:18.052] =============================================twl6040_audio_handler
<7>[11-11 22:03:18.075] Headset JACK State is Matched 3
<7>[11-11 22:03:18.075] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:18.075] =============================================twl6040_audio_handler
<7>[11-11 22:03:18.075] =============================================twl6040_audio_handler
<7>[11-11 22:03:18.099] Headset JACK State is Matched 3
<7>[11-11 22:03:18.099] ***************** SND_JACK_HEADSET 4-Pole
<7>[11-11 22:03:18.114] =============================================twl6040_audio_handler
<7>[11-11 22:03:18.138] >> JACK Removed State is Matched [3]-> 0 hook_n:0
<7>[11-11 22:03:18.138] ***************** Headset None

I'm using the Sony EXTRA BASS MDR-XB450AP.