2014-02-13 5:01 GMT+08:00 Bernhard schlimmchen@yahoo.de:
Raymond Yau <superquad.vortex2 <at> gmail.com> writes:
Post the output of alsa-info.sh when thinkpad is docked and not docked
with
headphone pluggedd and unplugged
I created the output you requested (Lenovo ThinkPad T440p in UltraDock, no sound when docked via dock jack but notebook speakers are also mute).
not docked: http://pastebin.com/MFQT3R9S docked, no headphones: http://pastebin.com/8UN1sHSM docked, headphones plugged in dock: http://pastebin.com/7XauZLZz docked, headphones plugged in notebook: http://pastebin.com/xfL5qkge
Based on that, can you help us getting sound to work on the dock?
the headphone is at node 0x15
control.16 { iface CARD name 'Headphone Jack' value true comment { access read type BOOLEAN count 1 } }
you need to use hda_jack_sense_test.py which require python and hda codec parser of hda-analyzer to find out
https://bugzilla.kernel.org/show_bug.cgi?id=66621#c39
pd=1 when plugged and pd=0 when unplugged
or hda-verb GET_PIN_SENSE
https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/plain/Documenta...
1) the node of the headphone of the dock headset
node 0x16 , 0x18 and 0x19 which pincap support output
try hdajackretask or early patching to fix the pin default to dock headphone
2) for the dock headset mic , you need to find by trial and error from the remaining unconnected nodes which pincap support input
node 0x13, 0x19, 0x1b, 0x1d
https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/log/sound/pci/h...
0x21a11000 /* dock-mic */
need to set bit 8 if dock headset mic use jack detection of headphone instead of jack detection of its own pin compex
0x2121103f /* dock-HP */ 0x21440100 /* dock SPDIF out */
you need to clear bit 8 if pincap of node 0x1e support DETECT