Set both nid 17 & 18 to 1 gets me no sound at all.
The above setting gets me just headphones and trying nid16 & 17 both set to 1 only gets me speaker sound.
Couldn t find a way to switch automatically between speaker and plugged in headphones.
Will try again next weekend.
Best
Achim