Patent ID: 8861743

Claim:
A machine implemented method of detecting a type of microphone button comprising: determining whether or not a headset plug is inserted into a headset jack of a device; detecting that a first signal received at a first contact of the headset jack comprises a normal current, based on detecting that a voltage of the first signal is between a lower voltage threshold and an upper voltage threshold; determining that a headset microphone button is released based on detecting that the first signal comprises the normal current; detecting that the first signal comprises an overcurrent or an undercurrent; determining a type of microphone button from a plurality of button types based on (a) having determined that the first signal comprises the overcurrent or the undercurrent, and (b) having determined that the headset plug is inserted into the headset jack; and controlling a behavior of the device based on the type of microphone button determined, wherein determining whether or not a headset plug is inserted comprises: using a second signal received at a second contact of the headset jack, the second signal being different than the first signal and the second contact being different than the first contact.