Method for raising versatility of earphone interface

A method for raising generality of earphone interface includes carrying out identification for earphone type by device according to character that different pin definition on earphone with different electric characteristic can be found when earphone is plugged in device socket, selecting and switching over circuit from interface circuits for providing different interface circuit to different earphone by microprocessor in device according to identified result for supporting more types of earphones by device.