Following up on my question. I am also quite puzzled by how the headset detect works. The CDC nets(connections) on the schematic goes to an audio codec (as part of an android hardware development kit). I do not have the datasheet of the audio codec. But when I am trying to find out is how can I get the headset to be permanently detected regardless of whether a headset is plugged into the stereo jack or not.
Looking at the schematics, when the headset is not plugged into the stereo jack, pin 5 is connected to pin 2 on the stereo jack. This essentially creates a 'short circuit' between the left speaker output and the headset detect pin. Conversely, when the headset is plugged into the stereo jack, pin 5 is disconnected from pin 2 of the stereo jack. Does that mean that if I leave the CDC_HS_DET net floating, the audio codec will think that a headset has been detected?