in my case since it happens on both stock and custom rom I'm pretty sure is a problem with one of the two microphones in the motherboard, if so it should be pretty hard to fix. (at least none of the local repair centers I called could do it). I'm waiting for my new Z3 to arrive goodbye moto =(