let take vt1708 as example
pincap of hp and mic support DETECT but not support unsolicited event and this require to set a timer to send get_pin_sense periodcally when open the playback/capture device
Node 0x20 [Pin Complex] wcaps 0x40010d: Stereo Amp-Out
Amp-Out caps: ofs=0x1b, nsteps=0x1b, stepsize=0x06, mute=1
Amp-Out vals: [0x15 0x15]
Pincap 0x081c: OUT HP Detect
Pin Default 0x022140f0: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Green
Pin-ctls: 0xc0: OUT HP
Connection: 1
0x17
Node 0x21 [Pin Complex] wcaps 0x400101: Stereo
Pincap 0x08334: IN OUT Detect
Pin Default 0x02a190f0: [Jack] Mic at Ext Front
Conn = 1/8, Color = Pink
Pin-ctls: 0x21: IN
Connection: 1
0x1b
http:// git.kernel. org/cgit/ linux/kernel/ git/tiwai/ hda-emu. git/tree/ codecs/ vt1708- clevo-m540se? id=HEAD
let take vt1708 as example
pincap of hp and mic support DETECT but not support unsolicited event and this require to set a timer to send get_pin_sense periodcally when open the playback/capture device
Node 0x20 [Pin Complex] wcaps 0x40010d: Stereo Amp-Out
Amp-Out caps: ofs=0x1b, nsteps=0x1b, stepsize=0x06, mute=1
Amp-Out vals: [0x15 0x15]
Pincap 0x081c: OUT HP Detect
Pin Default 0x022140f0: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Green
Pin-ctls: 0xc0: OUT HP
Connection: 1
0x17
Node 0x21 [Pin Complex] wcaps 0x400101: Stereo
Pincap 0x08334: IN OUT Detect
Pin Default 0x02a190f0: [Jack] Mic at Ext Front
Conn = 1/8, Color = Pink
Pin-ctls: 0x21: IN
Connection: 1
0x1b
https:/ /git.kernel. org/cgit/ linux/kernel/ git/tiwai/ sound.git/ commit/ sound/pci/ hda/patch_ via.c?id= 4e2d16d326fd33e 3101ddf08730c95 3b480ec2ef
seem all via codec except vt1708 use unsol event for jack event and power state event
https:/ /git.kernel. org/cgit/ linux/kernel/ git/tiwai/ sound.git/ log/sound/ pci/hda/ hda_jack. c