x86 硬件上的 Mac OS X 2008–2024 技术文献库
InfiniteMac OSx86 › Snow Leopard 10.6 › 如何将 Leopard 的 AppleHDA.kext 声卡驱动移植至 Snow Leopard(二进制 Byte-Flip 与 Plist 结构移植教程)
478,935 reads · 2009-09-08 – 2010-11-14
实战指南 Snow Leopard 10.6 DSDT ALC889a / Audio

如何将 Leopard 的 AppleHDA.kext 声卡驱动移植至 Snow Leopard(二进制 Byte-Flip 与 Plist 结构移植教程)

简体中文精译技术专卷 · 完整保留原始命令、Kext 名称、ACPI 节点与引导参数查看英文原版 (Original English) →

收到许多成员询问如何将自己在 Leopard (10.5) 下工作正常的修改版 AppleHDA.kext 移植到 Snow Leopard (10.6)。本指南假设你已有一份在 Leopard 下正常发声的 AppleHDA.kext,并且已在 DSDT 中完成 HDEF 声卡注入(若尚未修补 DSDT,请先参阅 snow 的 ALC889a DSDT 教程 →)。

事前准备工具

  1. Snow Leopard 原生未修改的 AppleHDA.kext(简称 (SL)AppleHDA.kext)
  2. 你在 Leopard 下正常工作的 AppleHDA.kext(简称 (Leo)AppleHDA.kext)
  3. PlistEdit Pro 属性列表编辑器
  4. HexEdit 十六进制编辑器(hexedit.sourc eforge.net/)

步骤 1:二进制 Codec ID 小端序(Byte-Flip)替换

以下是 Snow Leopard AppleHDA 原生二进制文件已内置支持的 5 款声卡芯片(无需二进制修补):

Name          Codec ID (dec)   Codec ID (hex)
AD1984        299112836        0x11D41984
AD1988        299112843        0x11D4198B
STAC9220    -2088470912        0x83847680
ALC262        283902562        0x10ec0262
ALC885        283904133        0x10ec0885

若你的声卡芯片不在此列(例如 ALC888,十六进制为 0x10ec0888),请右键打开 (SL)AppleHDA.kext/Contents/MacOS/AppleHDA 二进制文件并用 HexEdit 加载。以将 0x10ec0885(ALC885)替换为 0x10ec0888(ALC888)为例:

  • 按 Command + F 搜索 10ec0885 的小端序反转字节(Byte-Flip):8508ec10
  • 将其全部替换(Replace All,共 4 处)为 10ec0888 的反转字节:8808ec10,然后保存并关闭。

步骤 2:移植 AppleHDAHardwareConfigDriver.kext 的 PinConfig

  1. 使用 PlistEdit Pro 打开:
    (SL)AppleHDA.kext/Contents/PlugIns/AppleHDAHardwareConfigDriver.kext/Contents/Info.plist
  2. 展开至 IOKitPersonalities/HDA Hardware Config Resource/HDAConfigDefault/,删除其下原有的所有子项。
  3. 打开旧版 (Leo)AppleHDA.kext 对应的 Info.plist(位于 AppleHDAController.kext 或 AppleHDAHardwareConfigDriver.kext 内),复制包含你 CodecID 与 LayoutID(通常为 12)的子节点,粘贴为 Snow Leopard HDAConfigDefault 的子项(Paste as Child)并保存。

步骤 3:移植 AppleHDAPlatformDriver.kext 的 Layouts 与 PathMaps

  1. 打开:
    (SL)AppleHDA.kext/Contents/PlugIns/AppleHDAPlatformDriver.kext/Contents/Info.plist
  2. 展开至 IOKitPersonalities/HDA Platform Resource/,清空 Layouts 与 PathMaps 下的默认项。
  3. 从旧版 (Leo)AppleHDA.kext 中复制对应 LayoutID(例如 12)的 Layout 节点粘贴入 Layouts,并记下其引用的 PathMapID(例如 9);再将对应 PathMapID 的节点粘贴入 PathMaps,保存并用 KextUtility 安装即可!
参与贡献成员 (39)
@mormegil (27)@mimayin (14)@Pietruszka (6)@airwalk776 (6)@msf5042 (6)@Jedric (5)@dan10 (4)@calabuig (4)@Snow (3)@Gurruwiwi (3)@blkhockeypro19 (3)@ping99 (3)@max.1974 (3)@xxxslayeriiixxx (2)@thorazine74 (2)@vincenzo32 (2)+23 more
相关硬件参考
免驱 Mac USB 外置声卡 ↗ 静音散热器与电源组件 ↗ SATA III / NVMe 固态硬盘 ↗

社区实测与技术补充笔记

自 117 则原始讨论回帖中萃取 102 则高价值技术回应

技术笔记 #1 @infinitek 2009-09-08

多谢分享这篇实用教程……请问方便直接上传你改好的 ALC888 版 AppleHDA 吗?

作者修订 #1 @mormegil 2009-09-08 ↳ Re: @infinitek

这组 plist 配置效果最好。从今往后我不再逐一上传整包修改好的 AppleHDA.kext 了。

技术笔记 #2 @Pietruszka 2009-09-09

请问如果我旧版 AppleHDA.kext 里面的子节点不只有编号 0,而是从 0 一直排到 23……

那我到底应该复制哪一个?

多谢指教!

作者修订 #2 @mormegil 2009-09-09 ↳ Re: @Pietruszka

在第 2 步中,请在 CodecID 键值下搜索你的十进制 Codec ID。找到该节点后,记下它所使用的 LayoutID;如果数值不是 12,请将它改为 12。

接着再搜索一次,确认整个文件里只出现这唯一一处。你可以放心删掉其它无关的 Layout 节点,保持 plist 结构干净整洁。

技术笔记 #3 @Pietruszka 2009-09-09

我把所有 PathMaps 和 Layouts 都复制过去了,但还是没声音……我会再试试你的建议。

多谢帮忙!

P.S. 如果还是不行,我可以贴出我在 Leopard 下正常工作的 AppleHDA 以及 10.6 的新版本请你帮忙看吗?

作者修订 #3 @mormegil 2009-09-10 ↳ Re: @Pietruszka
@Pietruszka我把所有 PathMaps 和 Layouts 都复制过去了,但还是没声音……我会再试试你的建议,多谢帮忙!P.S. 如果还是不行,我可以贴出我在 Leopard 下正常工作的 AppleHDA 以及 10.6 的新版本请你帮忙看吗?

你已经修补好 DSDT 了吗?

技术笔记 #4 @Pietruszka 2009-09-10

有的,我已经修补好 DSDT 了。

但在我这里依然没声音……或许是我哪个步骤做错了吧。

不管怎样还是非常感谢你的帮忙!

技术笔记 #5 @arm1tage 2009-09-10

这方法在我这里也没用(Dell E6500 笔记本,IDT 声卡芯片,Byte-Flip 十六进制设为 8508EC10),即使已经修补好 DSDT 也是没声音;反而在“网络偏好设置”里离奇冒出一个神秘的“检测到新接口 —— PCI Serial Adapter (3)”……

技术笔记 #6 @Gurruwiwi 2009-09-10

Mormegil,照着你的教程、加上之前你帮我收集齐全的信息,我发现原本开机时那一堆 assertion "0" 啰嗦模式报错几乎全部消失了,只剩最后一个!系统现在不再崩溃或 KP 了,只是偶尔会跳出重复的开机信息。我知道剩下那个错误是我自己造成的,因为我为了让 plist 结构尽量贴近你的教程,手动删掉了一个名叫 CodecAddressMaskData 的项目。完整的 -v 报错信息如下:

Sound assertion "0 == codecAddressMaskData" failed in "/sourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDAcontroller.cpp" at line 1159 goto Exit

今晚我打算从头再试一次,看来有些原生默认字段不能随便删掉。

请问你知道去哪里可以查到关于我这颗芯片的这项参数信息吗?

作者修订 #4 @mormegil 2009-09-10 ↳ Re: @arm1tage
@arm1tage这方法在我这里也没用(Dell E6500 笔记本,IDT 声卡芯片,Byte-Flip 十六进制设为 8508EC10),即使已经修补好 DSDT 也是没声音;反而在“网络偏好设置”里离奇冒出一个“检测到新接口 —— PCI Serial Adapter (3)”……

8508EC10 那个 Codec 地址属于 Realtek 的 ALC885/ALC889a!请用 Linux Live CD 提取你自己的专属 Codec Dump 吧。

作者修订 #5 @mormegil 2009-09-10 ↳ Re: @Gurruwiwi
@GurruwiwiMormegil,照着你的教程、加上之前你帮我收集齐全的信息,我发现原本开机时那一堆“assertion 0”报错几乎全部消失了,只剩最后一个!系统现在不再崩溃或 KP 了,只是偶尔会跳出重复的 -v 信息。我知道剩下那个错误是我自己造成的,因为我为了让 plist 结构尽量贴近你的教程而删掉了一个项目……

请问你的声卡在 10.5 Leopard 下是正常发声的吗?

技术笔记 #7 @Gurruwiwi 2009-09-10

有的,在 10.5 下是可以出声的,不过当时用的是 VoodooHDA。

我刚才又从头做了一遍,发现上次肯定是自己搞错了什么步骤,因为这次根本没遇到那个 codecAddress 问题。我确保使用干净的原版 AppleHDA 重新开始。

我手头上有自己从 Linux 提取出来的真实 Codec Dump,唯一需要靠猜的只有把 PathMapID 设为 9,其余数据百分百来自我的机器。

遗憾的是,重启之后还是直接触发五国死机(KP)了。

补充一个小细节:当我重做步骤、用 HexEdit 修改 AppleHDA/Contents/MacOS/AppleHDA 二进制文件进行 Byte-Flip 并按保存时,它会自动生成一个文本文件(AppleHDA.txt),并把原本的二进制文件改名成“AppleHDA~”。因此第二次操作时,我先把二进制文件复制到别的文件夹修改、保存,再把生成的文件去掉“~”改回原名放回去(只放回二进制可执行文件)。不确定这点有没有影响,但还是提出来供大家参考。

作者修订 #6 @mormegil 2009-09-10 ↳ Re: @Gurruwiwi

你是用 HexEdit 编辑的对吧?正常来说它不应该会生成 .txt 文本文件。

总之,正如我开头所言,本教程的前提是你手头上已经有一份在 Leopard 下正常工作的 Kext。请先回到 Leopard,把网上找得到的所有现成修改版 Kext 试过一遍(去 InsanelyMac 论坛搜搜看),直到找到能正常出声的版本为止——你需要的只是一组针对你 Codec 写好正确 ConfigData、Layout 与 PathMap 的 plist 配置。

等你找到能在 Leopard 正常工作的版本后,再来考虑将它移植到 Snow Leopard 吧。

技术笔记 #8 @Gurruwiwi 2009-09-10

是的,我是从你给的链接下载 HexEdit 的。我替换了全部 4 处数值,然后点选“File -> Save”。

会不会是因为我的 Finder 开启了“显示所有隐藏文件”?但它确实把原本的 Unix 可执行文件后面加上了“~”备份符号。

好的,我居然没想到先去 Leopard 找现成可用的 AppleHDA,我这就去试,多谢点醒!

技术笔记 #9 @Pietruszka 2009-09-10

依然没搞定……

在第 2 步里,我的 CodecID 出现了两次……我试过两个都复制过去,没用;只复制其中一个,也没用。

把 LayoutID 从 662 改成 12……还是没用。

完全不知道接下来该怎么办了。

我放弃了……

实在想不出还能怎么改……

作者修订 #7 @mormegil 2009-09-10 ↳ Re: @Pietruszka
@Pietruszka依然没搞定……在第 2 步里,我的 CodecID 出现了两次……我试过两个都复制过去,没用;只复制其中一个,也没用;把 LayoutID 从 662 改成 12……还是没用。完全不知道接下来该怎么办,我放弃了……

你确定你那份 AppleHDA 在 10.5 下真的能正常工作吗?还有你在 DSDT 里注入的 layout-id 是多少?

请在 10.5 下打开“系统概述 › 音频(System Profiler > Audio)”,看看里面显示的“Audio ID”是多少?

技术笔记 #10 @Pietruszka 2009-09-11

设备 ID(Device ID): 0x1458A002
Audio ID: 662

看来我之前误会你的意思了(我的错)……你问我有没有修补 DSDT,

我有修补过 DSDT(做了 RTC、Time Machine 修复、LAN 网卡、7600GS 显卡),但从没加过声卡补丁……因为以前在 Leopard 从来不需要改 DSDT,只要直接替换 AppleHDA.kext 就有声音了。

请问在 Snow Leopard 下就一定得通过 DSDT 注入声卡吗?以前明明不用这样做的。

抱歉我的英语不太好,再次感谢你的热心帮忙!

技术笔记 #11 @Pietruszka 2009-09-11

万分感谢你的指导……

我照你说的把 HDEF 代码补进 DSDT 里,

然后配合在别的论坛找到的 ALC662.kext(放在 /Extra),现在终于成功出声了!

技术笔记 #12 @tokyovigilante 2009-09-16

这篇教程实在太棒了,多谢!我的华硕 P5K-E 主板(AD1988B 声卡芯片)原本要靠额外的 plist 注入 Kext 才能发声,改用这套方法后连 S/PDIF 光纤输出都能完美使用了,赞爆!

技术笔记 #13 @lemn 2009-09-16

嗨,我照着你的教程做好了一份修补版 AppleHDA.kext。
问题是当我用 kextload 加载它时,系统里完全没有出现任何音频设备。
我的声卡芯片是 ADI 1988。我试着照教程去修补 DSDT,但因为教程示例针对的是另一款芯片(ALC889),我在自己的 dsdt.dsl 里根本找不到对应的段落。
请问该怎么办?多谢!

作者修订 #8 @mormegil 2009-09-18 ↳ Re: @lemn

如果在你的 DSDT 里找不到 AZAL 或 HDEF,直接手动把这段 Device (HDEF) 代码加进去即可:

            Device (HDEF)
            {
                Name (_ADR, 0x001B0000)
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x04)
                        {
                            "layout-id", 
                            Buffer (0x04)
                            {
                                0x0C, 0x00, 0x00, 0x00
                            }, 

                            "PinConfigurations", 
                            Buffer (Zero) {}
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }

搜索 Device (PCI0),把它放在里面,看起来应该像这样:

       Device (PCI0)
        {
            Device (HDEF)
            {
                Name (_ADR, 0x001B0000)
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x04)
                        {
                            "layout-id", 
                            Buffer (0x04)
                            {
                                0x0C, 0x00, 0x00, 0x00
                            }, 

                            "PinConfigurations", 
                            Buffer (Zero) {}
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
            .
            .
            .
技术笔记 #14 @Ezhoon 2009-09-18 ↳ Re: @mormegil

请问这段通用 HDEF 代码也可以直接用在 ALC883 上吗?

@mormegil如果在你的 DSDT 里找不到 AZAL 或 HDEF,直接手动把这段 Device (HDEF) 代码加进去即可:Device (HDEF) { Name (_ADR, 0x001B0000) Method (_DSM, 4, NotSerialized) { Store (Package (0x04) { "layout-id", Buffer (0x04) { 0x0C, 0x00, 0x00, 0x00 }, "PinConfigurations", Buffer (Zero) {} }, Local0) DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0) } }……
技术笔记 #15 @Jedric 2009-09-20

在我这里还是没成功。

DSDT 已经顺利修补并编译通过。

但在 Snow Leopard 下开机会出现以下报错:

Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: DSMOS has arrivedSound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit

Snow Leopard 下检测到的信息(无声):
Intel High Definition Audio:

Device ID: 0x1458A002
Audio ID: 12
Available Devices:
Line Out:
Connection: 1/8-Inch Jack
External Microphone:
Connection: 1/8-Inch Jack
External Microphone:
Connection: 1/8-Inch Jack
Headphone:
Connection: 1/8-Inch Jack
S/P-DIF Out:
Connection: RCA

Leopard 下检测到的信息(正常发声):
Intel High Definition Audio:

Device ID: 0x10438277
Audio ID: 12
Available Devices:
Headphone:
Connection: 1/8 inch Jack
Speaker:
Connection: Internal
Line In:
Connection: 1/8 inch Jack
S/P-DIF In:
Connection: Optical
S/P-DIF Out:
Connection: Optical
Microphone:
Connection: Internal

作者修订 #9 @mormegil 2009-09-20 ↳ Re: @Jedric

Device ID: 0x1458A002
Audio ID: 12

Device ID: 0x10438277
Audio ID: 12

看出两者有什么异样了吗?

技术笔记 #16 @Jedric 2009-09-20

对,我也有注意到这点,所以我才专门贴出来!不知为何,我的声卡在 Snow Leopard 下总是会被识别成 Device ID: 0x1458A002。

我试过在 SL 原生 AppleHDA.kext 里搜索 341352450(即十六进制 1458A002 的十进制值),但完全找不到任何相关条目。

作者修订 #10 @mormegil 2009-09-20 ↳ Re: @Jedric

你到底有没有仔细看过教程?原生 SL Kext 里面原本有什么根本不重要,这篇教程的核心思路是把配置从“能在 Leopard 正常工作的 Kext”复制转移过来。

0x1458A002 根本不是你的 Codec ID!如果你连自己的 Codec ID 是什么都搞不清楚,我也爱莫能助。
技术笔记 #17 @rachaf 2009-09-20

我的声卡芯片是 IDT 92HD71B7 @ Intel 82801IB ICH9
Codec ID = 0x111D76B2

我的 Pin Config 为:
<00571C10 00571D01 00571E56 00571F18 00771C21 00771D01 00771E56 00771F58 00971C22 00971D01 00971E56 00971F58 00B71C23 00B71D01 00B71E56 00B71F58 00D71C24 00D71D01 00D71E56 00D71F58>

我下载了你在这篇帖子里分享的修补版 AppleHDA.kext:
(Solved)Patching New AppleHDA Kext →

虽然有声音,但经常引发五国死机(KP)并出现大量 Sound assertion "0 == pathMap…AppleHDA/AppleHDADriver.cpp…" 报错,

而且从睡眠唤醒(Wake from Sleep)后就会彻底失去声音。

恳请指点我该如何修正?

抱歉我的英语不太好。

技术笔记 #18 @Jedric 2009-09-21

有的,我有仔细读过并照着教程做,我明白这套流程是将 Layout、PathMaps 与 CodecID 从 Leopard 转移到 Snow Leopard。

我也知道 0x1458A002 不是我的真实 Codec ID——我机器上实际的芯片是 0x10ec0883(ALC883)。

我想表达的是:不知为何在 SL 的“系统概述”里总是显示 0x1458A002,但原版 AppleHDA.kext 里明明没有这个数值,所以我才感到纳闷。

我 Google 查了一下 0x1458A002,发现它对应的是技嘉主板的 ALC889A。

在 Leopard 下,我是用自己提取的 Codec Dump 配合 Taruga Patcher 1.20 生成的 AppleHDA.kext,工作非常正常。

而在 Leopard 的系统概述里,我的声卡却显示为:
Device ID: 0x10438277 —— Google 查出来居然是华硕主板的 ADI 1988B(真怪)。

我突然想到一个主意……

或许我应该试试填入 Leopard 下显示的 0x10438277,而不是物理芯片本身的 0x10ec0883。

技术笔记 #19 @thorazine74 2009-09-21 ↳ Re: @Jedric
@Jedric有的,我有仔细读过并照着教程做,我明白这套流程是将 Layout、PathMaps 与 CodecID 从 Leopard 转移到 Snow Leopard。我也知道 0x1458A002 不是我的真实 Codec ID——我机器上实际的芯片是 0x10ec0883……
0x1458A002 是该声卡芯片的“子系统厂商与设备 ID(Subsystem Vendor & Device ID)”,既不是 PCI 控制器 ID,也不是 Codec ID。出于某些原因,Apple 的“系统概述”会显示 Subsystem ID 而非 Codec ID。
我不清楚为什么你那里会显示 0x1458A002(这代表技嘉 Gigabyte P35 系列主板);如果你用的是华硕(ASUS)主板,除非你在某处(比如 DSDT 或某个注入 plist)不小心注入了技嘉的数值,否则绝对不会无缘无故出现 0x1458A002。
至于 0x10438277 则是华硕主板的 Subsystem ID(Realtek 制造声卡芯片,华硕将它焊在主板上并烧录自家的子系统 ID)。因此你必须依靠 Linux 提取的 Codec Dump 才能得知真正的 Codec ID,千万不能光看“系统概述”里的 Device ID。
技术笔记 #20 @vincenzo32 2009-09-21

大家好,这是我来本论坛发的第一篇帖,想请问这篇教程是否适用于华硕 Z53Ja 笔记本上的 Realtek ALC660/861 声卡芯片?多谢!

作者修订 #11 @mormegil 2009-09-21 ↳ Re: @vincenzo32
@vincenzo32大家好,这是我来本论坛发的第一篇帖,想请问这篇教程是否适用于华硕 Z53Ja 笔记本上的 Realtek ALC660/861 声卡芯片?多谢!

只要你手头上原本有能在 Leopard 正常工作的旧版 Kext,这套移植方法理论上适用于任何 Codec。

技术笔记 #21 @vincenzo32 2009-09-21

我在编辑 plist 时遇到一点困难,因为这颗 Codec 相当冷门:表面型号标为 ALC660,但在 Codec Dump 里显示的十六进制 ID 却是 0x10ec0861(反转后为 6108ec10)。

技术笔记 #22 @thorazine74 2009-09-22 ↳ Re: @vincenzo32
@vincenzo32我在编辑 plist 时遇到一点困难,因为这颗 Codec 相当冷门:表面型号标为 ALC660,但在 Codec Dump 里显示的十六进制 ID 却是 0x10ec0861(反转后为 6108ec10)。

Realtek 经常把拥有相同硬件 ID 的芯片冠上不同的商业型号出售(最著名的例子就是 ALC889a 在硬件层面其实识别为 0x10EC0885)。请一律以 Codec Dump 里读出来的真实硬件数值为准!

技术笔记 #23 @Jedric 2009-09-22 ↳ Re: @thorazine74
@thorazine740x1458A002 是该声卡芯片的“子系统厂商与设备 ID(Subsystem Vendor & Device ID)”,既不是 PCI 控制器 ID,也不是 Codec ID……

我检查了我自己的 Codec Dump,内容如下:
Codec: Realtek ALC883
Address: 0
Vendor Id: 0x10ec0883
Subsystem Id: 0x1043829e

Codec: Realtek ALC883
Address: 0
Vendor Id: 0x10ec0883
Subsystem Id: 0x1043829e
Revision Id: 0x100002
Default PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
Node 0x02 [Audio Output] wcaps 0x11: Stereo
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x11: Stereo
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x04 [Audio Output] wcaps 0x11: Stereo
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x05 [Audio Output] wcaps 0x11: Stereo
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0x1e]: 16 20 24 32
    formats [0x1]: PCM
Node 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x08 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Amp-In caps: ofs=0x08, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x00 0x00]
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0x6]: 16 20
    formats [0x1]: PCM
  Connection: 1
     0x23
Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Amp-In caps: ofs=0x08, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x00 0x00]
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0x6]: 16 20
    formats [0x1]: PCM
  Connection: 1
     0x22
Node 0x0a [Audio Input] wcaps 0x100391: Stereo Digital
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0x1e]: 16 20 24 32
    formats [0x1]: PCM
  Connection: 1
     0x1f
Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x80 0x80] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 10
     0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17
Node 0x0c [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
  Amp-Out vals:  [0x19 0x19]
  Connection: 2
     0x02 0x0b
Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
  Amp-Out vals:  [0x00 0x00]
  Connection: 2
     0x03 0x0b
Node 0x0e [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
  Amp-Out vals:  [0x00 0x00]
  Connection: 2
     0x04 0x0b
Node 0x0f [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
  Amp-Out vals:  [0x00 0x00]
  Connection: 2
     0x05 0x0b
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x083e: IN OUT HP Detect
  Pin Default 0x01014010: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Green
  Pin-ctls: 0x40: OUT
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x15 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x083e: IN OUT HP Detect
  Pin Default 0x01011012: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Black
  Pin-ctls: 0x40: OUT
  Connection: 5
     0x0c 0x0d* 0x0e 0x0f 0x26
Node 0x16 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x083e: IN OUT HP Detect
  Pin Default 0x01016011: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Orange
  Pin-ctls: 0x40: OUT
  Connection: 5
     0x0c 0x0d 0x0e* 0x0f 0x26
Node 0x17 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x083e: IN OUT HP Detect
  Pin Default 0x01012014: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Grey
  Pin-ctls: 0x40: OUT
  Connection: 5
     0x0c 0x0d 0x0e 0x0f* 0x26
Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x08173e: IN OUT HP Detect
  Pin Default 0x01a19840: [Jack] Mic at Ext Rear
    Conn = 1/8, Color = Pink
  Pin-ctls: 0x24: IN
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x19 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x08173e: IN OUT HP Detect
  Pin Default 0x02a19c50: [Jack] Mic at Ext Front
    Conn = 1/8, Color = Pink
  Pin-ctls: 0x24: IN
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1a [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x08173e: IN OUT HP Detect
  Pin Default 0x0181304f: [Jack] Line In at Ext Rear
    Conn = 1/8, Color = Blue
  Pin-ctls: 0x20: IN
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x08173e: IN OUT HP Detect
  Pin Default 0x02214c20: [Jack] HP Out at Ext Front
    Conn = 1/8, Color = Green
  Pin-ctls: 0xc0: OUT HP
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1c [Pin Complex] wcaps 0x400001: Stereo
  Pincap 0x0820: IN
  Pin Default 0x593301f0: [N/A] CD at Int ATAPI
    Conn = ATAPI, Color = Unknown
  Pin-ctls: 0x00:
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
  Pincap 0x0820: IN
  Pin Default 0x4005e601: [N/A] Line Out at Ext N/A
    Conn = Optical, Color = White
  Pin-ctls: 0x00:
Node 0x1e [Pin Complex] wcaps 0x400300: Mono Digital
  Pincap 0x0810: OUT
  Pin Default 0x01441130: [Jack] SPDIF Out at Ext Rear
    Conn = RCA, Color = Black
  Pin-ctls: 0x00:
  Connection: 1
     0x06
Node 0x1f [Pin Complex] wcaps 0x400200: Mono Digital
  Pincap 0x0820: IN
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
  Pin-ctls: 0x00:
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
Node 0x21 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x22 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Amp-Out caps: N/A
  Amp-Out vals:  [0x00 0x00]
  Connection: 11
     0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x23 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x80 0x80] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Amp-Out caps: N/A
  Amp-Out vals:  [0x00 0x00]
  Connection: 11
     0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x24 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x25 [Audio Output] wcaps 0x11: Stereo
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x26 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
  Amp-Out vals:  [0x00 0x00]
  Connection: 2
     0x25 0x0b

我实在搞不懂自己哪里做错了。今早我又重试了一次,系统概述里依然显示 0x1458A002。这是全新安装的 SL 系统,我并没有在任何地方注入 0x1458A002;DSDT 也是全新提取的,只加入了 Mormegil 贴出的那段通用声卡注入代码,而且编译时零错误。

但在 IORegistryExplorer 里看起来却是正常的,codec-id 确实显示为 0x10ec0883。

技术笔记 #24 @Jedric 2009-09-22

这是我切回 Leopard 下看到的画面。正如你所解释的,SL 与 Leopard 显示的 subsystem-id 与 subsystem-vendor-id 确实不一样。

技术笔记 #25 @blkhockeypro19 2009-09-22

我已经妥善修补好 DSDT 并顺利照着教程做完所有步骤。重启后却出现以下报错:

9/21/09 6:46:35 PM kernel NVDANV50HAL loaded and registered.
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAWidgetSTAC9220.cpp" at line 113 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroup.cpp" at line 116 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroupSTAC9220.cpp" at line 55 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != err" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDACodecGeneric.cpp" at line 205 goto ExitError
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAWidgetSTAC9220.cpp" at line 113 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroup.cpp" at line 116 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroupSTAC9220.cpp" at line 55 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != err" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDACodecGeneric.cpp" at line 205 goto ExitError
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAWidgetSTAC9220.cpp" at line 113 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroup.cpp" at line 116 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroupSTAC9220.cpp" at line 55 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != err" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDACodecGeneric.cpp" at line 205 goto ExitError
9/21/09 6:46:36 PM kernel DSMOS has arrived

请问有人知道问题出在哪里吗?我是从 Leopard 的 STAC9227 Kext 移植过来的。

作者修订 #12 @mormegil 2009-09-23 ↳ Re: @blkhockeypro19
@blkhockeypro19我已经妥善修补好 DSDT 并顺利照着教程做完所有步骤。重启后却出现以下报错:9/21/09 6:46:35 PM kernel NVDANV50HAL loaded and registered. 9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAWidgetSTAC9220.cpp" at line 113 goto Exit……

那么,进系统后实际上有声音吗?

技术笔记 #26 @ping99 2009-09-25

Conexant CX20561 在 Snow Leopard 下出现 Sound Assertion 报错

我照着本教程修补了原版 Snow Leopard 的 AppleHDA,但每次重启都会看到如下的 Sound assertion 报错:

Sep 25 18:22:03 Ping-Tsengs-Mac-Pro kernel[0]: Previous Shutdown Cause: 3
Sep 25 18:22:04 Ping-Tsengs-Mac-Pro kernel[0]: VoodooPS2SynapticsTouchPad loaded
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: VoodooPS2Trackpad: Synaptics TouchPad v7.0
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: DSMOS has arrivedSound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Sep 25 18:22:06 Ping-Tsengs-Mac-Pro kernel[0]: com_psystar_RealtekR1000: Ethernet address 00:1f:16:57:9c:45
Sep 25 18:22:06 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == entry" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 2976 goto Exit
Sep 25 18:22:08: --- last message repeated 2 times ---
Sep 25 18:22:07 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == entry" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 3009 goto Exit
Sep 25 18:22:09: --- last message repeated 15 times ---
Sep 25 18:22:07 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == entry" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 2976 goto Exit
Sep 25 18:22:09: --- last message repeated 1 time ---
Sep 25 18:22:07 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == fPathControls" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1273 goto Exit
Sep 25 18:22:07 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1194 goto Exit
Sep 25 18:22:07 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != pathSet->getWidgetAmplifierGainRange ( &zeroValue, &minValue, &maxValue, &minDB, &maxDB, kPATH_CONTROL_SPATIAL_CHANNELID_Master )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 278 goto handler
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == fPathControls" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1273 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1097 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == fPathControls" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1273 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1194 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 4954 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 4906 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != readVolumeSettingFromCache ( pathSet, hdaSpatialChannnelID, &cachedVolumeMuteSetting )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 2103 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != createVolumeControlForActivePathSet ( hdaSpatialChannnelID, direction )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 2273 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != createVolumeAndMuteControlsForActivePathSet ( kPathDirectionInput )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 7684 goto Exit
Sep 25 18:22:10 Ping-Tsengs-Mac-Pro kernel[0]: ACPI_SMC_PlatformPlugin::start - waitForService(resourceMatching(AppleIntelCPUPowerManagement) timed out
Sep 25 18:22:58 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == entry" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 3009 goto Exit
Sep 25 18:24:40 Ping-Tsengs-Mac-Pro kernel[0]: IOHIDSystem::relativePointerEventGated: VBL too high (20863126), capping to 20000000

有时候开机会直接五国 KP 进不了 SL 桌面,必须加上 -v -f 重启才能进入系统;进桌面后耳机、内置喇叭与 Line Out(支持自动切换)都能正常发声,唯独无法录音(麦克风无效)。之后虽然可以正常重启进入 SL,但系统日志里还是有一堆 Sound assertion。

而且只要我安装任何新的 Kext 或运行一次 KextUtility,下次重启时就又会跟之前一样发生 KP。

随帖附上我修补过的驱动文件、从 Linux 提取的 Codec Dump 以及从 Windows 导出的 PinConfigurations。

恳请懂行的朋友帮忙看看,我非常需要用到麦克风录音功能,感激不尽!

作者修订 #13 @mormegil 2009-09-26 ↳ Re: @ping99
@ping99我照着本教程修补了原版 Snow Leopard 的 AppleHDA,但每次重启都会看到如下的 Sound assertion 报错:Sep 25 18:22:03 Ping-Tsengs-Mac-Pro kernel[0]: Previous Shutdown Cause: 3……

你的 Snow Leopard 是跑 32 位还是 64 位模式?使用哪一款引导程序?另外你有对二进制可执行文件进行 HexEdit 修补吗?

从你的 Codec Dump 和五国 KP 症状来看,我猜你用的是笔记本;你手头上其实并没有在 Leopard 下完美工作的旧 Kext,而是打算从零开始自己写补丁对吧?如果是这样,本篇教程并不适合你,你真正需要参考的是这篇从头编写 AppleHDA 的教程 ↗。

不过我看你的 plist 结构本身没什么大问题,或许你只需要稍微精简一下 ConfigData、Layout 与 PathMap——以一台笔记本来说,你映射的端口数量似乎太多了。

作者修订 #14 @mormegil 2009-09-26 ↳ Re: @blkhockeypro19
@blkhockeypro19完全没有声音 =\

你本人有亲自把那份旧 Kext 装在自己的 Leopard 系统上,并确认过它真的能在“你这台机器”上正常出声吗?

技术笔记 #27 @ping99 2009-09-26

嗨 Mormegil,非常感谢你的回复与帮忙!
是的,这是一台惠普 Compaq CQ60-202TX 笔记本,运行 64 位 Snow Leopard,引导程序为 Chameleon 2 RC3(我也试过换成 PC-EFI 10.3,但没有改善)。我用 HexEdit 修补了 AppleHDA 二进制文件,将 6202EC10 替换为 5150F114(Linux Dump 显示 Codec ID 为 0x14f15051);我也试过替换帖子里提过的其它原生 ID,结果都一样。
在 Leopard 下我有一份修改过可发声的 Kext(同样无法录音),这次就是照着本教程将它移植到 SL 的。我刚学会从 Linux 提取 Dump 并用 CodecGraph 与 Verbit 转换 Verbs,但还不懂如何手动编写 Layout 与 PathMap,请问能指点一下做法吗?

作者修订 #15 @mormegil 2009-09-26 ↳ Re: @ping99

换言之,你的问题其实跟本篇移植教程无关,因为你手头上那份旧版 Kext 本身一开始就不是完整可用的?如果是从头摸索修补的话,需要经历大量反复试错,这方面我恐怕帮不上太多忙。

你必须照着 THe KiNG 的教程自己尝试不同的端口映射(Port Mapping),建议先把 ConfigData 精简到只保留最基本的输入输出口;或者干脆去网上努力搜索一份已经在 Leopard 下验证可用的现成 Kext,就不必自己重新造轮子了。

另外,如果你跑的是 64 位模式,请避免使用 Chameleon RC3,因为它的 64 位 EFI 支持尚不完善,引导时很容易引发 Sound assertion 报错。

技术笔记 #28 @blkhockeypro19 2009-09-26 ↳ Re: @mormegil
@mormegil你本人有亲自把那份旧 Kext 装在自己的 Leopard 系统上,并确认过它真的能在“你这台机器”上正常出声吗?

那份 Kext 我在 Leopard 下已经用了快一年了,相信我,它百分之百正常工作 =P 另外我用的引导程序是 PC-EFI v10.3,这样没问题吧?

技术笔记 #29 @xbx2usr 2009-10-13

请问有人成功移植 SigmaTel STAC9274D 吗?

非常感谢这篇教程!
写得十分清晰易懂。

不过我昨天尝试为 STAC9274D 移植 AppleHDA 却失败了。

我在 SL 的 AppleHDA 二进制文件中将 STAC9220 修改如下:

STAC9220 0x83847680
改为
STAC9274D 0x83847621

我的 DSDT 已经指向该 codec-id,而且 SL 的“系统概述”里也正常显示出 PinConfigurations。
旧驱动使用的 Audio LayoutID 是 4(而非 12),但既然我的 DSDT 里也同样注入 layout-id = 4,照理说把 Layout 4 的段落复制粘贴进 SL Kext 里应该就行得通。

当然我也试过把 plist 与 DSDT 的 layout-id 全部统一改成 12(0x0c),但一如预期还是没声音。

请问这里有人成功在 SL 下驱动这颗芯片,可以分享一下 Kext 吗?
目前我暂时用 VoodooHDA 顶着,虽然有声音但睡眠唤醒会有问题。

技术笔记 #30 @leclercqr 2009-10-15

遇到与 Jedric 完全相同的问题

Jedric →(或任何能帮忙的朋友),

我遇到了跟你一模一样的情况:系统概述里显示的 Device ID 同样变成了 0x1458A002。

请问你那边有进展吗?不管怎样,能不能麻烦你传一份你正在用的 DSDT 给我参考?或许能帮我找出我编译 DSDT 时遇到的错误。(我把我的 DSDT 附在帖末了,未加 HDEF 修改前它可以完美支持 HPET、RTC、DTGP 与 USB 修复,Snow Leopard 下除了声卡以及 SATA 还需要靠 AHCIinject.kext 之外一切正常。)

然而当我把本帖提供的“通用版” HDEF 代码加进去时,编译却跳出以下报错:

/Users/Rowan/Desktop/Snow Leopard/DSDTv0.5/dsdt.dsl 374: Notify (\_SB.PCI0.HDEF, 0x02) Error 4063 - Object does not exist ^ (\_SB.PCI0.HDEF) /Users/Rowan/Desktop/Snow Leopard/DSDTv0.5/dsdt.dsl 5116: Return (BUFA) Error 4063 - Object does not exist ^ (BUFA) /Users/Rowan/Desktop/Snow Leopard/DSDTv0.5/dsdt.dsl 5159: Return (BUFA) Error……

我在附件中放了两份文件:一份是我目前正在使用、包含另一种 HDEF 写法的 compiled_working_DSDT,它能让“系统概述”检测到声卡但显示为:
"Intel High Definition Audio:

Device ID: 0x1458A002
Audio ID: 12
Available Devices: "

另一份则是换成本帖通用 HDEF 代码后无法编译通过的 added_hdef_compile_erros_dsdt。

恳请各位高手帮忙看看!我一周前才刚开始学改 DSDT,还在努力爬坡学习中,如有外行之处敬请见谅。

展开其余 57 则社区技术笔记完整历史讨论记录
技术笔记 #31 @airwalk776 2009-10-26

mormegil…

It shouldnt matter but as long as all the locations that state layout ID are 889 vs your 12 it should still work right ?

my dsdt is coded with layout-id as 79 03 00 00

and a codec-id of 89 08 EC 10

so I followed all your steps, hexedit found all 4 locations with 8508ec10 and replaced with 8908ec10

edited the two plists as show in the post.

still no go. the 1.5.7a24 AppleHDA and my dsdt file I get audio in SL. but the edited AppleHDA from a SL install does not work.

Any ideas? thanks

技术笔记 #32 @msf5042 2009-10-26

mormegil-
I have been going down the same paths as airwalk over and over. Here are two messages that I get over and over on boot:

Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" & Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp"
作者修订 #16 @mormegil 2009-10-27 ↳ Re: @msf5042

是的,LayoutID 本身用哪个数字都无所谓,只要前后保持一致即可:比如你在 DSDT 里写的 layout-id 是 79 03 00 00(小端序反转后为十六进制 00 00 03 79,换算十进制即 889),那你在 plist 里就必须对应使用 889 作为 LayoutID。

@airwalk:你确定那是你的真实 Codec ID 吗?是你自己亲手从 Linux 提取出来的吗?据我所知,ALC889a 的硬件 Codec ID 其实与 ALC885 相同(0x10ec0885)。建议你试试不要用 HexEdit 修改二进制可执行文件,保留原版直接测试看看。

技术笔记 #33 @msf5042 2009-10-27

mormegil-
airwalk and I have the same setup. check my linux dump below. we are 889, not 889a.

技术笔记 #34 @airwalk776 2009-10-28

mormegil...

I am 100 % sure this is the correct codecID since the codec dump I have ( taken by using a linux live dvd) Vendor Id: 0x10ec0889 ie...283904137

which is what is coded in the working applehda.

take a look a these dumps I have from when I patched the applehda for 10.5.6 (these dumps are from my board not downloaded from someone else)

Codec: Realtek ALC889
Address: 2
Vendor Id: 0x10ec0889
Subsystem Id: 0x10de0175
Revision Id: 0x100004

Then based on the dump I generated the verbs.

Question could this be caused by config data not matching pathmaps data?

BTW I tested without changing the hex values and no luck.

作者修订 #17 @mormegil 2009-10-29 ↳ Re: @airwalk776

嗯……你说得对。

你有在 DSDT 里直接注入 PinConfigurations(ConfigData)吗?问题可能出在那里,又或者是你的 PathMaps 映射有误。顺带确认一下:你在 AppleHDAPlatformDriver.kext 的 Layouts 与 PathMaps 下使用的是同一个 PathMapID 吗?

技术笔记 #35 @airwalk776 2009-10-29

yeap its the same pathmapid in both places.

I'll double check the dsdt.

技术笔记 #36 @msf5042 2009-10-29

Airwalk did the AppleHDA leopard kext you're using ever list all of the audio configs in system profile?

技术笔记 #37 @msf5042 2009-10-29

the reason I was asking that airwalk is because I never had leopard on this board so I have been using your leopard kext that you posted on another forum and after comparing my modified SL kext with some of the others I have seen here I realize that I have significantly less child nodes in my modified sections than other people do...

技术笔记 #38 @airwalk776 2009-10-29

when using the old applehda I think its version 1.5.7… I allways get system profiler to show the ports correctly.

see screenshot of this applehda 1.5.7 running in SL and it looked the same in Leopard also.

技术笔记 #39 @airwalk776 2009-11-03

mormegil-

I tried another approach, using lagacyapplehda files I port the same config to the lagacy files and put it in /extra/extensions and put the stock applehda in /S/L/E. in doing so I was able to set the system profiler to show all the ports but in system prefs. there are no inputs and outputs to select from.

any thoughts ?

技术笔记 #40 @Snow 2009-11-10

Alright Mormegil, been a while m8, all good with you?

Since the 10.6.2 update messed up my audio I was wondering if you could take a look at my already slightly (but apparently non working) modded AppleHDA kext.

media fire.com/file/mikkmb25bzz/AppleHDA.zip

bud

ps. using AppleHDA v10.6.1 for now

技术笔记 #41 @airwalk776 2009-11-11

ok everyone with the evga x58 mobo here is the solution to get HDA working in 64 bit mode.

voodoohda.kext haha just kidding…

1st thank you to everyone that helped in getting this done.

2nd remove and voodoohda you have

what is accomplished. 32 and 64 bit audio using stock applehda.kext in /S/L/E

you must have your dsdt.aml patched with the following info

codec-id",
Buffer (0x04)
{
0x89, 0x08, 0xEC, 0x10
},

"layout-id",
/**** Is ResourceTemplate, but EndTag not at buffer end ****/ Buffer (0x04)
{
0x79, 0x03, 0x00, 0x00

Install the stock applehda.kext in /S/L/E ( I used the one from 10.6.2 update) using kext utilities 2.3.2

and install the attached LegacyHDA.kext in /Extra/Extensions using kext utilities 2.3.2 update mkext.

it will give you 4 outs and 2 ins.

testing in 32 and 64 bit mode. the advantage of doing it this way (at least for me) is that I dont have any modified kexts in /S/L/E.

give it a shot and report back.

Good Luck

技术笔记 #42 @msf5042 2009-11-11

i will test it out and report back in a few, you're the man airwalk

技术笔记 #43 @msf5042 2009-11-11

Confirmed working. Hopefully netkas has an epiphany that he should make evga x58 boards sleep sometime soon. In the meantime lets plug away, did you ever have sleep working in 10.5?

作者修订 #18 @mormegil 2009-11-11 ↳ Re: @Snow
@SnowMormegil 老兄好久不见,近来可好?自从升上 10.6.2 更新后我的声卡又挂了,不知能否麻烦你帮我看看我这份稍微改过(但显然还不能用)的 AppleHDA.kext?media fire.com/file/mikkmb25bzz/AppleHDA.zip 感激不尽兄弟!(P.S. 我目前暂时退回用 10.6.1 版的 AppleHDA)

我很好啊兄弟!我自己也刚升上 10.6.2,一切正常,就只剩 AppleHDA 要重新处理一下。

反正我也得给自己的 Codec 重改一次,就顺便花点时间帮你把 ALC889a 的版本也做好了:

专为 ALC889a 修补的 10.6.1/10.6.2 版 AppleHDA:
media fire.com/file/gm25ymjzhjw/AppleHDA_889a.zip

技术笔记 #44 @Snow 2009-11-12

Muchos Gracias Hombre

Installing right away.

Update: working perfectly after rebuilding Aggregate device bro, thx again

技术笔记 #45 @Valaris 2009-11-15

OMG! it works

i got ALC262 (VAIO FW139E/H), confirming that this work! BTW i have installed the following kext as well: ALCInject.kext and HDAEnabler.kext.

Thank you very much mormegil!

atleast my sound works, though i have no mic and HDMI output but hey its better than none. ^_^

技术笔记 #46 @chadp1a 2009-11-15

p6860fx laptop no sound still :(

Could someone I own a gateway p6860fx laptop. I followed this excellent guide in attempts to get my sound working. I hex edited the applehda using B0 76 1D 11 which matches the Subsystem Id from the codec#1 in this below linux audio dump. It also matches the Vendor ID from the codec#2 linux dump below.

I have pasted my linux dump and DSDT audio patch. Could someone please advise me to maybe why my audio still doesn't work. Sound was fine in Leopard and I modified a Vanilla Snow AppleHDA kext per the guide here.

Linux Dump

Codec: LSI ID 1040
Address: 1
Vendor Id: 0x11c11040
Subsystem Id: 0x107b0690
Revision Id: 0x100200
Modem Function Group: 0x1


Codec: IDT 92HD71B8X
Address: 2
Vendor Id: 0x111d76b0
Subsystem Id: 0x107b0692
Revision Id: 0x100101
No Modem Function Group found
Default PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Default Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Default Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x02, mute=1
GPIO: io=8, o=0, i=0, unsolicited=1, wake=1
  IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[1]: enable=0, dir=0, 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
  IO[5]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[6]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[7]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Power-Map: 0x01
Analog Loopback: 0x00
Node 0x0a [Pin Complex] wcaps 0x400183: Stereo Amp-In
  Amp-In caps: N/A
  Amp-In vals:  [0x00 0x00]
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x0321101f: [Jack] HP Out at Ext Left
    Conn = 1/8, Color = Black
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0x00:
  Unsolicited: tag=01, enabled=1
  Connection: 3
     0x10 0x11* 0x17
Node 0x0b [Pin Complex] wcaps 0x400081: Stereo
  Pincap 0x00001724: IN Detect
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x03a11020: [Jack] Mic at Ext Left
    Conn = 1/8, Color = Black
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=02, enabled=1
Node 0x0c [Pin Complex] wcaps 0x400081: Stereo
  Pincap 0x00001724: IN Detect
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x40f000f0: [N/A] Other at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00: VREF_HIZ
  Unsolicited: tag=00, enabled=0
Node 0x0d [Pin Complex] wcaps 0x400183: Stereo Amp-In
  Amp-In caps: N/A
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000014: OUT Detect
  Pin Default 0x90170110: [Fixed] Speaker at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 3
     0x10* 0x11 0x17
Node 0x0e [Pin Complex] wcaps 0x400081: Stereo
  Pincap 0x00001724: IN Detect
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x40f000f1: [N/A] Other at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x1
  Pin-ctls: 0x00: VREF_HIZ
  Unsolicited: tag=00, enabled=0
Node 0x0f [Pin Complex] wcaps 0x400183: Stereo Amp-In
  Amp-In caps: N/A
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000014: OUT Detect
  Pin Default 0x40f000f2: [N/A] Other at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x2
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Connection: 3
     0x10 0x11 0x17*
Node 0x10 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
  Amp-Out caps: N/A
  Amp-Out vals:  [0x64 0x64]
  Converter: stream=0, channel=0
  Power: setting=D0, actual=D0
  Delay: 13 samples
Node 0x11 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
  Amp-Out caps: N/A
  Amp-Out vals:  [0x7f 0x7f]
  Converter: stream=0, channel=0
  Power: setting=D0, actual=D0
  Delay: 13 samples
Node 0x12 [Audio Input] wcaps 0x1d0541: Stereo
  Converter: stream=0, channel=0
  SDI-Select: 0
  Power: setting=D3, actual=D3
  Delay: 13 samples
  Connection: 1
     0x1c
  Processing caps: benign=0, ncoeff=0
Node 0x13 [Audio Input] wcaps 0x1d0541: Stereo
  Converter: stream=0, channel=0
  SDI-Select: 0
  Power: setting=D3, actual=D3
  Delay: 13 samples
  Connection: 1
     0x1d
  Processing caps: benign=0, ncoeff=0
Node 0x14 [Pin Complex] wcaps 0x400102: Mono Amp-In
  Amp-In caps: N/A
  Amp-In vals:  [0x80]
  Pincap 0x00000010: OUT
  Pin Default 0x40f000f3: [N/A] Other at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x3
  Pin-ctls: 0x00:
  Connection: 1
     0x16
Node 0x15 [Audio Selector] wcaps 0x300101: Stereo
  Connection: 3
     0x10* 0x11 0x17
Node 0x16 [Audio Mixer] wcaps 0x200100: Mono
  Connection: 1
     0x15
Node 0x17 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97]
  Connection: 5
     0x10 0x11 0x27 0x1a 0x1b
Node 0x18 [Pin Complex] wcaps 0x40000d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x90a6012e: [Fixed] Mic at Int N/A
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0xe
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
Node 0x19 [Pin Complex] wcaps 0x40000d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x40f000f5: [N/A] Other at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x5
  Pin-ctls: 0x20: IN
Node 0x1a [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-Out vals:  [0x00 0x00]
  Connection: 3
     0x0b* 0x0c 0x0e
Node 0x1b [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-Out vals:  [0x00 0x00]
  Connection: 3
     0x0b* 0x0c 0x0e
Node 0x1c [Audio Selector] wcaps 0x30090d: Stereo Amp-Out R/L
  Amp-Out caps: ofs=0x00, nsteps=0x0f, stepsize=0x05, mute=1
  Amp-Out vals:  [0x09 0x09]
  Connection: 4
     0x1a* 0x17 0x18 0x19
Node 0x1d [Audio Selector] wcaps 0x30090d: Stereo Amp-Out R/L
  Amp-Out caps: ofs=0x00, nsteps=0x0f, stepsize=0x05, mute=1
  Amp-Out vals:  [0x80 0x80]
  Connection: 4
     0x1b* 0x17 0x18 0x19
Node 0x1e [Pin Complex] wcaps 0x400301: Stereo Digital
  Pincap 0x00000010: OUT
  Pin Default 0x044513a0: [Jack] SPDIF Out at Ext Right
    Conn = Optical, Color = Black
    DefAssociation = 0xa, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
  Connection: 1
     0x24
Node 0x1f [Pin Complex] wcaps 0x400701: Stereo Digital
  Pincap 0x00010010: OUT EAPD
  EAPD 0x0:
  Pin Default 0x40f000f8: [N/A] Other at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x8
  Pin-ctls: 0x00:
  Power: setting=D0, actual=D0
  Connection: 2
     0x24* 0x25
Node 0x20 [Pin Complex] wcaps 0x400301: Stereo Digital
  Pincap 0x00000010: OUT
  Pin Default 0x90451360: [Fixed] SPDIF Out at Int N/A
    Conn = Optical, Color = Black
    DefAssociation = 0x6, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Connection: 1
     0x25
Node 0x21 [Audio Output] wcaps 0x40211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3
  Delay: 4 samples
Node 0x22 [Audio Output] wcaps 0x40211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3
  Delay: 4 samples
Node 0x23 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x24 [Audio Selector] wcaps 0x300101: Stereo
  Connection: 3
     0x21* 0x1c 0x1d
Node 0x25 [Audio Selector] wcaps 0x300101: Stereo
  Connection: 3
     0x22* 0x1c 0x1d
Node 0x26 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
  Amp-Out caps: ofs=0x03, nsteps=0x03, stepsize=0x17, mute=1
  Amp-Out vals:  [0x00]
Node 0x27 [Pin Complex] wcaps 0x400000: Mono
  Pincap 0x00000020: IN
  Pin Default 0x40f000f7: [N/A] Other at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x7
  Pin-ctls: 0x00:
Node 0x28 [Volume Knob Widget] wcaps 0x600000: Mono
  Volume-Knob: delta=1, steps=127, direct=1, val=127
  Connection: 2
     0x10 0x11

DSDT Patch

Device (HDEF)
            {
                Name (_ADR, 0x001B0000)
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x06)
                        {
                            "codec-id", 
                            Buffer (0x04)
                            { 
                               0xB0, 0x76, 0x1D, 0x11
                            },                             
                            "layout-id", 
                            Buffer (0x04)
                            {
                                0x0C, 0x00, 0x00, 0x00
                            }, 

                            "PinConfigurations", 
                            Buffer (Zero) {}
                        }, Local0)
                     Return (Local0)
                }
            }
技术笔记 #47 @miliuco 2009-11-18

Thanks, mormegil, your AppleHDA kext works well in my system (EP35-DS3r with ALC889a).
I attach a AppleHDA.kext > Contents > Resources > Spanish.lproj folder to include into the kext for anybody who likes to see device names in spanish instead of english.
Thanks again.

技术笔记 #48 @mimayin 2009-11-19

I can't get this to work, I've spent hours and hours trying I have a Foxconn Blackops with ALC885. Patched DSDT as such:

            Device (HDEF)
            {
                Name (_ADR, 0x001B0000)
                Method (_PRW, 0, NotSerialized)
                {
                    Return (Package (0x02)
                    {
                        0x0D,
                        0x05
                    })
                }

                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x0A)
                        {

                            "built-in",
                            Buffer (0x01)
                            {
                                0x01
                            },

                            "codec-id",
                            Buffer (0x04)
                            {
                                0x85, 0x08, 0xEC, 0x10
                            },

                            "layout-id",
                            Buffer (0x04)
                            {
                                0x0C, 0x00, 0x00, 0x00
                            },

                            "device-type",
                            Buffer (0x011)
                            {
                                "ALC885"
                            },

                            "PinConfigurations",
                            Buffer (0x28)
                            {
                                /* 0000 */ 0x10, 0x40, 0x01, 0x01, 0x64, 0x10, 0x01, 0x01,
                                /* 0008 */ 0x71, 0x60, 0x01, 0x01, 0x82, 0x20, 0x01, 0x01,
                                /* 0010 */ 0x30, 0x90, 0xA1, 0x01, 0x20, 0x90, 0xA1, 0x02,
                                /* 0018 */ 0x40, 0x30, 0x81, 0x01, 0x50, 0x40, 0x21, 0x02,
                                /* 0020 */ 0xF0, 0x71, 0x44, 0x01, 0x90, 0x71, 0x45, 0x11
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }

Also tried the 889A version of the above (and updated layout id to 889 for that, in DSDT and plists) to no avail.

Layout ID is correct (12) for ALC885 in both DSDT and plists.

On boot I always get:

Nov 19 11:04:04 localhost kernel[0]: Sound assertion "0 != setupHostInterrupt ()" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDAController/AppleHDAController.cpp" at line 312 goto Exit

I have taken the Layout and PathMap settings from my working Leopard AppleHDA.kext, but clearly something isn't right.

Working Leopard kext plist:

82.113.155.91/leopard-info.plist

Hacked SL plists:

AppleHDAHardwareConfigDriver-info.plist (82.113.155.91/AppleHDAHardwareConfigDriver-info.plist)
AppleHDAPlatformDriver-info.plist (82.113.155.91/AppleHDAPlatformDriver-info.plist)

edit: fixed links!

If anyone can give me a clue as to where I might be going wrong I'd be very grateful, this is driving me nuts I can get sound with VoodooHDA but only through the headphone socket, no lineout

技术笔记 #49 @mimayin 2009-11-19

Tried adding HDAEnabler.kext to /Extra/Extensions as a potshot but it still fails.

Nov 19 11:57:34 localhost kernel[0]: HDAEnabler: Copyright (c) 2008 by Kabyl
Nov 19 11:57:34 localhost kernel[0]: HDAEnabler: 05/05/2008 Added SPAudio support:Taruga
Nov 19 11:57:34 localhost kernel[0]: HDAEnabler: Copyright (c) 2008 by Kabyl
Nov 19 11:57:34 localhost kernel[0]: HDAEnabler: 05/05/2008 Added SPAudio support:Taruga
Nov 19 11:57:34 localhost kernel[0]: Sound assertion "0 != setupHostInterrupt ()" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDAController/AppleHDAController.cpp" at line 312 goto Exit
Nov 19 11:57:34 localhost kernel[0]: Sound assertion ""ERROR: EFI ROM did not publish 'hda-gfx' associative property!\n"" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDA/AppleHDACodecGeneric.cpp" at line 331 goto ExitError
作者修订 #19 @mormegil 2009-11-19 ↳ Re: @mimayin

DSDT 里的 Device (HDEF) 代码只需要写成这样就够了:How to port AppleHDA to SL →

你的 plist 看起来没问题,唯一的问题是你第一个 plist 里的 ConfigData 跟你在 DSDT 里注入的 PinConfigurations 不一致。你可以两组数值都试试看,但切记只放在 plist 里,千万不要写在 DSDT 里(DSDT 的 PinConfigurations 请留空 Buffer)。

技术笔记 #50 @mimayin 2009-11-19

Still not working Pretty sure DSDT is correct now:

            Device (HDEF)
            {
                Name (_ADR, 0x001B0000)
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x04)
                        {
                            "layout-id",
                            Buffer (0x04)
                            {
                                0x0C, 0x00, 0x00, 0x00
                            },

                            "PinConfigurations",
                            Buffer (Zero) {}
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }

Device shows up in system profiler with the correct device and layout id, but still AppleHDA.kext won't load, still gives the same error.

Any ideas? kext plists are unchanged from my first post

技术笔记 #51 @mimayin 2009-11-19

Interestingly enough, if I leave DSDT with AZAL in it rather than HDEF like this:

            Device (AZAL)
            {
                Name (_ADR, 0x001B0000)
                Method (_PRW, 0, NotSerialized)
                {
                    Return (Package (0x02)
                    {
                        0x0D,
                        0x05
                    })
                }
            }

VoodooHDA works, but I only get the headphone socket rather than the line-in. But if I patch DSDT (as in previous post), VoodooHDA kernel panics immediately on load.

I'm lost.. i've spent over 3 days messing around with this, i'm almost ready to give up and buy an Xmod

作者修订 #20 @mormegil 2009-11-20 ↳ Re: @mimayin

方便把你 Leopard 的另一份 plist(包含 ConfigData 的那份)也贴上来吗?

技术笔记 #52 @mimayin 2009-11-20

leo-HDAController-info.plist (82.113.155.91/leo-HDAController-info.plist)

I did actually try putting this block into HDAController/Info.plist in the snow leopard AppleHDA.kext last night:

      <key>HDAConfigDefault</key>
      <array>
        <dict>
          <key>CodecID</key>
          <integer>283904133</integer>
          <key>ConfigData</key>
          <data>
          AUccEAFHHUABRx4RAUcfAQFXHBIBVx0gAVce
          AQFXHwEBZxwRAWcdYAFnHgEBZx8BAXccFAF3
          HRABdx4BAXcfAQGHHDABhx2ZAYceoQGHHwEB
          lxw/AZcdkAGXHqEBlx8CAaccMQGnHTEBpx6B
          AacfAQG3HB8Btx1AAbceIQG3HwIBxxwyAccd
          AQHHHjMBxx+ZAdccAAHXHQEB1x4AAdcfQAHn
          HGAB5x0BAeceRQHnH4EB9xwAAfcdAQH3HgAB
          9x9A
          </data>
          <key>FuncGroup</key>
          <integer>1</integer>
          <key>LayoutID</key>
          <integer>12</integer>
        </dict>
      </array>

But still didn't work

作者修订 #21 @mormegil 2009-11-20 ↳ Re: @mimayin

既然你说“系统概述”里已经看得到所有音频端口,代表你的 DSDT 已经完全正常了。

我也仔细核对过你 Leopard 与 Snow Leopard 的两份 plist,数值与映射关系全都吻合。

坦白讲我也想不出还有哪里可以改了,实在抱歉。

你确定安装 Kext 的步骤没错吗?有重建缓存(Rebuild Cache)与修复权限吗?

技术笔记 #53 @dan10 2009-11-20

mymayin,

Try this, download the LegacyHDA file Airwalk posted here How to port AppleHDA to SL →
modify it using your working Leo data, you know HDAController, Layouts and Pathmaps. Put the LegacyHDA in your Extra folder and trash your extensions.mkext and rebuild it with mkextTool, replace your modify AppleHDA with a vanilla file from SL. It should work and it's a better solution because it maintains AppleHDA untouched no need to modify it every time you update your OS. Don't forget to remove any other audio file i.e. VoodooHDA and any other enabler. Build your DSDT the way he did it don't put the pin configuration, keep it simple for now "codec-id" and "layout-id". Good Luck

技术笔记 #54 @mimayin 2009-11-20

Still not working

I think my DSDT might be wrong somehow, I don't see any devices in Profiler->Audio, just the device id and layout id (both are correct).

it says Devices: but the listing is blank.

Vanilla AppleHDA.kext is failing to load.

            Device (HDEF)
            {
                Name (_ADR, 0x001B0000)
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x04)
                        {
                            "layout-id",
                            Buffer (0x04)
                            {
                                0x0C, 0x00, 0x00, 0x00
                            },

                            "PinConfigurations",
                            Buffer (Zero) {}
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }

I tried adding the codec-id in there and increasing Store(Package) size to 0x08 but that didn't help either

技术笔记 #55 @dan10 2009-11-20

So you put the legacyHDA.kext in Extra and rebuild the extensions.mkext reboot and still nothing, that's odd.
Did you add this to your DSDT? DTGP code, read The King's guide, you probably did because the compiler would complain if you didn't.
http://www.projectosx.com/forum/index.php?showtopic=465… ↗

Are you using Chameleon? what version is it?

技术笔记 #56 @mimayin 2009-11-20

Yeah I did all that, I'm using Chameleon 2.0RC1. I'll see if there's a later version..

技术笔记 #57 @mimayin 2009-11-20

still no luck with pc-efi 10.5, same errors on boot

Nov 20 21:16:46 localhost kernel[0]: Sound assertion "0 != setupHostInterrupt ()" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDAController/AppleHDAController.cpp" at line 312 goto Exit
技术笔记 #58 @mimayin 2009-11-20

I noticed I don't have anything pointing to AZAL or HDEF in the _GPE section of the DSDT. Could this be the problem?

eg: http://www.insanelymac.com/forum/index.php?showtopic=18… ↗

there the guy has:

        Method (_L05, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.HDEF, 0x02)
        }

whereas my _GPE section looks like:

    Scope (_GPE)
    {
        Method (_L00, 0, NotSerialized)
        {
            Notify (\_TZ.THRM, 0x80)
        }

        Method (_L03, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB0, 0x02)
        }

        Method (_L04, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB1, 0x02)
        }

        Method (_L0C, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB2, 0x02)
        }

        Method (_L0E, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB3, 0x02)
        }

        Method (_L05, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB4, 0x02)
        }

        Method (_L20, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB5, 0x02)
        }

        Method (_L0D, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.EHC1, 0x02)
            Notify (\_SB.PCI0.EHC2, 0x02)
            Notify (\_SB.PCI0.IGBE, 0x02)
        }

        Method (_L0B, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.HUB0, 0x02)
        }

        Method (_L08, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.PX40.UAR1, 0x02)
            Notify (\_SB.PCI0.PX40.UAR2, 0x02)
        }

        Method (_L09, 0, NotSerialized)
        {
            If (LNotEqual (VID0, 0xFFFF))
            {
                If (LEqual (And (RSR0, One), One))
                {
                    Store (0xFF, RSR0)
                    Store (0x80, PMC0)
                    Notify (\_SB.PCI0.PEX0, 0x02)
                }
            }

            If (LNotEqual (VID1, 0xFFFF))
            {
                If (LEqual (And (RSR1, One), One))
                {
                    Store (0xFF, RSR1)
                    Store (0x80, PMC1)
                    Notify (\_SB.PCI0.PEX1, 0x02)
                }
            }

            If (LNotEqual (VID2, 0xFFFF))
            {
                If (LEqual (And (RSR2, One), One))
                {
                    Store (0xFF, RSR2)
                    Store (0x80, PMC2)
                    Notify (\_SB.PCI0.PEX2, 0x02)
                }
            }

            If (LNotEqual (VID3, 0xFFFF))
            {
                If (LEqual (And (RSR3, One), One))
                {
                    Store (0xFF, RSR3)
                    Store (0x80, PMC3)
                    Notify (\_SB.PCI0.PEX3, 0x02)
                }
            }

            If (LNotEqual (VID4, 0xFFFF))
            {
                If (LEqual (And (RSR4, One), One))
                {
                    Store (0xFF, RSR4)
                    Store (0x80, PMC4)
                    Notify (\_SB.PCI0.PEX4, 0x02)
                }
            }

            If (LNotEqual (VID5, 0xFFFF))
            {
                If (LEqual (And (RSR5, One), One))
                {
                    Store (0xFF, RSR5)
                    Store (0x80, PMC5)
                    Notify (\_SB.PCI0.PEX5, 0x02)
                }
            }
        }
    }

maybe i should add that in? perhaps using a different unused _L0x?

技术笔记 #59 @dan10 2009-11-20

There should be 2 instances of AZAL replaced to HDEF. I thing you are close

技术笔记 #60 @mimayin 2009-11-20

I figured out the missing part, I added HDEF to the _L0D method:

        Method (_L0D, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.EHC1, 0x02)
            Notify (\_SB.PCI0.EHC2, 0x02)
            Notify (\_SB.PCI0.IGBE, 0x02)
            Notify (\_SB.PCI0.HDEF, 0x02)
        }

But still no sound with AppleHDA

技术笔记 #61 @mimayin 2009-11-20

This is too much of a headache, i give up, im buying an Xmod

技术笔记 #62 @scififan68 2009-11-21

Hey!, thanks for this sweet guide, it really helped me port the applehda kext to work for my alc888!

技术笔记 #63 @mimayin 2009-11-21

Ok I'm following TheKing's guide, but I'm stuck on how to convert the output from VerbIt to the encoded format used in the ConfigData parameter in Info.plist:

Verbs from Linux Codec Dump File: codec_dump.txt

Codec: Realtek ALC885   Address: 2   DevID: 283904133 (0x10ec0885)

   Jack   Color  Description                  Node     PinDefault             Original Verbs
--------------------------------------------------------------------------------------------------------
    1/8   Green  Line Out at Ext Rear        20 0x14   0x01014410   21471c10 21471d44 21471e01 21471f01
    1/8   Black  Line Out at Ext Rear        21 0x15   0x01011412   21571c12 21571d14 21571e01 21571f01
    1/8  Orange  Line Out at Ext Rear        22 0x16   0x01016411   21671c11 21671d64 21671e01 21671f01
    1/8    Grey  Line Out at Ext Rear        23 0x17   0x01012414   21771c14 21771d24 21771e01 21771f01
    1/8    Pink  Mic at Ext Rear             24 0x18   0x01a19c40   21871c40 21871d9c 21871ea1 21871f01
    1/8    Pink  Mic at Ext Front            25 0x19   0x02a19c50   21971c50 21971d9c 21971ea1 21971f02
    1/8    Blue  Line In at Ext Rear         26 0x1a   0x0181344f   21a71c4f 21a71d34 21a71e81 21a71f01
    1/8   Green  HP Out at Ext Front         27 0x1b   0x02214c20   21b71c20 21b71d4c 21b71e21 21b71f02
  ATAPI Unknown  CD at Int ATAPI             28 0x1c   0x593301f0   21c71cf0 21c71d01 21c71e33 21c71f59
  ATAPI Unknown  Line In at Int ATAPI        29 0x1d   0x598301f0   21d71cf0 21d71d01 21d71e83 21d71f59
   Comb   Black  SPDIF Out at Ext Rear       30 0x1e   0x014b1130   21e71c30 21e71d11 21e71e4b 21e71f01
    1/8   Black  Speaker at Ext Rear         31 0x1f   0x411111f0   21f71cf0 21f71d11 21f71e11 21f71f41
--------------------------------------------------------------------------------------------------------


   Jack   Color  Description                  Node     PinDefault             Modified Verbs
--------------------------------------------------------------------------------------------------------
    1/8   Green  Line Out at Ext Rear        20 0x14   0x01014410   21471c10 21471d40 21471e01 21471f01
    1/8   Black  Line Out at Ext Rear        21 0x15   0x01011412   21571c60 21571d10 21571e01 21571f01
    1/8  Orange  Line Out at Ext Rear        22 0x16   0x01016411   21671c70 21671d60 21671e01 21671f01
    1/8    Grey  Line Out at Ext Rear        23 0x17   0x01012414   21771c80 21771d20 21771e01 21771f01
    1/8    Pink  Mic at Ext Rear             24 0x18   0x01a19c40   21871c40 21871d90 21871ea1 21871f01
    1/8    Pink  Mic at Ext Front            25 0x19   0x02a19c50   21971c50 21971d90 21971ea1 21971f01
    1/8    Blue  Line In at Ext Rear         26 0x1a   0x0181344f   21a71c90 21a71d30 21a71e81 21a71f01
    1/8   Green  HP Out at Ext Front         27 0x1b   0x02214c20   21b71c20 21b71d40 21b71e21 21b71f01
  ATAPI Unknown  Line In at Int ATAPI        29 0x1d   0x598301f0   21d71cf0 21d71d00 21d71e83 21d71f50
   Comb   Black  SPDIF Out at Ext Rear       30 0x1e   0x014b1130   21e71c30 21e71d10 21e71e4b 21e71f01
--------------------------------------------------------------------------------------------------------

How do I convert those hex strings for the ConfigData, which is in this format:

AUccEAFHHUABRx4RAUcfAQFXHBIBVx0gAVce
AQFXHwEBZxwRAWcdYAFnHgEBZx8BAXccFAF3
HRABdx4BAXcfAQGHHDABhx2ZAYceoQGHHwEB
lxw/AZcdkAGXHqEBlx8CAaccMQGnHTEBpx6B
AacfAQG3HB8Btx1AAbceIQG3HwIBxxwyAccd
AQHHHjMBxx+ZAdccAAHXHQEB1x4AAdcfQAHn
HGAB5x0BAeceRQHnH4EB9xwAAfcdAQH3HgAB
9x9A

技术笔记 #64 @max.1974 2009-12-01

Alc 262 for snow leopard..please

tks for a lot help!
I need ask a very great favor: send me by mail or download link, the compiled kexts that i need replace in Snow Leopard...christian.max (at) pop.com.br

ALC262 SONY VAIO VGN-NS150AE

Im a inexperient user to compiled my on, so sorry my bad english...

Best regards...i hope some mail about that!

TKS!

技术笔记 #65 @max.1974 2009-12-02

Please My firends...post kext....ALC 262

Please...i need that kext modified...AppleHDA.kext for my ALC262...
I suplies for help...just post or send by mail...im very tired to look around (google)

技术笔记 #66 @semendemon 2010-01-12

Me Get Realtek ALC889 (Non-A Version) Working in 10.6.2 via DSDT

Hello! I just came across this wonderful thread, and I have tried to patch my DSDT with the code mentioned for the Realtek ALC889 chip, as that is what my motherboard, the Gigabyte GA-X58A-UD7, uses for onboard audio (its little brother, the GA-EX58-UD5, uses the ALC889A).

Since it uses the same model chip as the EVGA motherboards, I believe that I can get it working on this new flagship motherboard from Gigabyte, and thus open the Hackintosh world up to people who are considering buying this motherboard. to help the Hackintosh community. I will come out with a guide for this motherboard as soon as I figure out how to get audio working via DSDT, which will make my current installation a complete vanilla installation.

Just to offer you some background information, I am using the Chameleon v2.0 RC4 bootloader and have already patched my DSDT with ACPI Patcher Beta 5 (under Windows of course). I modified the DSDT that was created by ACPI Patcher with the lines of code for the ALC889 as well as replacing both instances of AZAL found with HDEF, but upon compilation with iASLMe, it gave me one error on the Codec_ID line regarding the length of the statement and 17 optimizations. As such, I removed that line completely and it compiled with zero errors, but still performed 17 optimizations.

correct my DSDT code by providing your entire code or just the excerpts necessary to make corresponding modifications to mine. Also, I still need to get my SATA and ethernet controllers working via DSDT (which both use the same chipsets as the EVGA motherboards), so I can remove my JMicron.kext, AppleIntelPIIXATA per.kext, and RealtekR1000.kext (or RealtekR1000SL.kext), and go fully vanilla.

Currently, I have the LegacyHDA.kext posted in this thread and and the vanilla AppleHDA.kext in S/L/E, and under "Audio (Built In)" in System Profiler, I have two devices showing up in the right column as "Intel High Definition Audio":

1. Device ID: 0x1458A102
Audio ID: 12
Available Devices:

2. Device ID: 0x1682AA30
Audio ID: 12
Available Devices:

Before patching my DSDT, I had nothing showing up under "Audio (Built In)" in System Profiler, so this is definitely a sign of progress. Now, I need the help of you wise InfiniteMac users to get this down perfect, as audio still does not get detected or work for me.

I would like to for your assistance and cooperation, and hope to hear from you as soon as possible.

技术笔记 #67 @abct 2010-01-24

I have the following sound card and on Leopard I had a fully working AppleHDA so I want to port that kext to Snow Leopard.

HDA Codec #0: IDT 92HD71B7
 HDA Codec ID: 0x111d76b2
       Vendor: 0x111d
       Device: 0x76b2
     Revision: 0x03
     Stepping: 0x02
PCI Subvendor: 0x361b103c

I followed the guide and added b2761d11 to the AppleHDA file with Hex editor.
My old kext was using Layout 1 so I didn't change it and kept everything as it was in my old kext.

Finally, I edited the HDA Enabler kext according to the one that I used on Leopard, which uses Layout 1 and also a Config data.

On my system profiler, it is listed as below,

Intel High Definition Audio:

  Device ID:    0x103C361B
  Audio ID:    1
  Available Devices:
  Headphone:
  Connection:    1/8-Inch Jack
  External Microphone:
  Connection:    1/8-Inch Jack
  Speaker:
  Connection:    Internal
  External Microphone:
  Connection:    1/8-Inch Jack
  Internal Microphone:
  Connection:    Internal
  S/P-DIF Out:
  Connection:    RCA

This is also what appeared on Leopard's System Profiler. So everything seems ok but unfourtanely there is no sound. I attached the file I created if anyone is interested in looking at.

I tried to use DSDT for my sound card but I couldn't do it.

Thanks for your help.

技术笔记 #68 @maxidlabs 2010-01-26

A problem with IDT HDA

Audio according to Windows:
Vendor: 111D
DevID: 76D8

0x293e8086

Snow Leopard 10.6.0
Everything is working but audio is not. However, it works with VoodooHDA although I neither can control volume nor I have mic.

I've read here that it's possible to get it working with working AppleHDA from Leopard. Unfortunately, I don't have any. Probably it's possible to use PinConfig from Windows? I've seen one in the registry.

技术笔记 #69 @kanedaguy 2010-03-04

I just setup a new hackintosh box using SL 10.6.0 10A432 on a Gigabyte Motherboard GA-945GCM-S2L.

Gigabyte's site says that it uses the ALC662 Codec but my SL install shows me

Device ID: 0x1458A002
Audio ID: 66

and that's how I found this thread. I do not have any files from Leopard, any chance of helping me get some audio going please.

技术笔记 #70 @kws 2010-03-04

In 32-bit mode ...

you can use Appleazaliaaudio.kext for Output, a small usb-soundcard (Terratec AureonUSB) for Micro if needed. This will prevent the cracking noise during startup (if USB is used for Output) and the sound assertion errors in verbose mode.

Attached is my HDEF-Section from DSDT (GA945GCM-S2L)

技术笔记 #71 @calabuig 2010-04-21

Hello, I have this problem: I have a Sony Vaio laptop VGN-AR41M and a Realtek ALC262 audio device onboard. I have Iatkos 10.5.7 installed and using AppleHDA patcher and ALC262 dump codec text I have no problem to get sound. I'd like to use Snow Leopard and I tried to follow this guide to use my working AppleHDA Leopard kext in SL, but I have no success. I've injected my DSDT file and I thinks it's ok. In System Profiler, under audio section, I have the sound card output recognized. But under preferences sound I have no output at all.
Could you help me, please? Is there anyone with Realtel ALC262 working under SL with patched AppleHDA?

技术笔记 #72 @calabuig 2010-04-25

@mormegil

Please, mormegil, could you take a look at the attachments?
I can't get it work it out!

P.S. please rename the attached pdf to rar to open it

技术笔记 #73 @calabuig 2010-04-28

I'm here again with my problem with ALC262... please, momegil, help me...
I have this error message in the boot sequence:

ALCinject: Starting.
Apr 28 21:48:01 Mac-di-Marco kernel[0]: ALCinject: Setting built-in=<data not shown>
Apr 28 21:48:01 Mac-di-Marco kernel[0]: ALCinject: Setting layout-id=<data not shown>
Apr 28 21:48:02 Mac-di-Marco kernel[0]: Sound assertion "0 == fAudioFunctionGroup" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDACodecGeneric.cpp" at line 202 goto ExitError
Apr 28 21:48:02: --- last message repeated 1 time ---
Apr 28 21:48:02 Mac-di-Marco kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Apr 28 21:48:02 Mac-di-Marco kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Apr 28 21:48:02 Mac-di-Marco kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Apr 28 21:48:02 Mac-di-Marco kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit

Do you know what would it be the problem?

技术笔记 #74 @calabuig 2010-04-29

I tried another AppleHDA version and I get a different error:

22:42:59 localhost kernel[0]: kxld[com.apple.driver.AppleHDA]: The super class vtable __ZTV13IOAudioEngine for vtable __ZTV14AppleHDAEngine is out of date. Make sure your kext has been built against the correct headers.
Apr 29 22:42:59 localhost kernel[0]: Can't load kext com.apple.driver.AppleHDA - link failed.
Apr 29 22:42:59 localhost kernel[0]: Failed to load executable for kext com.apple.driver.AppleHDA.
Apr 29 22:42:59 localhost kernel[0]: Kext com.apple.driver.AppleHDA failed to load (0xdc008016).
Apr 29 22:42:59 localhost kernel[0]: Failed to load kext com.apple.driver.AppleHDA (error 0xdc008016)

Any little help?

技术笔记 #75 @Morpheus___ 2010-05-15

Hey... Glad to hear that there is a possibility for my lost sound in snow leopard

I have a fully working applehda in leopard 10.5.8.
after installation of sl (10.6.2) my sound is gone, so i followed the instructions and did everything like in this thread but it doesn't work. I use hdaenabler + applehda in my leopard and it works very nice. i downloaded a hdaenabler for sl and installed it with my patched applehda for sl - no luck

can anybody help me please?
Here is my working applehda from 10.5.8

技术笔记 #76 @Fabze 2010-06-08

m1330, stac9228 and this guide here

im one of the people, which lost their sound in SL with the stac9228. i tried voodoohda in sl and all sound outputs/inputs worked except the internal speakers.

then i found this guide and i tried it. so now THANKS.. my internal speakers work now.. but - now my internal and my external mic doesnt work.

my problem is.. i just followed this guide on page 1.. but do really not understand what ive done with this hex numbers and plist editing and so on...

maybe someone can help me!

p.s. i hope u can understand me, because iam german..

作者修订 #22 @mormegil 2010-06-27 ↳ Re: @Fabze

抱歉各位,最近工作实在太忙,希望大家体谅。

顺手分享我刚为 ALC888 用户改好的 10.6.4 版 AppleHDA.kext(mega upload.com/?d=D1HV9A4K)。

技术笔记 #77 @hassan 2010-06-28

now this is an easy guide, however, I do not have a working applehda.kext, I'm basically starting from scratch. No other guide seems to have a clear method of doing this, I've read Kings guide but that's incomplete and all over the place.

技术笔记 #78 @steenamaroo 2010-07-14

hi mormegil...

just want to say thanks! cos this is one of the best tutorials out there...

however,,,i'm in the same boat as hassan..i have no leopard applehda to work from...

i do have a working voodoohda and all the info (verbs etc),,,and have tried my best to work from there.

dsdt fix made system profiler display
Intel High Definition Audio:
Audio ID: 12

editing legacyhda and applehda with the info you gave makes system profiler list all the proper devices..
line-out 1/8 jack
line-in 1/8 jack etc etc

BUT, nothing shows in audio/midi setup...and no sound (:(

do i reinstall leopard and start from scratch, or can we make this work from voodoo info and codec dumps?

thanks again!

**EDIT**
i've installed leopard on a spare drive for testing.
the aim is to get a working leopard applehda to work from.

the best i can do is DSDT patch (which enables sys prof output)
and a patched apple hda (which populates system prof output)

problem is,

system prof shows
mic built in
mic external
speakersheadphones
SPDIF OUT!

but in the audio midi setup i only have

mic built in
mic external
speakers/headphones

how can this be? i've tried adding pin configs (from the same source that got my voodoohda working)

voodoo hda the same problem where it would autodetect everything except SPDIF.

Spdif was made to work by adding my own config data.

技术笔记 #79 @steenamaroo 2010-07-15

would anyone out there be prepared to help me make an applehda.kext for SL from scratch.

i have working pin configs, which are put in the dsdt, so system profiler shows my devices perfectly.

no matter what i do though, i can't get sound with applehda…

pm me if you're interested in helping.

i've given up on encoded output via voodoohda,,since no on at all seems to have it.

技术笔记 #80 @haze295 2010-11-14

Sorry for bringing up an old thread, but this seems like the best place to ask...

I have a working applehda and want to convert it to 10.6.5 applehda. I found that in 10.6.5 I do not have a MacOS folder and no actual AppleHDA inside.

I was wondering if someone could help me put together a 10.6.5 HDA as I've been stuck trying this tutorial.

Thank you so much,

Haze

文献来源与贡献者溯源名录(共 39 位具名成员 · 原始讨论串 #3981)
成员用户名本卷贡献角色发帖数活跃时间窗
@mormegil主笔作者272009-09-08 → 2010-06-27
@mimayin核心贡献者142009-11-19 → 2009-11-21
@Pietruszka核心贡献者62009-09-09 → 2009-09-11
@airwalk776核心贡献者62009-10-26 → 2009-11-11
@msf5042核心贡献者62009-10-26 → 2009-11-11
@Jedric核心贡献者52009-09-20 → 2009-09-22
@dan10核心贡献者42009-11-20
@calabuig核心贡献者42010-04-21 → 2010-04-29
@Snow核心贡献者32009-09-08 → 2009-11-12
@Gurruwiwi核心贡献者32009-09-10
@blkhockeypro19核心贡献者32009-09-22 → 2009-09-26
@ping99核心贡献者32009-09-25 → 2009-09-26
@max.1974核心贡献者32009-12-01 → 2009-12-02
@xxxslayeriiixxx协作成员22009-09-08 → 2009-11-15
@thorazine74协作成员22009-09-21 → 2009-09-22
@vincenzo32协作成员22009-09-21
@steenamaroo协作成员22010-07-14 → 2010-07-15
@infinitek协作成员12009-09-08
@arm1tage协作成员12009-09-10
@tokyovigilante协作成员12009-09-16
@lemn协作成员12009-09-16
@Ezhoon协作成员12009-09-18
@rachaf协作成员12009-09-20
@mstam协作成员12009-09-29
@xbx2usr协作成员12009-10-13
@leclercqr协作成员12009-10-15
@Valaris协作成员12009-11-15
@chadp1a协作成员12009-11-15
@miliuco协作成员12009-11-18
@scififan68协作成员12009-11-21
@semendemon协作成员12010-01-12
@abct协作成员12010-01-24
@maxidlabs协作成员12010-01-26
@kanedaguy协作成员12010-03-04
@kws协作成员12010-03-04
@Morpheus___协作成员12010-05-15
@Fabze协作成员12010-06-08
@hassan协作成员12010-06-28
@haze295协作成员12010-11-14

选择语言 · Choose your language