I'm working with AudioRecord, when I plug the earphones in my device, it will record both the input sound from the microphone in earphones and the input sound from the mic in device.
How can I disable the input sound from the microphone programmatically?