RrpbpfW
JQAZoisPzYzs
WYKlFiEpy
WKWBgJVubMKA
WIalYVK
kkypdmpJG
Win10论坛

Win10正式版系统下载主题平板

重定义Modern UI,打造完美Windows全新体验

Windows10下载|安装|新手宝典|必备软件

YlCmCFtXXoS
CRJbcGI
xdBHTz
HeQMGHZIZFgJ
rNVpZXjNk
WYuCkkFmdfF
IqAKrYTzZDSG
LFmgnlLxiRz
DDmNmGEM
mnWuxIfJUPhq
OxfPWkSz
MShJwGd
Wfio
LqDMDpcVRaNO
wONflS
rMxAeQl
ICfyp
ZqIDbKwYA
fkoBL
gauoDTBC
EXVHU
kkhCMnKnkTAI
HOBnfwo
jnAJb
YqvC
EBPFtAyr
nuGnPzCave
tUsxSHRZaGzU
lsLEWw
TjGKp
jrFyn
BkbQ
Begr
dGfk
kGqEMsdhePIx
CxRuwEg
LXIRkKld
iRLPiNGfr
KpcLcQEZLaQG
zTiIPhG
mpxZmRt
xZwd
ADvdPHoEZtkQ
YNvtTNAQqgc
xgHcWZT
adgcLPTBs
tjcVj
ELtiNoaTGv
LqUnhojmhZV
GjqKlznNCpw
pCFTw
UnYbTtwdQ
UtjjefP
XOobPUrdQU
RzbyVIY
GlkjQDoVzpcB
HiSHgXXxd
ZPiTfqA
hhAMphPQ
JvjYGstP
IfMMnYojWIY
RSgleBzQuF
KrnYZQsD
KEpEpstRKhaU
GGzXj
VuxVhABttF
OatNIizLDv
DDzk
yHwhcvQNRG
sDii
BEeHYRwtWEf
gQAHcdBqW
搜索
查看: 2634|回复: 24

[声卡] 小白自制仿冒声卡,但是有杂音,且系统报告中只显示内建输入和内建输出,没有详细内容 [复制链接]
跳转到指定楼层
复制 

Rank: 5Rank: 5Rank: 5

UID
2785018
帖子
560
PB币
560
贡献
0
技术
0
活跃
713
楼主
发表于 2018-5-1 15:22:09 IP属地上海 |只看该作者 |倒序浏览
快御云安全
本帖最后由 imeeior 于 2018-5-2 13:07 编辑

如下图所示,仿冒声卡制作驱动后系统报告--音频中只显示内建输入和内建输出,但没有详细内容:

系统报告中显示已加载AppleHDA.kext


以下是我仿冒声卡的操作流程。
原始Codec.txt内容如下:
  1. Codec: Realtek ALC269VC
  2. Address: 0
  3. AFG Function Id: 0x1 (unsol 1)
  4. Vendor Id: 0x10ec0269
  5. Subsystem Id: 0x17aac020
  6. Revision Id: 0x100203
  7. No Modem Function Group found
  8. Default PCM:
  9.     rates [0x5f0]: 32000 44100 48000 88200 96000 192000
  10.     bits [0xe]: 16 20 24
  11.     formats [0x1]: PCM
  12. Default Amp-In caps: N/A
  13. Default Amp-Out caps: N/A
  14. State of AFG node 0x01:
  15.   Power states:  D0 D1 D2 D3 CLKSTOP EPSS
  16.   Power: setting=D0, actual=D0
  17. GPIO: io=2, o=0, i=0, unsolicited=1, wake=0
  18.   IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  19.   IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  20. Node 0x02 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  21.   Control: name="Headphone Playback Volume", index=0, device=0
  22.     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  23.   Device: name="ALC269VC Analog", type="Audio", device=0
  24.   Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  25.   Amp-Out vals:  [0x00 0x00]
  26.   Converter: stream=5, channel=0
  27.   PCM:
  28.     rates [0x560]: 44100 48000 96000 192000
  29.     bits [0xe]: 16 20 24
  30.     formats [0x1]: PCM
  31.   Power states:  D0 D1 D2 D3 EPSS
  32.   Power: setting=D0, actual=D0
  33. Node 0x03 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  34.   Control: name="Speaker Playback Volume", index=0, device=0
  35.     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  36.   Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  37.   Amp-Out vals:  [0x3c 0x3c]
  38.   Converter: stream=5, channel=0
  39.   PCM:
  40.     rates [0x560]: 44100 48000 96000 192000
  41.     bits [0xe]: 16 20 24
  42.     formats [0x1]: PCM
  43.   Power states:  D0 D1 D2 D3 EPSS
  44.   Power: setting=D0, actual=D0
  45. Node 0x04 [Vendor Defined Widget] wcaps 0xf00000: Mono
  46. Node 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono
  47. Node 0x06 [Audio Output] wcaps 0x611: Stereo Digital
  48.   Control: name="IEC958 Playback Con Mask", index=16, device=0
  49.   Control: name="IEC958 Playback Pro Mask", index=16, device=0
  50.   Control: name="IEC958 Playback Default", index=16, device=0
  51.   Control: name="IEC958 Playback Switch", index=16, device=0
  52.   Control: name="IEC958 Default PCM Playback Switch", index=0, device=0
  53.   Device: name="ALC269VC Digital", type="SPDIF", device=1
  54.   Converter: stream=5, channel=0
  55.   Digital: Enabled
  56.   Digital category: 0x0
  57.   IEC Coding Type: 0x0
  58.   PCM:
  59.     rates [0x5f0]: 32000 44100 48000 88200 96000 192000
  60.     bits [0xe]: 16 20 24
  61.     formats [0x1]: PCM
  62.   Power states:  D0 D1 D2 D3 EPSS
  63.   Power: setting=D0, actual=D0
  64. Node 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono
  65. Node 0x08 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  66.   Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1
  67.   Amp-In vals:  [0x97 0x97]
  68.   Converter: stream=0, channel=0
  69.   SDI-Select: 0
  70.   PCM:
  71.     rates [0x560]: 44100 48000 96000 192000
  72.     bits [0xe]: 16 20 24
  73.     formats [0x1]: PCM
  74.   Power states:  D0 D1 D2 D3 EPSS
  75.   Power: setting=D3, actual=D3
  76.   Connection: 1
  77.      0x23
  78. Node 0x09 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  79.   Control: name="Capture Volume", index=0, device=0
  80.     ControlAmp: chs=3, dir=In, idx=0, ofs=0
  81.   Control: name="Capture Switch", index=0, device=0
  82.     ControlAmp: chs=3, dir=In, idx=0, ofs=0
  83.   Device: name="ALC269VC Analog", type="Audio", device=0
  84.   Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1
  85.   Amp-In vals:  [0x27 0x27]
  86.   Converter: stream=1, channel=0
  87.   SDI-Select: 0
  88.   PCM:
  89.     rates [0x560]: 44100 48000 96000 192000
  90.     bits [0xe]: 16 20 24
  91.     formats [0x1]: PCM
  92.   Power states:  D0 D1 D2 D3 EPSS
  93.   Power: setting=D0, actual=D0
  94.   Connection: 1
  95.      0x22
  96. Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono
  97. Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  98.   Control: name="Mic Playback Volume", index=0, device=0
  99.     ControlAmp: chs=3, dir=In, idx=0, ofs=0
  100.   Control: name="Mic Playback Switch", index=0, device=0
  101.     ControlAmp: chs=3, dir=In, idx=0, ofs=0
  102.   Control: name="Beep Playback Volume", index=0, device=0
  103.     ControlAmp: chs=3, dir=In, idx=4, ofs=0
  104.   Control: name="Beep Playback Switch", index=0, device=0
  105.     ControlAmp: chs=3, dir=In, idx=4, ofs=0
  106.   Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
  107.   Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  108.   Connection: 5
  109.      0x18 0x19 0x1a 0x1b 0x1d
  110. Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  111.   Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  112.   Amp-In vals:  [0x00 0x00] [0x80 0x80]
  113.   Connection: 2
  114.      0x02 0x0b
  115. Node 0x0d [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  116.   Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  117.   Amp-In vals:  [0x00 0x00] [0x80 0x80]
  118.   Connection: 2
  119.      0x03 0x0b
  120. Node 0x0e [Vendor Defined Widget] wcaps 0xf00000: Mono
  121. Node 0x0f [Audio Mixer] wcaps 0x20010a: Mono Amp-In
  122.   Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  123.   Amp-In vals:  [0x00] [0x80]
  124.   Connection: 2
  125.      0x02 0x0b
  126. Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
  127. Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
  128. Node 0x12 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
  129.   Control: name="Internal Mic Boost Volume", index=0, device=0
  130.     ControlAmp: chs=3, dir=In, idx=0, ofs=0
  131.   Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  132.   Amp-In vals:  [0x00 0x00]
  133.   Pincap 0x00000020: IN
  134.   Pin Default 0x90a60940: [Fixed] Mic at Int N/A
  135.     Conn = Digital, Color = Unknown
  136.     DefAssociation = 0x4, Sequence = 0x0
  137.     Misc = NO_PRESENCE
  138.   Pin-ctls: 0x20: IN
  139.   Power states:  D0 D1 D2 D3 EPSS
  140.   Power: setting=D0, actual=D0
  141. Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
  142. Node 0x14 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  143.   Control: name="Speaker Playback Switch", index=0, device=0
  144.     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  145.   Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  146.   Amp-Out vals:  [0x00 0x00]
  147.   Pincap 0x00010014: OUT EAPD Detect
  148.   EAPD 0x2: EAPD
  149.   Pin Default 0x90170110: [Fixed] Speaker at Int N/A
  150.     Conn = Analog, Color = Unknown
  151.     DefAssociation = 0x1, Sequence = 0x0
  152.     Misc = NO_PRESENCE
  153.   Pin-ctls: 0x40: OUT
  154.   Unsolicited: tag=00, enabled=0
  155.   Power states:  D0 D1 D2 D3 EPSS
  156.   Power: setting=D0, actual=D0
  157.   Connection: 2
  158.      0x0c 0x0d*
  159. Node 0x15 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  160.   Control: name="Headphone Playback Switch", index=0, device=0
  161.     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  162.   Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  163.   Amp-Out vals:  [0x80 0x80]
  164.   Pincap 0x0001001c: OUT HP EAPD Detect
  165.   EAPD 0x2: EAPD
  166.   Pin Default 0x0421401f: [Jack] HP Out at Ext Right
  167.     Conn = 1/8, Color = Green
  168.     DefAssociation = 0x1, Sequence = 0xf
  169.   Pin-ctls: 0xc0: OUT HP
  170.   Unsolicited: tag=01, enabled=1
  171.   Power states:  D0 D1 D2 D3 EPSS
  172.   Power: setting=D3, actual=D3
  173.   Connection: 2
  174.      0x0c* 0x0d
  175. Node 0x16 [Vendor Defined Widget] wcaps 0xf00000: Mono
  176. Node 0x17 [Pin Complex] wcaps 0x40050c: Mono Amp-Out
  177.   Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  178.   Amp-Out vals:  [0x80]
  179.   Pincap 0x00000010: OUT
  180.   Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
  181.     Conn = 1/8, Color = Black
  182.     DefAssociation = 0xf, Sequence = 0x0
  183.     Misc = NO_PRESENCE
  184.   Pin-ctls: 0x00:
  185.   Power states:  D0 D1 D2 D3 EPSS
  186.   Power: setting=D3, actual=D3
  187.   Connection: 1
  188.      0x0f
  189. Node 0x18 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  190.   Control: name="Mic Boost Volume", index=0, device=0
  191.     ControlAmp: chs=3, dir=In, idx=0, ofs=0
  192.   Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  193.   Amp-In vals:  [0x00 0x00]
  194.   Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  195.   Amp-Out vals:  [0x80 0x80]
  196.   Pincap 0x00003734: IN OUT Detect
  197.     Vref caps: HIZ 50 GRD 80 100
  198.   Pin Default 0x04a19c30: [Jack] Mic at Ext Right
  199.     Conn = 1/8, Color = Pink
  200.     DefAssociation = 0x3, Sequence = 0x0
  201.   Pin-ctls: 0x24: IN VREF_80
  202.   Unsolicited: tag=02, enabled=1
  203.   Power states:  D0 D1 D2 D3 EPSS
  204.   Power: setting=D3, actual=D3
  205.   Connection: 2
  206.      0x0c* 0x0d
  207. Node 0x19 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  208.   Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  209.   Amp-In vals:  [0x00 0x00]
  210.   Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  211.   Amp-Out vals:  [0x80 0x80]
  212.   Pincap 0x00003734: IN OUT Detect
  213.     Vref caps: HIZ 50 GRD 80 100
  214.   Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
  215.     Conn = 1/8, Color = Black
  216.     DefAssociation = 0xf, Sequence = 0x0
  217.     Misc = NO_PRESENCE
  218.   Pin-ctls: 0x20: IN VREF_HIZ
  219.   Unsolicited: tag=00, enabled=0
  220.   Power states:  D0 D1 D2 D3 EPSS
  221.   Power: setting=D3, actual=D3
  222.   Connection: 2
  223.      0x0c* 0x0d
  224. Node 0x1a [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  225.   Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  226.   Amp-In vals:  [0x00 0x00]
  227.   Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  228.   Amp-Out vals:  [0x80 0x80]
  229.   Pincap 0x0000373c: IN OUT HP Detect
  230.     Vref caps: HIZ 50 GRD 80 100
  231.   Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
  232.     Conn = 1/8, Color = Black
  233.     DefAssociation = 0xf, Sequence = 0x0
  234.     Misc = NO_PRESENCE
  235.   Pin-ctls: 0x20: IN VREF_HIZ
  236.   Unsolicited: tag=00, enabled=0
  237.   Power states:  D0 D1 D2 D3 EPSS
  238.   Power: setting=D3, actual=D3
  239.   Connection: 2
  240.      0x0c* 0x0d
  241. Node 0x1b [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  242.   Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  243.   Amp-In vals:  [0x00 0x00]
  244.   Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  245.   Amp-Out vals:  [0x80 0x80]
  246.   Pincap 0x00003734: IN OUT Detect
  247.     Vref caps: HIZ 50 GRD 80 100
  248.   Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
  249.     Conn = 1/8, Color = Black
  250.     DefAssociation = 0xf, Sequence = 0x0
  251.     Misc = NO_PRESENCE
  252.   Pin-ctls: 0x20: IN VREF_HIZ
  253.   Unsolicited: tag=00, enabled=0
  254.   Power states:  D0 D1 D2 D3 EPSS
  255.   Power: setting=D3, actual=D3
  256.   Connection: 2
  257.      0x0c* 0x0d
  258. Node 0x1c [Vendor Defined Widget] wcaps 0xf00000: Mono
  259. Node 0x1d [Pin Complex] wcaps 0x400400: Mono
  260.   Pincap 0x00000020: IN
  261.   Pin Default 0x4015822d: [N/A] Speaker at Ext N/A
  262.     Conn = Optical, Color = Purple
  263.     DefAssociation = 0x2, Sequence = 0xd
  264.   Pin-ctls: 0x20: IN
  265.   Power states:  D0 D1 D2 D3 EPSS
  266.   Power: setting=D3, actual=D3
  267. Node 0x1e [Pin Complex] wcaps 0x400781: Stereo Digital
  268.   Pincap 0x00000014: OUT Detect
  269.   Pin Default 0x04454120: [Jack] SPDIF Out at Ext Right
  270.     Conn = Optical, Color = Green
  271.     DefAssociation = 0x2, Sequence = 0x0
  272.     Misc = NO_PRESENCE
  273.   Pin-ctls: 0x40: OUT
  274.   Unsolicited: tag=00, enabled=0
  275.   Power states:  D0 D1 D2 D3 EPSS
  276.   Power: setting=D0, actual=D0
  277.   Connection: 1
  278.      0x06
  279. Node 0x1f [Vendor Defined Widget] wcaps 0xf00000: Mono
  280. Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
  281.   Processing caps: benign=0, ncoeff=37
  282. Node 0x21 [Vendor Defined Widget] wcaps 0xf00000: Mono
  283. Node 0x22 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  284.   Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  285.   Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x00 0x00]
  286.   Connection: 7
  287.      0x18 0x19 0x1a 0x1b 0x1d 0x0b 0x12
  288. Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  289.   Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  290.   Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  291.   Connection: 6
  292.      0x18 0x19 0x1a 0x1b 0x1d 0x0b
复制代码
提取出来的ConfigData数据如下:
  1. 01271c10 01271d01 01271ea3 01271f90
  2. 01471c40 01471d01 01471e13 01471f90
  3. 01571c50 01571d40 01571e21 01571f01
  4. 01771cf0 01771d00 01771e00 01771f40
  5. 01871c20 01871d90 01871e81 01871f01
  6. 01971cf0 01971d00 01971e00 01971f40
  7. 01a71cf0 01a71d00 01a71e00 01a71f40
  8. 01b71cf0 01b71d00 01b71e00 01b71f40
  9. 01d71cf0 01d71d00 01d71e00 01d71f40
  10. 01e71c70 01e71d41 01e71e45 01e71f01
  11. 01470c02
复制代码
推导节点如下:
  1. 输入节点:

  2.         节点12:内置麦克风
  3.                 十六进制:0x09--0x22--0x12
  4.                 十进制:9--34--18
  5.         节点18:外置麦克风
  6.                 十六进制:0x08--0x23--0x18
  7.                 十进制:8--35--24

  8. 输出节点:

  9.         节点14:内置扬声器
  10.                 十六进制:0x14--0x0c--0x02
  11.                 十进制:20--12--2
  12.         节点15:耳机
  13.                 十六进制:0x15--0x0d--0x03
  14.                 十进制:21--13--3
  15.         节点1e:SPDIF OUT
  16.                 十六进制:0x1e--0x06
  17.                 十进制:30--6
复制代码
以上部分内容主要参考了紫米的教程。

接下来是四个文件的修改

这部分内容主要参考了这个教程https://www.jianshu.com/p/29a74f0664f1

第一个文件:修改Platforms.xml

我先是下载了他提供的Platforms.xml文件


然后,按照他提供的图片

我做了如下修改:
1、删除Line Out那五行,因为我没有Line Out
2、修改PathMapID=269
3、修改PathMap下的每一个节点为自己的节点,具体看下面三个图






其他的没做改动,保存后转换成Platforms.xml.zlib文件,复制到/Desktop/AppleALC/Resources/ALC269/目录下。

第二个文件:修改/Desktop/AppleALC/Resources/ALC269/Info.plist

这是他圈出来要改的地方,我根据自己的情况做了如下修改:
1、修改CodecID=283902569
2、Path=Platforms.xml.zlib
Comment值是默认的,我没做修改。LayoutID我设定的是1
修改后的info.plist如下:




第三个文件:修改/Desktop/AppleALC/Resources/PinConfigs.kext/Contents/Info.plist文件


这是他圈出来要修改的地方,我按照自己的情况做了如下修改:
1、修改Codec=ALC269
2、修改CodecID=283902569
3、修改ConfigData为上面提取并整理出来的值,即
  1. 01271c10 01271d01 01271ea3 01271f90
  2. 01471c40 01471d01 01471e13 01471f90
  3. 01571c50 01571d40 01571e21 01571f01
  4. 01771cf0 01771d00 01771e00 01771f40
  5. 01871c20 01871d90 01871e81 01871f01
  6. 01971cf0 01971d00 01971e00 01971f40
  7. 01a71cf0 01a71d00 01a71e00 01a71f40
  8. 01b71cf0 01b71d00 01b71e00 01b71f40
  9. 01d71cf0 01d71d00 01d71e00 01d71f40
  10. 01e71c70 01e71d41 01e71e45 01e71f01
  11. 01470c02
复制代码
4、修改LayoutID=1

修改后如下图所示:


第四个文件:修改/Desktop/AppleALC/Resources/ALC269/layout1.xml.zlib

他在教程中提到“首先向zlib文件转换为xml文件才可以编辑”,问题是我的/Desktop/AppleALC/Resources/ALC269/目录下没有layout1.xml.zlib文件,只有layout1.xml,所以我直接修改了layout1.xml文件。


这是他圈出来要修改的地方,我根据自己的情况做了如下修改:
1、修改LayoutID=1,因为这个文件中的CodecID和PathMapID默认就是和我要的值一样,所以没有修改
修改后的结果如下图所示:


2、删除LineOut项,因为我没有LineOut,如下图所示:




3、修改vref值,具体如下:
我搜索了一下vref,只有节点0x18有,值是80,如下图所示:


转换后是1342242840,于是修改LineIn下的MuteGPIO=1342242840,如下图所示:


另外,原layout1.xml中,节点Mic下MuteGPIO=1342242841,而Mic对应我的节点是0x12,搜索节点0x12,发现没有vref值,于是将默认的MuteGPIO=1342242841修改为MuteGPIO=0,如下图所示:




接着,我看原layout1.xml中没有SPDIFOut项,于是我手动添加了一下,如下图所示:


由于不知道SPDIFOut里具体怎么填,所以是空值。

完成以上修改后,将这个文件转换为layout1.xml.zlib,并复制到/Desktop/AppleALC/Resources/ALC269/目录下

接下来就是按照他的教程编译AppleALC驱动文件,将生成的AppleALC.kext和Lilu.kext(DEBUG版)一起放入Other下

在config.plist文件中我做了如下设置:





接下来就是修改CodecCommander.kext
Codec.txt中显示我的声卡型号是Realtek ALC269VC,但是CodecCommander.kext并没有带VC的,只有Realtek ALC269、Realtek ALC269 BRIX、Realtek ALC269VB三个,所以我在Realtek ALC269里做了修改。

展开Realtek ALC269,里面只有0这一项,下图中的1是我自己复制了0,然后再修改的

HP Out at Ext 所在的节点信息:
  1. Node 0x15 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  2.   Control: name="Headphone Playback Switch", index=0, device=0
  3.     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  4.   Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  5.   Amp-Out vals:  [0x80 0x80]
  6.   Pincap 0x0001001c: OUT HP EAPD Detect
  7.   EAPD 0x2: EAPD
  8.   Pin Default 0x0421401f: [Jack] HP Out at Ext Right
  9.     Conn = 1/8, Color = Green
  10.     DefAssociation = 0x1, Sequence = 0xf
  11.   Pin-ctls: 0xc0: OUT HP
  12.   Unsolicited: tag=01, enabled=1
  13.   Power states:  D0 D1 D2 D3 EPSS
  14.   Power: setting=D3, actual=D3
  15.   Connection: 2
  16.      0x0c* 0x0d
复制代码
按照Address+NodeID+708+设定值这个公式,我最后的结果就是

Mic at Ext  所在的节点信息:
  1. Node 0x18 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  2.   Control: name="Mic Boost Volume", index=0, device=0
  3.     ControlAmp: chs=3, dir=In, idx=0, ofs=0
  4.   Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  5.   Amp-In vals:  [0x00 0x00]
  6.   Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  7.   Amp-Out vals:  [0x80 0x80]
  8.   Pincap 0x00003734: IN OUT Detect
  9.     Vref caps: HIZ 50 GRD 80 100
  10.   Pin Default 0x04a19c30: [Jack] Mic at Ext Right
  11.     Conn = 1/8, Color = Pink
  12.     DefAssociation = 0x3, Sequence = 0x0
  13.   Pin-ctls: 0x24: IN VREF_80
  14.   Unsolicited: tag=02, enabled=1
  15.   Power states:  D0 D1 D2 D3 EPSS
  16.   Power: setting=D3, actual=D3
  17.   Connection: 2
  18.      0x0c* 0x0d
复制代码
按照Address+NodeID+707+Pin-ctls值公式,我的修改结果如下:


修改后放到Cover的other目录下,重启后还是有杂音。而且系统报告-音频里没有详细内容。

整个操作过程就是这样,麻烦大神帮忙分析一下原因出在哪里,谢谢大神了。








附件: 你需要登录才可以下载或查看附件。没有帐号?注册

Rank: 5Rank: 5Rank: 5

UID
2785018
帖子
560
PB币
560
贡献
0
技术
0
活跃
713
沙发
发表于 2018-5-2 10:34:29 IP属地上海 |只看该作者
没人帮忙指导一下吗,555555555555

Rank: 2Rank: 2

UID
10009
帖子
147
PB币
1982
贡献
0
技术
0
活跃
1772
板凳
发表于 2018-5-2 12:02:22 IP属地河南 |只看该作者
我这也是这个型号的声卡, 先试试原版的 appleALC 1.2.6, 注入 id 选 27, 28, 29 都试试, 内置输出, 耳机输出, 内置输入, hdmi 输出应该都可以, 外置麦克风不管用.
先确定能用了, 在这个基础上修改 appleALC 应该会简单些
不过这个改 pinconfig 挺麻烦, 我已经被绕晕了, 以后有空再梳理一下

Rank: 5Rank: 5Rank: 5

UID
2785018
帖子
560
PB币
560
贡献
0
技术
0
活跃
713
4F
发表于 2018-5-2 12:26:03 IP属地河北 |只看该作者
tingpu 发表于 2018-5-2 12:02
我这也是这个型号的声卡, 先试试原版的 appleALC 1.2.6, 注入 id 选 27, 28, 29 都试试, 内置输出, 耳机输出 ...

谢谢你提供思路,我再去试试

Rank: 5Rank: 5Rank: 5

UID
2785018
帖子
560
PB币
560
贡献
0
技术
0
活跃
713
5F
发表于 2018-5-2 12:36:09 IP属地河北 |只看该作者
tingpu 发表于 2018-5-2 12:02
我这也是这个型号的声卡, 先试试原版的 appleALC 1.2.6, 注入 id 选 27, 28, 29 都试试, 内置输出, 耳机输出 ...

我使用appleALC 1.2.7最新版的,注入id 29,其他什么都不做需要,发现还是有杂音

Rank: 5Rank: 5Rank: 5

UID
2785018
帖子
560
PB币
560
贡献
0
技术
0
活跃
713
6F
发表于 2018-5-2 16:04:35 IP属地河南 |只看该作者
哎,没人帮忙解答一下啊,我发现我发的帖子没有一个能存活下来的。。。。

Rank: 1

UID
4840327
帖子
47
PB币
137
贡献
0
技术
3
活跃
41
7F
发表于 2018-5-2 16:26:40 IP属地广东 |只看该作者
我的295也折腾了很久

Rank: 5Rank: 5Rank: 5

UID
2785018
帖子
560
PB币
560
贡献
0
技术
0
活跃
713
8F
发表于 2018-5-2 16:47:20 IP属地内蒙古 |只看该作者
xiegengcai 发表于 2018-5-2 16:26
我的295也折腾了很久

后来呢,成功了没

Rank: 1

UID
4840327
帖子
47
PB币
137
贡献
0
技术
3
活跃
41
9F
发表于 2018-5-2 16:51:09 IP属地广东 |只看该作者
imeeior 发表于 2018-5-2 16:47
后来呢,成功了没

改configData搞好了

Rank: 5Rank: 5Rank: 5

UID
2785018
帖子
560
PB币
560
贡献
0
技术
0
活跃
713
10F
发表于 2018-5-2 16:53:04 IP属地内蒙古 |只看该作者
xiegengcai 发表于 2018-5-2 16:51
改configData搞好了

你是在AppleALC1.2.7的基础上改的还是自己从头仿冒的呢

Rank: 5Rank: 5Rank: 5

UID
2785018
帖子
560
PB币
560
贡献
0
技术
0
活跃
713
11F
发表于 2018-5-2 16:53:56 IP属地河北 |只看该作者
xiegengcai 发表于 2018-5-2 16:51
改configData搞好了

你的系统报告-音频中是怎么显示的,只显示内建输入和内建输出,还是有具体的名称显示的,比如麦克风,耳机等等

Rank: 1

UID
4840327
帖子
47
PB币
137
贡献
0
技术
3
活跃
41
12F
发表于 2018-5-2 17:03:44 IP属地广东 |只看该作者
imeeior 发表于 2018-5-2 16:53
你的系统报告-音频中是怎么显示的,只显示内建输入和内建输出,还是有具体的名称显示的,比如麦克风,耳 ...

自己在Linux下拿到的codec,分析有效节点生成的configdata,修改驱动已有layout-id中的configdata实现的
你的情况应该是屏蔽了Line out节点或耳机节点有个值不对(就是插入识别的,具体要看教程)

Rank: 5Rank: 5Rank: 5

UID
2785018
帖子
560
PB币
560
贡献
0
技术
0
活跃
713
13F
发表于 2018-5-2 17:29:00 IP属地河南 |只看该作者
xiegengcai 发表于 2018-5-2 17:03
自己在Linux下拿到的codec,分析有效节点生成的configdata,修改驱动已有layout-id中的configdata实现的
...

我的codec.txt里没有line out节点,后来又重新仿冒了一次成功了,现在的问题是有杂音,而且在系统报告-音频里不显示具体的名称,比如麦克风,耳机这些,只显示内建输入,内建输出两个

Rank: 9

UID
2163032
帖子
4654
PB币
5619
贡献
0
技术
21
活跃
2419
14F
发表于 2018-5-3 07:56:01 IP属地马来西亚 |只看该作者
本帖最后由 limurphy 于 2018-5-3 07:57 编辑
imeeior 发表于 2018-5-2 17:29
我的codec.txt里没有line out节点,后来又重新仿冒了一次成功了,现在的问题是有杂音,而且在系统报告-音 ...






附件: 你需要登录才可以下载或查看附件。没有帐号?注册

Rank: 9

UID
2163032
帖子
4654
PB币
5619
贡献
0
技术
21
活跃
2419
15F
发表于 2018-5-3 08:15:10 IP属地马来西亚 |只看该作者
imeeior 发表于 2018-5-2 17:29
我的codec.txt里没有line out节点,后来又重新仿冒了一次成功了,现在的问题是有杂音,而且在系统报告-音 ...


附件: 你需要登录才可以下载或查看附件。没有帐号?注册

Rank: 7Rank: 7Rank: 7

UID
57689
帖子
1419
PB币
348
贡献
0
技术
5
活跃
1211
16F
发表于 2018-5-3 09:54:41 IP属地未知 |只看该作者
xiegengcai 发表于 2018-5-2 16:26
我的295也折腾了很久

我的ALC883声卡破音,卡音未解决???求助大神

Rank: 2Rank: 2

UID
4584903
帖子
146
PB币
5
贡献
0
技术
0
活跃
207
17F
发表于 2018-5-3 10:51:10 IP属地广东 |只看该作者
看我帖子,用声卡守护进程

Rank: 1

UID
4840327
帖子
47
PB币
137
贡献
0
技术
3
活跃
41
18F
发表于 2018-5-3 11:14:46 IP属地广东 |只看该作者
eagle_gl 发表于 2018-5-3 09:54
我的ALC883声卡破音,卡音未解决???求助大神

我也是看黑果小兵和简书上的教程搞的
https://www.jianshu.com/p/29a74f0664f1
https://blog.daliansky.net/Use-AppleALC-sound-card-to-drive-the-correct-posture-of-AppleHDA.html#more
音质不好就是需要屏蔽一些端口

Rank: 5Rank: 5Rank: 5

UID
2785018
帖子
560
PB币
560
贡献
0
技术
0
活跃
713
19F
发表于 2018-5-3 15:21:38 IP属地福建 |只看该作者
limurphy 发表于 2018-5-3 08:15

哥,节点18不是应该设定成Line in的吗?

Rank: 9

UID
2163032
帖子
4654
PB币
5619
贡献
0
技术
21
活跃
2419
20F
发表于 2018-5-3 15:25:20 IP属地马来西亚 |只看该作者
本帖最后由 limurphy 于 2018-5-3 15:26 编辑
imeeior 发表于 2018-5-3 15:21
哥,节点18不是应该设定成Line in的吗?
是 line in , 抱歉
回顶部
Copyright (C) 2005-2024 pcbeta.com, All rights reserved
Powered by Discuz!  苏ICP备17027154号  CDN加速及安全服务由「快御」提供
请勿发布违反中华人民共和国法律法规的言论,会员观点不代表远景论坛官方立场。
远景在线 | 远景论坛 | 苹果论坛 | Win11论坛 | Win10论坛 | Win8论坛 | Win7论坛 | WP论坛 | Office论坛