Earphone compatible method, earphone compatible device and mobile terminal

The invention discloses an earphone compatible method, an earphone compatible device and a mobile terminal. The earphone compatible device comprises a processing module, a switch module and a codec, wherein the processing module and the codec are connected with an earphone through the switch module and receive the voice frequency signal of the earphone; the processing module is used for detecting whether a currently inserted earphone is a digital signal earphone or not, and if not, the processing module sends a first control signal to the switch module; the switch module comprises a first change-over switch, and the first change-over switch is in default connection to the processing module and is disconnected from the processing module and connected to the codec when the first control signal is received; the codec is used for carrying out analog-to-digital conversion on the voice frequency signal after receiving the voice frequency signal of the earphone and then transmitting the converted signal to the processing module. Thus, the digital signal earphone and an analog signal earphone are compatible, the compatibility is enhanced, and the user experience is enhanced.