hdajacksensetest -V (return code: 1)
Ioctl call failed with error 2
hdajacksensetest --help (return code: 0)
Usage:
hdajacksensetest [OPTION?] - check current jack/pin sense
Help Options:
-h, --help Show help options
Application Options:
-c, --card=X card index (as can be seen in /proc/asound/cards)
-d, --codec=Y codec device index (as can be seen in /proc/asound/cardX/codecY)
-a, --allpins try all pins, even those who (probably) does not have a physical jack
-s, --setpinsense execute 'Set pin sense' before the pin sense is measured