Retested on David's request.
> 1) nothing connected
$ sudo hda-jack-sense-test -a -c1 Pin 0x12 (Internal Mic): present = No Pin 0x13 (Not connected): present = No Pin 0x14 (Internal Speaker): present = No Pin 0x17 (Not connected): present = No Pin 0x18 (Black Mic): present = Yes Pin 0x19 (Not connected): present = No Pin 0x1a (Not connected): present = No Pin 0x1d (Not connected): present = No Pin 0x1e (Not connected): present = No Pin 0x21 (Black HP Out): present = No
> 2) headphone (without mic) connected
$ sudo hda-jack-sense-test -a -c1 Pin 0x12 (Internal Mic): present = No Pin 0x13 (Not connected): present = No Pin 0x14 (Internal Speaker): present = No Pin 0x17 (Not connected): present = No Pin 0x18 (Black Mic): present = Yes Pin 0x19 (Not connected): present = No Pin 0x1a (Not connected): present = No Pin 0x1d (Not connected): present = No Pin 0x1e (Not connected): present = No Pin 0x21 (Black HP Out): present = Yes
> 3) headset (heaphone + mic combo) connected
Retested on David's request.
> 1) nothing connected
$ sudo hda-jack-sense-test -a -c1
Pin 0x12 (Internal Mic): present = No
Pin 0x13 (Not connected): present = No
Pin 0x14 (Internal Speaker): present = No
Pin 0x17 (Not connected): present = No
Pin 0x18 (Black Mic): present = Yes
Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Not connected): present = No
Pin 0x21 (Black HP Out): present = No
> 2) headphone (without mic) connected
$ sudo hda-jack-sense-test -a -c1
Pin 0x12 (Internal Mic): present = No
Pin 0x13 (Not connected): present = No
Pin 0x14 (Internal Speaker): present = No
Pin 0x17 (Not connected): present = No
Pin 0x18 (Black Mic): present = Yes
Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Not connected): present = No
Pin 0x21 (Black HP Out): present = Yes
> 3) headset (heaphone + mic combo) connected
$ sudo hda-jack-sense-test -a -c1
Pin 0x12 (Internal Mic): present = No
Pin 0x13 (Not connected): present = No
Pin 0x14 (Internal Speaker): present = No
Pin 0x17 (Not connected): present = No
Pin 0x18 (Black Mic): present = Yes
Pin 0x19 (Not connected): present = No
Pin 0x1a (Not connected): present = No
Pin 0x1d (Not connected): present = No
Pin 0x1e (Not connected): present = No
Pin 0x21 (Black HP Out): present = Yes