本帖最后由 k111 于 2018-1-14 21:35 编辑
用applealc仿冒cx20632大半月未成功 求大神指导下,完全找不到错在哪 也不回通过alcdbg进行排错。下步应该怎么排错?
先贴codec#0 如下:Codec: Conexant CX20632
Address: 0
Vendor Id: 0x14f15098
Subsystem Id: 0x103c82b4
Revision Id: 0x100100
No Modem Function Group found
Default PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
Power states: D0 D1 D2 D3 D3cold S3D3cold CLKSTOP EPSS
Power: setting=D0, actual=D0
GPIO: io=5, o=0, i=0, unsolicited=1, wake=1
IO[0]: enable=1, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[1]: enable=1, dir=1, wake=0, sticky=0, data=0, unsol=0
IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[4]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x10 [Audio Output] wcaps 0xc1d: Stereo Amp-Out R/L
Control: name="Line Out Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Control: name="Line Out Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Device: name="CX20632 Analog", type="Audio", device=0
Amp-Out caps: ofs=0x4a, nsteps=0x4a, stepsize=0x03, mute=1
Amp-Out vals: [0x36 0x36]
Converter: stream=1, channel=0
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x11 [Audio Output] wcaps 0xc1d: Stereo Amp-Out R/L
Control: name="Headphone Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Control: name="Headphone Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Amp-Out caps: ofs=0x4a, nsteps=0x4a, stepsize=0x03, mute=1
Amp-Out vals: [0x36 0x36]
Converter: stream=1, channel=0
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x12 [Audio Output] wcaps 0x611: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x49
IEC Coding Type: 0x0
PCM:
rates [0x5e0]: 44100 48000 88200 96000 192000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x13 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
Control: name="Beep Playback Volume", index=0, device=0
ControlAmp: chs=1, dir=Out, idx=0, ofs=0
Control: name="Beep Playback Switch", index=0, device=0
ControlAmp: chs=1, dir=Out, idx=0, ofs=0
Amp-Out caps: ofs=0x07, nsteps=0x07, stepsize=0x0f, mute=0
Amp-Out vals: [0x06]
Node 0x14 [Audio Input] wcaps 0x100d1b: Stereo Amp-In R/L
Control: name="Capture Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=2, ofs=0
Control: name="Capture Switch", index=0, device=0
ControlAmp: chs=3, dir=In, idx=2, ofs=0
Device: name="CX20632 Analog", type="Audio", device=0
Amp-In caps: ofs=0x4a, nsteps=0x50, stepsize=0x03, mute=1
Amp-In vals: [0x50 0x50] [0x80 0x80] [0x50 0x50] [0x80 0x80]
Converter: stream=1, channel=0
SDI-Select: 0
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 4
0x1a* 0x1b 0x1d 0x1e
Node 0x15 [Audio Input] wcaps 0x100d1b: Stereo Amp-In R/L
Control: name="Capture Volume", index=1, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Control: name="Capture Switch", index=1, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Device: name="CX20632 Alt Analog", type="Audio", device=2
Amp-In caps: ofs=0x4a, nsteps=0x50, stepsize=0x03, mute=1
Amp-In vals: [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 4
0x1a* 0x1b 0x1d 0x1e
Node 0x16 [Audio Input] wcaps 0x100d1b: Stereo Amp-In R/L
Amp-In caps: ofs=0x4a, nsteps=0x50, stepsize=0x03, mute=1
Amp-In vals: [0x4a 0x4a]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1
0x22
Node 0x17 [Audio Output] wcaps 0xc1d: Stereo Amp-Out R/L
Control: name="Speaker Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Control: name="Speaker Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Amp-Out caps: ofs=0x4a, nsteps=0x4a, stepsize=0x03, mute=1
Amp-Out vals: [0x80 0x80]
Converter: stream=1, channel=0
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x18 [Pin Complex] wcaps 0x400581: Stereo
Pincap 0x00010014: OUT EAPD Detect
EAPD 0x2: EAPD
Pin Default 0x40f001f0: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 3
0x10* 0x11 0x17
Node 0x19 [Pin Complex] wcaps 0x400581: Stereo
Pincap 0x0000001c: OUT HP Detect
Pin Default 0x02211040: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Black
DefAssociation = 0x4, Sequence = 0x0
Pin-ctls: 0xc0: OUT HP
Unsolicited: tag=01, enabled=1
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 3
0x10 0x11* 0x17
Node 0x1a [Pin Complex] wcaps 0x40048b: Stereo Amp-In
Control: name="Mic Boost Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Amp-In caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00]
Pincap 0x00001324: IN Detect
Vref caps: HIZ 50 80
Pin Default 0x02a11020: [Jack] Mic at Ext Front
Conn = 1/8, Color = Black
DefAssociation = 0x2, Sequence = 0x0
Pin-ctls: 0x24: IN VREF_80
Unsolicited: tag=03, enabled=1
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x1b [Pin Complex] wcaps 0x40058b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00]
Pincap 0x00011334: IN OUT EAPD Detect
Vref caps: HIZ 50 80
EAPD 0x2: EAPD
Pin Default 0x40f001f0: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00: VREF_HIZ
Unsolicited: tag=02, enabled=0
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 3
0x10* 0x11 0x17
Node 0x1c [Pin Complex] wcaps 0x400581: Stereo
Pincap 0x0000001c: OUT HP Detect
Pin Default 0x01011010: [Jack] Line Out at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0x1, Sequence = 0x0
Pin-ctls: 0x00:
Unsolicited: tag=02, enabled=1
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 3
0x10* 0x11 0x17
Node 0x1d [Pin Complex] wcaps 0x40058b: Stereo Amp-In
Control: name="Line Boost Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Amp-In caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00]
Pincap 0x00010034: IN OUT EAPD Detect
EAPD 0x2: EAPD
Pin Default 0x01811030: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0x3, Sequence = 0x0
Pin-ctls: 0x20: IN
Unsolicited: tag=04, enabled=1
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 3
0x10* 0x11 0x17
Node 0x1e [Pin Complex] wcaps 0x40040b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x04, stepsize=0x2f, mute=0
Amp-In vals: [0x00 0x00]
Pincap 0x00000020: IN
Pin Default 0x40f001f0: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x1f [Pin Complex] wcaps 0x400501: Stereo
Pincap 0x00000010: OUT
Pin Default 0x9217011f: [Fixed] Speaker at Int Front
Conn = Analog, Color = Unknown
DefAssociation = 0x1, Sequence = 0xf
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 3
0x10 0x11 0x17*
Node 0x20 [Pin Complex] wcaps 0x400781: Stereo Digital
Pincap 0x00000014: OUT Detect
Pin Default 0x40f001f0: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1
0x12
Node 0x21 [Pin Complex] wcaps 0x400501: Stereo
Pincap 0x00010010: OUT EAPD
EAPD 0x2: EAPD
Pin Default 0x40f001f0: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 3
0x10* 0x11 0x17
Node 0x22 [Audio Mixer] wcaps 0x20050b: Stereo Amp-In
Amp-In caps: ofs=0x4a, nsteps=0x4a, stepsize=0x03, mute=1
Amp-In vals: [0x4a 0x4a] [0x4a 0x4a] [0x4a 0x4a]
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 3
0x10 0x11 0x17
Node 0x23 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x24 [Volume Knob Widget] wcaps 0x600080: Mono
Volume-Knob: delta=1, steps=74, direct=0, val=74
Unsolicited: tag=00, enabled=0
Connection: 3
0x10 0x11 0x17
Node 0x25 [Audio Input] wcaps 0x100711: Stereo Digital
Converter: stream=0, channel=0
SDI-Select: 0
Digital: Enabled Non-Copyright
Digital category: 0x49
IEC Coding Type: 0x0
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1
0x26
Node 0x26 [Pin Complex] wcaps 0x400681: Stereo Digital
Pincap 0x00000024: IN Detect
Pin Default 0x40f001f0: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
使用verbit得到如下数据:
Verbs from Linux Codec Dump File: codec_dump.txt
Codec: Conexant CX20632 Address: 0 DevID: 351359128 (0x14f15098)
Jack Color Description Node PinDefault Original Verbs
--------------------------------------------------------------------------------------------------------
Unknown Unknown Other at Ext N/A 24 0x18 0x40f001f0 01871cf0 01871d01 01871ef0 01871f40
1/8 Black HP Out at Ext Front 25 0x19 0x02211040 01971c40 01971d10 01971e21 01971f02
1/8 Black Mic at Ext Front 26 0x1a 0x02a11020 01a71c20 01a71d10 01a71ea1 01a71f02
Unknown Unknown Other at Ext N/A 27 0x1b 0x40f001f0 01b71cf0 01b71d01 01b71ef0 01b71f40
1/8 Black Line Out at Ext Rear 28 0x1c 0x01011010 01c71c10 01c71d10 01c71e01 01c71f01
1/8 Black Line In at Ext Rear 29 0x1d 0x01811030 01d71c30 01d71d10 01d71e81 01d71f01
Unknown Unknown Other at Ext N/A 30 0x1e 0x40f001f0 01e71cf0 01e71d01 01e71ef0 01e71f40
Analog Unknown Speaker at Int Front 31 0x1f 0x9217011f 01f71c1f 01f71d01 01f71e17 01f71f92
Unknown Unknown Other at Ext N/A 32 0x20 0x40f001f0 02071cf0 02071d01 02071ef0 02071f40
Unknown Unknown Other at Ext N/A 33 0x21 0x40f001f0 02171cf0 02171d01 02171ef0 02171f40
Unknown Unknown Other at Ext N/A 38 0x26 0x40f001f0 02671cf0 02671d01 02671ef0 02671f40
--------------------------------------------------------------------------------------------------------
Jack Color Description Node PinDefault Modified Verbs
--------------------------------------------------------------------------------------------------------
Unknown Unknown Other at Ext N/A 24 0x18 0x40f001f0 01871cf0 01871d00 01871ef0 01871f40
1/8 Black HP Out at Ext Front 25 0x19 0x02211040 01971c40 01971d10 01971e21 01971f01
1/8 Black Mic at Ext Front 26 0x1a 0x02a11020 01a71c20 01a71d10 01a71ea1 01a71f01
Unknown Unknown Other at Ext N/A 27 0x1b 0x40f001f0 01b71c50 01b71d00 01b71ef0 01b71f40
1/8 Black Line Out at Ext Rear 28 0x1c 0x01011010 01c71c10 01c71d10 01c71e01 01c71f01
1/8 Black Line In at Ext Rear 29 0x1d 0x01811030 01d71c30 01d71d10 01d71e81 01d71f01
Unknown Unknown Other at Ext N/A 30 0x1e 0x40f001f0 01e71c60 01e71d00 01e71ef0 01e71f40
Analog Unknown Speaker at Int Front 31 0x1f 0x9217011f 01f71c70 01f71d00 01f71e17 01f71f91
Unknown Unknown Other at Ext N/A 32 0x20 0x40f001f0 02071c80 02071d00 02071ef0 02071f40
Unknown Unknown Other at Ext N/A 33 0x21 0x40f001f0 02171c90 02171d00 02171ef0 02171f40
Unknown Unknown Other at Ext N/A 38 0x26 0x40f001f0 02671ca0 02671d00 02671ef0 02671f40
--------------------------------------------------------------------------------------------------------
前置耳机孔为二合一耳机孔 修改后:
Unknown Unknown Other at Ext N/A 24 0x18 0x40f001f0 01871cf0 01871d00 01871e00 01871f40 Combination Black HP Out at Ext Front 25 0x19 0x02211040 01971c20 01971d10 01971e2b 01971f02 Combination Black Mic at Ext Front 26 0x1a 0x02a11020 01a71c40 01a71d10 01a71eab 01a71f02 Unknown Unknown Other at Ext N/A 27 0x1b 0x40f001f0 01b71cf0 01b71d00 01b71e00 01b71f40 1/8 Black Line Out at Ext Rear 28 0x1c 0x01011010 01c71c30 01c71d10 01c71e01 01c71f01 1/8 Black Line In at Ext Rear 29 0x1d 0x01811030 01d71c50 01d71d10 01d71e81 01d71f01 Unknown Unknown Other at Ext N/A 30 0x1e 0x40f001f0 01e71cf0 01e71d00 01e71e00 01e71f40 Analog Unknown Speaker at Int Front 31 0x1f 0x9217011f 01f71c10 01f71d01 01f71e17 01f71f92 Unknown Unknown Other at Ext N/A 32 0x20 0x40f001f0 02071cf0 02071d00 02071e00 02071f40 Unknown Unknown Other at Ext N/A 33 0x21 0x40f001f0 02171cf0 02171d00 02171e00 02171f40 Unknown Unknown Other at Ext N/A 38 0x26 0x40f001f0 02671cf0 02671d00 02671e00 02671f40
整理后得:01871cf0 01871d00 01871e00 01871f40 01971c20 01971d10 01971e2b 01971f02 01a71c40 01a71d10 01a71eab 01a71f02 01b71cf0 01b71d00 01b71e00 01b71f40 01c71c30 01c71d10 01c71e01 01c71f01 01d71c50 01d71d10 01d71e81 01d71f01 01e71cf0 01e71d00 01e71e00 01e71f40 01f71c10 01f71d01 01f71e17 01f71f92 02071cf0 02071d00 02071e00 02071f40 02171cf0 02171d00 02171e00 02171f40 02671cf0 02671d00 02671e00 02671f40上(输出设备未含eadp等字样,未加0xx70c02字符串 加了也不驱动。)
万能声卡除了扬声器都能驱动 直接复制其path
+-------------------------------+
| DUMPING Playback/Record Paths |
+-------------------------------+
Playback:
nid=28 [pin: Line-out (Black Rear)]
|
+ <- nid=16 [audio output] [src: pcm] bindSeq=00000001
nid=31 [pin: Speaker (Analog)]
|
+ <- nid=17 [audio output] [src: pcm] bindSeq=00008000
Record:
nid=20 [audio input]
|
+ <- nid=26 [pin: Microphone (Black Front)] [src: mic] bindSeq=00000001
+-------------------------------+
| DUMPING Playback/Record Paths |
+-------------------------------+
Playback:
nid=25 [pin: Headphones (Black Front)]
|
+ <- nid=23 [audio output] [src: pcm] bindSeq=00000001
Record:
nid=21 [audio input]
|
+ <- nid=29 [pin: Line-in (Black Rear)] [src: line] bindSeq=00000001
[img]blob:https://bbs.pcbeta.com/c9380370-5d75-4d59-a6c5-7e49fb6dbb1c[/img]
platforms修改如下 文件名platforms1.xml.zlib
[img]blob:https://bbs.pcbeta.com/715efa6b-af1b-4374-9ae3-078e58bfec29[/img]
layout1.xml.zlib
[img]blob:https://bbs.pcbeta.com/5d779036-153d-46bb-9643-250a6a9950f4[/img]
info.plist
[img]blob:https://bbs.pcbeta.com/f9ed79b8-5875-404a-adab-494f8b775732[/img]
pinconfig.kext中info.plist
[img]blob:https://bbs.pcbeta.com/78727efe-1988-4aa1-b27a-7902c96b8a13[/img]
clover注入id和dsdt都进行了修改,但是启动后完全没加载输入输出设备:
[img]blob:https://bbs.pcbeta.com/6182a460-fd97-4e96-bc6d-2b139f828682[/img]
|