try downloading headset blocker and enable it, I might be that the phone tries to detect headphone signals by incorrectly detecting headphones as a headset, I have the same kind of problem , except music randomly skips and starts anytime the headphone is plugged in , headset blocker worked on stock and cm7 for me but on quattro rc3 4.0.3. It doesn't:/ .