How do you detect when a male audio connector is inserted into a female audio connector? I guess I can watch out for the presence of an audio signal when the male connector goes into the female but then what if the signal audio is silence?
What i want to do is similar to when u insert the headset male connector into a cell phone. When the cell phone detects that u have inserted the audio plug, it disabled speaker output and ouput to the headset instead.
The female connector you find for headphone has internel mechanical switch to achive this. By using these switches you can route the signals as you want when plug is inserted and removed.