Headphone is not working in MIUI I have recently installed MIUI on my SONY XPERIA P. Recently I found that headphone(original and others) is not working properly. But when I tap the button (that is in the original headphone) , music is pausing or playing. That means headphone is connected. But no sound is appearing in ear piece!! How can I solve it?
First, this often just a simple problem. Little balls of lint and debris can gather inside the headphone jack. This can cause the plug not to seat fully into the jack. This will prevent the system from recognizing that headphones were connected. I have to clean mine out every few months. I just use on of the little plastic dental picks to pull the lint out. 

Also, since this is not an official MIUI ROM, it could be a problem with the port. Try contacting the ROM maintainer through the forum where you obtained the ROM.