Patent ID: 8731208

Claim:
A portable electronic device, comprising: an earphone jack configured to receive an earphone plug, the earphone jack including a first contact, a second contact, a third contact and a fourth contact; a switch unit connected to the earphone jack, the switch unit configured to switch between a first state and a second state; the switch unit including a first switch, the first switch configured to switch between the third contact and the fourth contact; a signal processing unit connected to the earphone jack and the switch unit, the signal processing unit including an audio processing contact connected to the first switch, wherein the signal processing unit identifies a type of the earphone plug received in the earphone plug and controls the switch unit to switch to either the first state or the second state according to the type of the earphone plug, the audio processing contact is connected to the third contact in the first state or is connected to the fourth contact in the second state for receiving and processing audio from the earphone plug by the earphone jack; wherein the switch unit further includes a second switch, the first switch includes a first fixed contact, a second fixed contact, and a first movable contact; the second switch includes a third fixed contact, a fourth fixed contact, and a second movable contact; in the first state, the first movable contact and the second movable contact are respectively connected to the second fixed contact and the fourth fixed contact; in the second state, the first movable contact and the second movable contact are respectively connected to the first fixed contact and the third fixed contact; the second fixed contact and the third fixed contact are connected to the third contact; the first fixed contact and the fourth fixed contact are connected to the fourth contact; the first movable contact serves as an audio contact for receiving audio from or sending audio to the earphone plug received in the earphone jack; the second movable contact is grounded.