| CPC H04R 3/02 (2013.01) [H04R 2420/05 (2013.01); H04R 2420/09 (2013.01)] | 17 Claims |

|
1. An electronic device, comprising a controller, a pull-up circuit, and a universal serial bus Type-C interface, wherein
an output terminal of the pull-up circuit is configured to be connected to a Type-C plug of an earphone through a microphone MIC pin of the Type-C interface;
the controller is configured to control the electronic device to be disconnected from an audio path of the earphone, control an access resistance value of the pull-up circuit to be a first resistance value, and identify normal/reverse insertion of the earphone based on a voltage of the MIC pin of the Type-C interface when the earphone is inserted into the Type-C interface of the electronic device through the Type-C plug; and
the controller is further configured to control the access resistance value of the pull-up circuit to be a second resistance value after the identification is completed, and the first resistance value is greater than the second resistance value.
|