I had same issue with Xperia SL. I just tried to insert the headphone jack in and out few times, in a cross position and it worked
open