Есть ноут ThinkPad x250 c разьемом под джек, который норм работает, в device.hint написано следующее (в принципе оно само так определяется, и без хинтов:
hint.hdaa.1.nid20_config="as=1 seq=0"
hint.hdaa.1.nid21.config="as=1 seq=15"
hdaa1: Dumping AFG pins:
hdaa1: nid 0x as seq device conn jack loc color misc
hdaa1: 18 90a60130 3 0 Mic Fixed Digital Internal Unknown 1
hdaa1: Caps: IN
hdaa1: 19 40000000 0 0 Line-out None Unknown 0x00 Unknown 0 DISA
hdaa1: Caps: IN
hdaa1: 20 90170110 1 0 Speaker Fixed Analog Internal Unknown 1
hdaa1: Caps: OUT EAPD
hdaa1: 21 0421101f 1 15 Headphones Jack 1/8 Right Black 0
hdaa1: Caps: OUT HP EAPD Sense: 0x80000000 (connected)
hdaa1: 22 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa1: Caps: OUT HP EAPD Sense: 0x00000000 (disconnected)
hdaa1: 24 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa1: Caps: IN OUT VREF Sense: 0x00000000 (disconnected)
hdaa1: 25 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa1: Caps: IN Sense: 0x00000000 (disconnected)
hdaa1: 26 04a11020 2 0 Mic Jack 1/8 Right Black 0
hdaa1: Caps: IN VREF Sense: 0x80000000 (connected)
hdaa1: 27 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa1: Caps: IN OUT VREF Sense: 0x00000000 (disconnected)
hdaa1: 30 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa1: Caps: OUT Sense: 0x00000000 (disconnected)
hdaa1: NumGPIO=5 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
Также у этого ноута есть док станция, в которой есть тоже разьем под наушники, и если в него вставить наушники, то звук в колонках пропадает, а в наушниках не появляется. В дапме пинов вставленные наушники в док выглядят так:
hdaa1: Dumping AFG pins:
hdaa1: nid 0x as seq device conn jack loc color misc
hdaa1: 18 90a60130 3 0 Mic Fixed Digital Internal Unknown 1
hdaa1: Caps: IN
hdaa1: 19 40000000 0 0 Line-out None Unknown 0x00 Unknown 0 DISA
hdaa1: Caps: IN
hdaa1: 20 90170110 1 0 Speaker Fixed Analog Internal Unknown 1
hdaa1: Caps: OUT EAPD
hdaa1: 21 0421101f 1 15 Headphones Jack 1/8 Right Black 0
hdaa1: Caps: OUT HP EAPD Sense: 0x00000000 (disconnected)
hdaa1: 22 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa1: Caps: OUT HP EAPD Sense: 0x80000000 (connected)
hdaa1: 24 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa1: Caps: IN OUT VREF Sense: 0x00000000 (disconnected)
hdaa1: 25 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa1: Caps: IN Sense: 0x80000000 (connected)
hdaa1: 26 04a11020 2 0 Mic Jack 1/8 Right Black 0
hdaa1: Caps: IN VREF Sense: 0x00000000 (disconnected)
hdaa1: 27 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa1: Caps: IN OUT VREF Sense: 0x00000000 (disconnected)
hdaa1: 30 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa1: Caps: OUT Sense: 0x00000000 (disconnected)
hdaa1: NumGPIO=5 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
Казалось бы, делов то, пишем в device.hint так:
hint.hdaa.1.nid20_config="as=1 seq=0"
hint.hdaa.1.nid21.config="as=1 seq=15"
hint.hdaa.1.nid22.config="as=1 seq=15 device=Headphones conn=Jack"