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=4e2d16d326fd33e3101ddf08730c953b480ec2ef 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 -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to alsa-driver in Ubuntu. https://bugs.launchpad.net/bugs/1365769 Title: [G41MT-S2P, VIA VT2020, Pink Mic, Rear] No sound at all Status in “alsa-driver” package in Ubuntu: Incomplete Bug description: The problem is that the microphone is not detected after a reboot. As a result, some applications cannot get sound from the microphone. The Input tab of the Sound window lists no device. I have a workround which is to disconnect and then connect the microphone after I have logged in. Interestingly, the audacity application can access the microphone when the system says that the device does not exist ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: alsa-base 1.0.25+dfsg-0ubuntu4 ProcVersionSignature: Ubuntu 3.2.0-67.101-generic 3.2.60 Uname: Linux 3.2.0-67-generic x86_64 ApportVersion: 2.14.1-0ubuntu3.3 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: tim 2060 F.... pulseaudio CurrentDesktop: Unity Date: Fri Sep 5 00:12:39 2014 InstallationDate: Installed on 2011-07-29 (1133 days ago) InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1) PackageArchitecture: all SourcePackage: alsa-driver Symptom: audio Symptom_AlsaRecordingTest: ALSA recording test through plughw:Intel failed Symptom_Card: Built-in Audio - HDA Intel Symptom_DevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: tim 2060 F.... pulseaudio Symptom_Jack: Pink Mic, Rear Symptom_Type: No sound at all Title: [G41MT-S2P, VIA VT2020, Pink Mic, Rear] No sound at all UpgradeStatus: Upgraded to trusty on 2014-08-15 (20 days ago) dmi.bios.date: 12/31/2010 dmi.bios.vendor: Award Software International, Inc. dmi.bios.version: F1 dmi.board.name: G41MT-S2P dmi.board.vendor: Gigabyte Technology Co., Ltd. dmi.board.version: x.x dmi.chassis.type: 3 dmi.chassis.vendor: Gigabyte Technology Co., Ltd. dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF1:bd12/31/2010:svnGigabyteTechnologyCo.,Ltd.:pnG41MT-S2P:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnG41MT-S2P:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr: dmi.product.name: G41MT-S2P dmi.sys.vendor: Gigabyte Technology Co., Ltd. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1365769/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp