I know this sounds strange, but run it under more water. I'm currently on holiday and been using it in water loads, almost every time I get in the pool, my headphones stop working. I thought maybe it would be crap in the pool water or something so switched it off, ran clean tap water directly into the port, blew the excess out and voila! Worked again. Not sure why but it's happened 3 times now and it's been spot on after a CLEAN water rinse and quick dry.
Sent from my D6503 using XDA Free mobile app
Sony Z2 - Black Locked bootloader