摘要 |
The present disclosure provides an electronic device and a method for switching an audio input channel of the electronic device. The electronic device includes a headphone interface, a detection circuit, a signal processing unit, and a multiplexer. The headphone interface is operable to connect with an audio connector of a headphone. The detection circuit includes a headphone pin and a button pin. The detection circuit detects a level of a last pole of the audio connector, transfers the level of the last pole into a first level of the headphone pin and a second level of the button pin, and outputs the first level and the second level to the signal processing unit. The signal processing unit transmits commands to the multiplexer in response to the first level and the second level. The multiplexer switches the audio input channel of the electronic device based on the commands.
|