x86 硬件上的 Mac OS X 2008–2024 技術文獻庫
InfiniteMac OSx86 › Snow Leopard 10.6 › Realtek ALC889a 內置音效卡啟用類比 5.1 環繞聲道完整指南(DSDT + AppleHDA 修補)
497,008 reads · 2009-08-23 – 2010-05-25
實戰指南 Snow Leopard 10.6 DSDT ALC889a / Audio

Realtek ALC889a 內置音效卡啟用類比 5.1 環繞聲道完整指南(DSDT + AppleHDA 修補)

香港繁體精譯技術專卷 · 完整保留原始指令、Kext 名稱、ACPI 節點與開機參數查看英文原版 (Original English) →

本指南詳述如何在 Snow Leopard(及 Leopard)系統下,不經光纖數位輸出、直接透過底板背板的 3 個 3.5mm 類比音源孔(Analog Ports)啟用 Realtek ALC889a 完整 5.1 聲道環繞音效!特別鳴謝 Mormegil 提供指導與設定檔。

  • 2009/09/14 更新: 提供我已修補完成的 AppleHDA.kext 供直接套用或比對(media fire.com/?f0mmm25zrja)。
  • 2009/09/08 更新: Mormegil 撰寫了將 Leopard AppleHDA.kext 移植至 Snow Leopard 的通用教學:How to port AppleHDA to SL →。

事前準備檔案

  • iAslMe(反編譯與編譯 dsdt.aml):media fire.com/?jnjrdtmfm3k
  • KextUtility(修復權限與重建快取):media fire.com/?njgtzhzwm0j
  • 參考對照:未加音效修補的 dsdt.aml(media fire.com/?xm2yn2xguyo)與已加 ALC889a 音效修補的 dsdt.aml(media fire.com/?zzgmmgmhdbo)

第一部分:修補 DSDT(將 AZAL 改為 HDEF 並注入 layout-id 12)

  1. 將你的 dsdt.aml 拖曳到 iAslMe 圖示上反編譯為 dsdt.dsl,並以文字編輯器打開。
  2. 搜尋 AZAL,將通知行由:
    Notify (\_SB.PCI0.AZAL, 0x02)
    改為:
    Notify (\_SB.PCI0.HDEF, 0x02)
  3. 再次搜尋 Device (AZAL),將整個 Device (AZAL) 區塊替換為注入了 layout-id = 0x0C (12) 的 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)
        }
    }

第二部分:修補 AppleHDA.kext

  1. 將 /System/Library/Extensions/AppleHDA.kext 複製到桌面,右鍵選擇「顯示套件內容(Show Package Contents)」,進入 Contents/PlugIns。
  2. 右鍵點擊 AppleHDAHardwareConfigDriver.kext ›「顯示套件內容」,將 Contents/Info.plist 替換為修補版(media fire.com/?rttltqjqxn4)。
  3. 返回 PlugIns 資料夾,右鍵點擊 AppleHDAPlatformDriver.kext ›「顯示套件內容」,將 Contents/Info.plist 替換為修補版(media fire.com/?zhnmdm0izzy)。
  4. 將修改好的 AppleHDA.kext 拖曳至 KextUtility 圖示自動安裝並修復權限,完成後重新開機(若遇 KP 可先以 -x -x32 安全模式進入並再次執行 KextUtility)。

第三部分:在「音訊 MIDI 設定」配置類比 5.1 環繞聲道

  1. 透過 Spotlight 搜尋並開啟「音訊 MIDI 設定」(Audio MIDI Setup)。
  2. 點擊左下角的 + 號建立「聚合裝置(Aggregate Device)」,雙擊名稱改為 ALC889a。
  3. 在右側勾選全部 3 個內置線路輸出串流(Built-in Line Streams),並展開滑桿平衡三個輸出孔的音量。
  4. 點擊右下角「設定揚聲器(Configure Speakers…)」,切換至「多聲道(Multichannel)」並選擇 「5.1 環繞聲(5.1 Surround)」。
  5. 將聲道 3 與 4 分別設為中置(Center)與重低音(Subwoofer),聲道 5 與 6 設為左後(Left Rear)與右後(Right Rear),套用後即可在 QuickTime X 或 Perian 中享受真正的類比 5.1 環繞音效!
參與貢獻成員 (29)
@mormegil (57)@Gurruwiwi (53)@Snow (25)@ajacocks (13)@Elventanis (13)@terrorgen (7)@will1384 (7)@megavolkan (6)@Trograin (6)@monsieur.d (5)@X58-Agility (3)@CyCLoBoT (2)@vladrxpx (2)@hops (2)@MiniHack (2)@wind99 (2)+13 more
相關硬件參考
免驅動 Mac USB 外置音效卡 ↗ 靜音散熱器與電源組件 ↗ SATA III / NVMe 固態硬碟 ↗

社群實測與技術補充筆記

自 219 則原始討論回帖中萃取 205 則高價值技術回應

技術筆記 #1 @vista00 2009-08-23

這裡有一份相當實用的教學,講解如何修改 DSDT 並注入音效,不妨參考看看:
media fire.com/?sharekey=dd89f674cb6ef1d6d6baebe61b361f7c8fd90959baf93af1c95965eaa7bc68bc

技術筆記 #2 @DocShadow 2009-08-24

嗯……寫得非常詳盡。

我之前試過在 DSDT 加入 HDEF 修補但沒有成功,這次我來試試這份教學的方法,看看會不會好運一點。

多謝提供資訊!

作者修訂 #1 @Snow 2009-08-24 ↳ Re: @DocShadow

多謝師兄提供教學,不過我真正想確認的是 ALC889a 究竟能否透過類比介面輸出 5.1 環繞聲道。
如果做不到的話,我就費事啟用底板內置音效卡了。
不行的話我就等 kX 驅動程式推出 64-bit 版本,現階段先繼續用我的 PreSonus 1394 火線錄音介面(立體聲)。

技術筆記 #3 @mormegil 2009-08-25

我印象中真正的白果 Mac 本身就不支援類比 5.1 聲道輸出,所以唯一的正途應該還是走光纖/同軸數位輸出。

我參考這篇教學成功搞定了底板內置的 ALC888:http://www.projectosx.com/forum/index.php?showtopic=465… ↗

目前前置類比、數位輸出(Digital Out)、麥克風(Mic)及線路輸入(Line In)全部正常運作。我配的是 Logitech Z-5500 音響系統,效果好極了,看 AC3/DTS 高清電影完全沒問題。

作者修訂 #2 @Snow 2009-08-25 ↳ Re: @mormegil

唉,看來是壞消息了。我的 Audigy 2 ZS 配 kX 驅動程式本身支援 5.1 聲道,而且音質比 ALC889a 出色得多;不過看來要等好一段時間才會有 64-bit 支援,所以我才四處尋找 ALC889a 啟用類比 5.1 的方法。

技術筆記 #4 @mormegil 2009-08-25

是啊,可惜我的 X-Fi 音效卡也沒有 kX 驅動支援,否則我才懶得去折騰底板內置音效。自從買了這塊底板以來我甚至從未在 BIOS 啟用過內置音效,老實講,它的數位光纖輸出音質還真讓我頗為驚喜。

技術筆記 #5 @mormegil 2009-08-27

我收回之前說過的話!我成功在底板內置的 ALC888 上搞定完整的類比 5.1 環繞聲輸出了!

1. 修改 AppleHDA.kext,讓系統識別出 3 個線路輸出(Line Outputs):綠孔、黑孔、橘孔。
2. 開啟「音訊 MIDI 設定(Audio MIDI Setup)」。
3. 新增一個「聚合裝置(Aggregate Device)」。
4. 勾選對應那 3 個 Line Out 的核取方塊。
5. 點擊「設定揚聲器(Configure Speakers)」。
6. 選取全部 3 個音訊串流。
7. 選擇「多聲道(Multichannel)」›「5.1 環繞聲」。
8. 確認所有聲道位置皆已正確對應。
9. 到「系統偏好設定」›「聲音」將輸出裝置設為該聚合裝置。
10. 大功告成!

附上我修改好的 AppleHDA.kext 供大家參考。

作者修訂 #3 @Snow 2009-08-27 ↳ Re: @mormegil

太好了師兄!

你覺得這個做法可以直接套用到我的 ALC889a 上嗎?

只需要替換 Kext 就夠了?不用改 DSDT 或加裝其他 Kext?

這個支援 64-bit 模式對吧?

技術筆記 #6 @mormegil 2009-08-27

ALC889a 的針腳配置(Pin Configurations)可能有所不同,這點我不敢肯定;不過你的 Codec 看起來是 ALC885 的變體,而 OS X 原生就支援 ALC885,所以我認為你不需要對二進位執行檔進行 Binary Patch。

你不需要安裝 HDAEnabler 或任何音效注入 Kext,只需在 DSDT 中注入音效資訊,然後編輯以下兩個 plist 檔案即可:

AppleHDA.kext/Contents/Plugins/AppleHDAHardwareConfigDriver.kext/Contents/Info.plist
AppleHDA.kext/Contents/Plugins/AppleHDAPlatformDriver.kext/Contents/Info.plist

參考我前面貼過的 THe KiNG 教學,你應該可以自己動手改。我已經針對你的 Codec(ALC885 Address 3)快速改好了兩份檔案,只需將它們重新命名為 Info.plist 並複製進對應的子 Kext 內即可。

另外沒錯,這是基於 Snow Leopard 10A432 原生內置的 AppleHDA.kext 修改而成,因此完全兼容 64-bit 模式。

作者修訂 #4 @Snow 2009-08-27 ↳ Re: @mormegil

多謝師兄!看來我還是得研究一下如何修補 DSDT,事關我目前這份 DSDT 是請 Pista(寫 SleepEnabler 那位高手)幫我編譯的。

非常感謝你提供的檔案與資訊!我現在就去研讀那篇教學。

作者修訂 #5 @Snow 2009-08-27 ↳ Re: @mangohead

好的,多謝師兄,我明天就試試。

試完再上來回報結果。目前我唯一遇到的問題是 DSDT,因為 iASL 似乎無法正常編譯它(甚至完全沒有輸出 .aml 檔)。

各位師兄,我明天再繼續搞,再次感謝!

技術筆記 #8 @wwbsox 2009-08-27

DSDT 無法編譯

@snow... 你用 iAslMe 時遇到什麼錯誤訊息?如果是 _WAK、Local0 或 DTGP 相關的錯誤,只要把對應的方法(Method)補進 DSDT 裡就能解決。我自己覺得在 Windows 下用 ACPI Patcher 並直接勾選那些修復選項來打補丁會簡單得多。

無論如何,這個週末我打算在 DSDT 裡測試幾組不同的 Pin Configurations,看看能否純靠 DSDT 實現 5.1 聲道。

技術筆記 #9 @mormegil 2009-08-27

起初我嘗試把 PinConfig 直接寫進 DSDT 時也遇到問題,後來讀了教學才知道根本不必這樣做,因為 plist 裡的 PinConfig 設定無論如何都會覆蓋掉 DSDT 的值。以下是我 dsdt.dsl 中的 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)
                }
            }
作者修訂 #6 @Snow 2009-08-28 ↳ Re: @mormegil

好,我把 DTGP 方法加進 DSDT 後就能順利編譯通過了。

重啟後經歷了幾次核心錯誤(KP)和無法開機,不過在修復權限並重建 mkext 快取後,已經成功進入 x64 模式。
現在系統裡看得到 3 個線路輸出(Line-out),我也建立了聚合輸出裝置,但完全沒有半點聲音。

能不能麻煩你幫我檢查並重新編譯我的 dsdt.aml?

更新:唉,還是不行。玩 OSx86 我多少能自己搞定一些東西,但這種底層編碼實在超出我的能力範圍了,靠我自己寫大概一輩子都搞不定 lol,希望有好心人能幫我編譯一份正確的 DSDT 或 AppleHDA。
我另外附上了 ALC889a 的 Codec Dump(從網上載回來的,不是在我自己機器上提取的),以備不時之需。

技術筆記 #10 @mormegil 2009-08-28

你在「系統描述(System Profiler)」和「系統偏好設定 › 聲音」裡看到什麼?在建立聚合裝置之前,單獨選擇個別輸出埠時有聲音嗎?

作者修訂 #7 @Snow 2009-08-28 ↳ Re: @mormegil

老天,我剛才又試了一次,隱約聽到背景有一點雜音,把喇叭音量調大一點後(看來我原本的 PreSonus FireWire 介面輸出電平大得多),竟然就有聲音了!真是擺了個超級新手烏龍。

好,現在雙聲道立體聲確定正常了,我測試完 5.1 環繞聲道再向大家回報。

作者修訂 #8 @Snow 2009-08-28

搞定了,5.1 聲道完美運作!萬分感謝師兄提供的檔案與指導!

以我的配置來說,這組串流對應設定看來才是正確的。我敢說只要微調一下 PinConfigurations 應該就能讓預設聲道對應直接生效,不過目前的排列方式其實更合乎邏輯。

技術筆記 #11 @mormegil 2009-08-28

很高興這方法對你有效!不過你說的「預設設定(default settings)」是指什麼?

作者修訂 #9 @Snow 2009-08-28 ↳ Re: @mormegil

我指的是預設狀態下的串流配置,我必須把後置聲道跟中置/重低音對調才行。

不過把 3/4 設為後置、5/6 設為中置/重低音,這樣排列確實更合理。

看來我得把 Windows 下的音效輸出也改回底板內置音效,否則打機就變無聲了。等將來 kX 推出 64-bit 驅動時,我「或許」會再把 Audigy 2 ZS 裝回去試試;又或者乾脆把它賣掉,幫機箱騰出一點空間哈哈。

如果要在 Leopard 下使用,我是不是同樣直接替換這份 dsdt.aml 和 AppleHDA 裡的 plist 檔就可以了?

另外,有沒有辦法在 QuickTime X 裡直接輸出 5.1 聲道,還是非得繼續用 VLC Player 不可?

再次感謝師兄,佩服!

作者修訂 #10 @Snow 2009-08-28

補充一個小觀察:輸出音量確實偏低很多,我必須把喇叭旋鈕轉到很大聲,大到開始聽見底噪(類比接法大概免不了這樣)。

更新:各位朋友,我發現在「音訊 MIDI 設定」面板裡把三個 Line-out 的增益調回 0 dB 就解決音量過小的問題了!看來我應該先自己找找解法,真的解決不了才上來發問,大概是因為成功搞定 5.1 太興奮了吧。

技術筆記 #12 @mormegil 2009-08-28

啊,沒錯,我這邊也是一樣,不知為何預設的聲道對應順序並不正確。

是的,dsdt.aml 可以直接拿去 Leopard 共用,但 AppleHDA.kext 不能直接照搬,因為 10.5.8 用的是舊版架構。在 Leopard 下請按以下路徑修改:
AppleHDA.kext/Contents/PlugIns/AppleHDAHardwareConfigDriver.kext/Contents/Info.plist
將 LayoutID 12 的 ConfigData 複製貼上過去。

AppleHDA.kext/Contents/PlugIns/AppleHDAPlatformDriver.kext/Contents/Info.plist
將 Layouts 下 LayoutID 12 的區塊,以及 PathMaps 下 PathMapID 9 的區塊複製貼上過去。

作者修訂 #11 @Snow 2009-08-28 ↳ Re: @mormegil

好的師兄,我食完晏就去試。

另外,只要在 Perian 的音效選項中設為「多聲道輸出(Multi-Channel Output)」,QuickTime 的 5.1 環繞聲輸出問題就解決了。
順帶一提,音場定位效果還相當不錯。

還有一個問題請教:把我的 8800GT 寫進 DSDT,跟在 com.apple.Boot.plist 裡用 EFI String 注入相比會有任何分別嗎?如果有的話該怎樣改?

回頭見兄弟。

更新:能不能把 Leopard 版的 AppleHDA 傳給你幫我改?因為裡面的代碼實在太多,我怕自己改壞了。我記得自己好像已經改了一部分,但不太確定了。

技術筆記 #13 @Gurruwiwi 2009-09-01

我一直追看你們的討論串,現在急需各位救命!

我也是用

技術筆記 #14 @Gurruwiwi 2009-09-01

我一直追看你們的討論串,現在急需各位救命!

我的晶片同樣是 ALC889a。

我的手提電腦用 Chameleon 2 RC1 安裝了 Snow Leopard 10A432,目前只差音效卡和 SD 讀卡機就能達成完美安裝了。

先交代一下我認為有關的背景情況:

上星期我為手提電腦買了一顆新硬碟,先後全新重灌了 SL 八到十次,結果核心錯誤(KP)卻越來越頻繁。直到星期日我才發現原來那顆新硬碟本身有壞軌,連格式化都無法正常完成。但在週末折騰期間,我已經試通了不少東西,例如顯示卡 EFI 字串、AHCI 等等……甚至在最初幾次嘗試時,我曾成功讓音效卡完美運作,包括 S/PDIF 光纖輸出,雖然內置麥克風沒反應,但外接麥克風完全正常!只要能重現那個狀態我就心滿意足了!
而且當時重低音單元也有作用,播音樂時低頻飽滿得多。那時我甚至還沒進去過「音訊 MIDI 設定」(我以前一直以為那只是給 MIDI 樂器連線用的!),聲音就已經非常清脆響亮,完全沒有爆音或雜音。

後來系統損毀,我只好再次重灌,但那顆壞硬碟很快就撐不住了。因為當時狀況百出,每當有東西試成功我都會備份起來,但偏偏還沒來得及備份音效驅動,系統就發生 warmd KP 死機了。你也知道 Downloads 下載資料夾很快就會亂成一團,當時我知道硬碟隨時會徹底死機,所以現在實在記不起到底用了哪一個 Kext,但我強烈懷疑是從 electro 的 SkyDrive 驅動庫下載的 AppleAzalia.kext。到了星期日那顆硬碟就徹底報銷,連格式化都不行了。

cid-8b65993ef55cf014.skydrive.li ve.com/browse.aspx/.Public/OSx86/Snow%20Leopard/Drivers%20kext%20|5Sterowniki|6/==%20%20Sound%20|5d%C5%BAwi%C4%99k|6%20==?view=details

就是列表裡第一個標示為 ALC883 (Azalia) 的檔案;不是它就是某個最新版的 VoodooHDA 喚醒了音效卡,當時太夜了我實在太累。

現在換了全新硬碟、全新安裝 SL,顯示卡、LAN 卡、視像鏡頭、藍牙、ICH9M 全部正常,smbios.plist 改成了 MacBookPro5,1……系統穩如泰山!

而且無論根目錄或 /Extra 有沒有放 dsdt.aml 都一樣穩定。

結果我昨天足足花了 5 個小時不斷重複這套動作:

將某個 Kext 裝進 /Extra/Extensions —— 修復權限、用 -v 重啟、死盯著開機畫面看有沒有載入訊息;
將某個 Kext 裝進 /System/Library/Extensions —— 修復權限、用 -v 重啟、死盯著開機畫面看有沒有載入訊息。

我幾乎試遍了網上找得到的所有 64-bit SL 音效 Kext!

結果完全沒反應——在只保留原生 AppleHDA.kext 時,系統描述(System Profiler)顯示:

Device ID:	0x10250146
  Audio ID:	0

請注意這個 Device ID 跟其他人的都不一樣!

此前我還沒放入以前在 10.5.7 用的 dsdt.aml,於是我決定把它複製到根目錄和 /Extra,然後把所有 Kext 又重新安裝、修復權限、重啟測試了一輪。

換其他 Kext 時則只顯示:

DEVICE ID: 0x1458A002

沒有 Audio ID,就只有那一行。

後來我有點心灰意冷,決定先去搞 LAN 卡,搞定網絡後我又順手試了另一個 VoodooHDA,結果竟然出聲了!試了幾千萬個 Kext 後突然奇蹟出聲!雖然沒有內置及外接麥克風(但這次偏好設定裡有出現「Mic」),當時我是把它裝在 /S/L/E,而且原生的 AppleHDA 好像也還在。系統描述裡顯示的資訊跟上面一樣,但真的有聲音!

我高興得大叫,心想把它移到 /Extra/Extensions 以保持原生系統乾淨,然後馬上備份!

誰知一重啟,沒聲音了。把同一個 Kext 移回 /S/L/E……還是沒聲音!搞什麼鬼!?

絕大多數 Kext 在 -v 開機過程中完全沒有動靜;有些放在 /E/E 會報相依性(Dependencies)錯誤,但放進 /S/L/E 後開機卻又毫無反應。

到底發生什麼事?怎麼會同一個 Kext 前一分鐘還正常、下一分鐘就失效?是的,我每次都有修復權限。

原則上我應該先刪除原生的 AppleHDA.kext 嗎?(已試過)

我到底該不該用 dsdt.aml?(我還沒試過自己改 DSDT,看起來實在太複雜了!)

最令我百思不得其解的是:如果我用 SL 安裝 USB 手指開機,打開系統描述會看到:

 Device ID:  0x1458A022
             Audio ID:   12

            Available Devices:
            Internal Microphone:
                 Connection: Internal
            Speaker:
                 Connection Internal
            External Microphone:
                 Connection: 1/8-inch Jack 

以下是我的 lspci 資訊:

(ICH9 Family) HD Audio Controller [8086:293e] (rev 03) 00:1c.0 PCI bridge [0604]: Intel Corporation 82801I

我想我也可以走修改 DSDT 這條路……但我明明之前不用改也出過聲,真不明白為什麼 SL 這麼挑剔。我從未改過 DSDT,光看那些代碼就覺得頭皮發麻。
用原生 AppleHDA 開機時,-v 畫面會出現以下訊息:

可以看到裡面出現了 sound assertion "0"——這跟 Audio ID: 0 有關嗎?

既然我之前曾經成功出過聲,為什麼現在非得修改 DSDT 不可呢?

感謝大家耐心看完這麼長的文章,我只是想盡可能提供最完整的資訊。

技術筆記 #15 @Gurruwiwi 2009-09-01

剛才試著照 THe KiNG 的教學做……

第一步就卡關了,Graphviz 在 Snow Leopard 下無法安裝。

技術筆記 #16 @mormegil 2009-09-01

其實很簡單:

你可以直接拿我為 Snow Leopard 改好的那兩個 plist 檔,改名後塞進你 SL 的 AppleHDA.kext 裡面;

或者

去這裡 ↗下載 tmongkol 整理的整合版 plist(也就是俗稱的 LegacyHDA.kext),這應該是最省事的做法。找標示為 2009-08-06 的最新套件即可。你其實不需要從頭照做 King 的教學,因為你這顆音效晶片的資料早就已經被前人整理得非常完整了。

下一步是處理 DSDT,其實沒有想像中那麼難。tmongkol 的文章裡同樣有 fassl 開發的 DSDT Patcher 連結,只要執行一次就能產生你的 dsdt.aml。

反編譯它:

iasl -d dsdt.aml

將 HDEF 程式碼插入 dsdt.dsl 中,然後重新編譯:

iasl -ta dsdt.dsl
技術筆記 #17 @CyCLoBoT 2009-09-02

我終於在 GA-EP45-DQ6 底板上搞定音效輸出了,但我發現左右兩邊喇叭的音量明顯不平衡,其中一邊大聲很多。我用的是 2.1 聲道喇叭,有人遇過類似情況嗎?

技術筆記 #18 @Gurruwiwi 2009-09-03

Mormegil,

非常感謝你的幫忙!

我試遍了所有方法還是不行。好不容易才搞定一個穩定運作的 SL 系統,偏偏就是沒聲音,真是氣死人,因為明明兩天前剛開始試 Kext 時還好端端的。

我用 DSDT Patcher GUI 1.02 勾選強制編譯與新版 HPET,重新產生了一份 dsdt.aml。

再由它反編譯出 dsdt.dsl 檔。

我試著照幾篇教學操作,例如「搜尋 AZAL 並替換為 HDEF」——但我的 DSDT 裡根本沒有 AZAL 這個項目;又或者教學說「把這段複製覆蓋到某段上面」,但我根本搞不清楚到底要覆蓋到哪一行才不會誤刪重要的原有代碼。

另外還遇到一個問題:我照著其中一篇教學替換了一段代碼準備測試,儲存 dsdt.dsl 後拖進 iAslMe.app,卻找不到輸出的 .aml 檔。程式顯示完成但有 1 個 Error(這樣算正常嗎?),結果完全沒有產生 dsdt.aml。我之前用同一個工具反編譯出 .dsl 時明明是正常的。

能不能麻煩你幫我看一下?

作者修訂 #12 @Snow 2009-09-03 ↳ Re: @Gurruwiwi

有 Error 是不行的師兄,因為一旦有 Error 就不會輸出 .aml 檔案。

那是跟 DTGP 有關的錯誤嗎?(請檢查編譯紀錄 log),如果是的話,往前翻幾頁有修復方法。

技術筆記 #19 @mormegil 2009-09-03

如果原本沒有該區段,你就必須手動把代碼插進去。我的情況跟你一樣,只要把整段 Device (HDEF) 程式碼複製貼上到 Device (PCI0) 區段底下(作為它的子節點)即可。再仔細讀一次 King 的教學吧。

技術筆記 #20 @Gurruwiwi 2009-09-03

各位師兄,

有一點點進展,但還是卡住了。

我已經把 HDEF 底下的內容完全照足 King 的 PDF 教學替換好。

逐行反覆核對了三、四次,儲存 dsdt.dsl 後拖到 iAslMe,結果顯示:

Copyright (C) 2000 - 2008 Intel Corporation
Supports ACPI Specification Revision 3.0a

/Users/bigbang/Desktop/DSDT dsl to aml/dsdt.dsl  9592: [*** iASL: Read error on source code temp file /Users/bigbang/Desktop/DSDT dsl to aml/Sessions/2009-09-03-125900/dsdt.src ***]
Error    4095 -         syntax error, unexpected $end ^ 

ASL Input:  /Users/bigbang/Desktop/DSDT dsl to aml/dsdt.dsl - 9593 lines, 326239 bytes, 4052 keywords
Compilation complete. 1 Errors, 0 Warnings, 0 Remarks, 0 Optimizations

        All done.
        Enjoy ...
 

而且在 Sessions 資料夾裡只有一個 log.txt 檔,內容為:

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20080926 [Oct  4 2008]
Copyright (C) 2000 - 2008 Intel Corporation
Supports ACPI Specification Revision 3.0a

/Users/bigbang/Desktop/DSDT dsl to aml/dsdt.dsl  9592: [*** iASL: Read error on source code temp file /Users/bigbang/Desktop/DSDT dsl to aml/Sessions/2009-09-03-125900/dsdt.src ***]
Error    4095 -         syntax error, unexpected $end ^ 

ASL Input:  /Users/bigbang/Desktop/DSDT dsl to aml/dsdt.dsl - 9593 lines, 326239 bytes, 4052 keywords
Compilation complete. 1 Errors, 0 Warnings, 0 Remarks, 0 Optimizations

請問我到底哪裡做錯了?

隨帖附上我貼上代碼後的 dsdt.dsl……

作者修訂 #13 @Snow 2009-09-03 ↳ Re: @Gurruwiwi

我試過幫你修改你的 .dsl 檔,但反而跳出更多錯誤(6 個 Error),所以恐怕幫不上忙了師兄。

技術筆記 #21 @mormegil 2009-09-03

我已經幫你修正了所有 Error,並直接忽略 Warning 強制編譯好了。

技術筆記 #22 @Gurruwiwi 2009-09-03

多謝 Snow 和 Mormegil!不過套用之後系統卻壞掉了。

我把 dsdt.aml 複製到根目錄,重啟後在 -v 開機途中 AppleHDA 就觸發核心錯誤(KP)死機了。

再次以 -v 重啟,這次開機過程沒 KP,但 AppleHDA 報了 assertion 0 錯誤碼,進入桌面後隨即發生「熱當機(warm KP)」。在死機前一刻我趕緊看了一眼,Device ID 顯示為 0x10250146、Audio ID: 12,而且所有音源埠都有顯示出來。

但在 Leopard 以及 SL 安裝程式環境下,它顯示的卻是:

DEVICE ID: 0x1458A002
Audio ID: 12

這或許是個重要線索。

總之,我再試著重啟,結果當螢幕準備從黑屏喚醒進入桌面時,畫面就開始每隔 5 秒在黑屏與藍屏之間來回閃爍,一直卡死在那裡,跟我之前安裝 SL 失敗時的症狀一模一樣。
我切回 Leopard,把 SL 硬碟裝進外接盒,刪掉根目錄的 dsdt.aml,並順手驗證修復磁碟(以防強制關機損毀檔案系統),磁碟看起來沒問題。
接著試著用 -x、-x32 以及 -x -x32 引導 SL……結果還是一樣閃黑藍屏。
換言之我的 SL 系統又掛了,謝天謝地我事先備份了基礎鏡像!
我之前上傳的第一、二份 .dsl 檔,其實我自己已經照 King 的第一篇教學微調過 HDEF 底下的內容,其他地方則不敢亂動。

我在這篇回覆會附上一份完全未經手動修改、純粹用 GUI Patcher 1.02 勾選強制編譯與 newHPET 產生的原始檔案。

為什麼這份 DSDT 會搞垮我的系統?而且到底動到了什麼,連把 dsdt.aml 刪掉之後都還無法恢復正常?
我打算把備份鏡像重新還原一次,再用這份 dsdt.aml 重新測試……
我在 com.apple.Boot.plist 裡有放顯示卡 EFI 字串,但我們在 DSDT 裡並沒有動過任何顯示卡設定;這個黑藍屏閃爍症狀我之前也遇過,一直不知道該如何救回來。

各位有頭緒嗎?

技術筆記 #23 @mormegil 2009-09-03

我覺得這跟 DSDT 無關,問題很可能出在你的顯示卡 EFI 字串上。我聽說過有些在 Leopard 下正常的 EFI 字串到了 SL 未必完全兼容。你是用我在本討論串貼出的那兩份 plist 對吧?有改成 Info.plist 覆蓋原檔並修復權限嗎?

技術筆記 #24 @Gurruwiwi 2009-09-03

我現在正從剛還原好的 SL 系統回覆你。

我的顯示卡字串在 SL 下不裝任何額外 Kext 一直都運作正常,每次重啟都沒問題,唯獨套用了新 DSDT 之後才發瘋。

我不太確定上次是否用了正確的 AppleHDA 搭配你提供的 Info.plist。我當時心想先單獨換上新 DSDT 開機看看變化,之後再換 AppleHDA,而且我單純複製 dsdt.aml 時並沒有修復權限。

現在回到乾淨的 SL,我會先修改好原生 AppleHDA、放上你編譯的 dsdt.aml 再來測試。

如果方便的話,非常希望你能幫我直接修改並重新編譯我那份完全未改過的原始 dsdt.dsl。我擔心自己之前改錯了什麼地方導致潛在錯誤,用你親手改的版本會安心得多。

不過在此期間我還是會先拿現在這份在乾淨系統上測試兼容性。

萬分感謝~~~~

更新:

太好了!重啟後系統沒掛!——雖然還是沒聲音,但至少 Audio ID 已經顯示為 12 而非 0 了。-v 開機過程中沒有任何音效 Kext 的錯誤提示。我已經用你的 plist 修改了原生 AppleHDA,接下來準備試試你在第 3 頁貼過、針對 ALC889a 修補的 1.7.1a2 版本。

更新 2:還是不行,情況完全一樣。系統偏好設定裡依然沒有任何輸出入裝置,-v 開機也沒有任何警告。Legacy Kext 裡面應該只包含 plist 而已對吧?我現在去試試原生 AppleHDA 搭配 LegacyHDA……

技術筆記 #25 @mormegil 2009-09-03

如果你是用 tmongkol 的 Legacy Kext,記得打開裡面的 plist,把所有的 LayoutID 數值都改為 12。另外你不需要安裝 HDAEnabler。

技術筆記 #26 @Gurruwiwi 2009-09-03

不好意思一直煩大家……我又退回 Leopard 了。剛才試了另一種組合結果又觸發 KP,而且只要嘗試修復權限就會死在 repair package 執行緒上,徹底沒救。試著用 Kext Utility 搞,重啟到第三次才總算沒 KP 跑完,但整個 Snow Leopard 已經進不去了。

只好再次格式化並還原鏡像。不過剛才死機前我確實看到所有音源裝置都已經對應出來了!看來只要系統成功識別並映射出音效裝置,Snow Leopard 就會立刻 KP 死機。

我準備重頭再來一次,感覺已經離成功只差臨門一腳了!為免搞錯,先跟師兄確認一下:我應該使用你編譯的 DSDT + Legacy Kext + 不裝 HDAEnabler + 原生 AppleHDA,這樣配對嗎?

技術筆記 #27 @vladrxpx 2009-09-03

我也是用 GA-P35-DS3R 底板。

安裝好 Snow Leopard 後其他功能一切正常,唯獨完全沒有聲音,系統裡找不到任何音訊輸入或輸出裝置。

請問各位師兄能否指點一下該從何入手解決?

技術筆記 #28 @Gurruwiwi 2009-09-03

當然可以,請直接看本討論串一樓首帖的教學。你試過裡面的步驟了嗎?

技術筆記 #29 @Gurruwiwi 2009-09-03

Mormegil,

我重新乾淨還原了系統,並裝上你的 DSDT、原生 AppleHDA 以及 LegacyHDA.kext,現在已經可以看到所有音效裝置了:

Intel High Definition Audio:

Device ID: 0x10250146
Audio ID: 12
Available Devices:
Internal Microphone:
Connection: Internal
Speaker:
Connection: Internal
External Microphone:
Connection: 1/8-Inch Jack

但依然沒有聲音。就算不改 LayoutID 結果也一模一樣。

我看 plist 裡有些 LayoutID 的值是 889,請問這些也要一併改成 12 嗎?(我剛才已經全改成 12 了)。

作者修訂 #14 @Snow 2009-09-04 ↳ Re: @Gurruwiwi

Gurru,我在首帖補上了一份簡明教學,請照著再試一次並回報結果。一步一步慢慢來,如果教學裡有哪裡需要調整也請告訴我。

祝好運!

技術筆記 #30 @Gurruwiwi 2009-09-04

太正了師兄!

請教一下:照你這套做法,是不是就完全不需要額外的 Legacy Kext 了?

我這就回去重新檢查我的 DSDT!

展開其餘 161 則社群技術筆記完整歷史討論紀錄
技術筆記 #31 @mormegil 2009-09-04

So you downloaded tmongkol's legacy kext. There should be a few in the package. Only choose one. Then, edit all LayoutID's from 889 or 885 to 12.

技術筆記 #32 @Gurruwiwi 2009-09-04

Yes, I have, I only tried the 3out2in HDA and analog for 889 and 885.

And yeah, one at the time, since they are all named the same

Once I tried all layouID's ( "0", "65647 something", and "889"'s)

In Snow's dsl he has two HDEF entires, I only have one.

Where he reads

Method (_L0D, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USBE, 0x02)
            Notify (\_SB.PCI0.USE2, 0x02)
            Notify (\_SB.PWRB, 0x02)
            Notify (\_SB.PCI0.HDEF, 0x02)

I have;

Method (_L0D, 0, NotSerialized)
        {
        }

The other entry is exactly the same

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)
                }
            }

So should I copy this in and recomplie?

And should I try with or without legacy?

(In the donwloaded tutorial folder containing the legacy kext archives, there is an HDAenabler there...)

技術筆記 #33 @mormegil 2009-09-04

Your dsdt is fine. Don't touch it anymore. Make sure to change ALL LayoutIDs! Or just use the plists I made and you don't have to change anything.

Edit: I meant all LayoutID so long as they're 889 or 885. This confusion can be totally avoided to be honest if tmongkol hadn't messed up with layoutid's to make it look "good". It only changes the number in Sys Profile. Thats the number 12 you see btw.

技術筆記 #34 @Gurruwiwi 2009-09-04

I tried that!

I just found out something.

In Snow's file he has

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)
                }
            }

            Name (BUFA, ResourceTemplate ()
            {
                IRQ (Level, ActiveLow, Shared, )
                    {3,4,5,6,7,9,10,11,12,14,15}
            })
            Name (BUFB, ResourceTemplate ()
            {
                IRQ (Level, ActiveLow, Shared, )
                    {}
            })
            CreateWordField (BUFB, One, IRQV)
            Device (LNKA)
            {
                Name (_HID, EisaId ("PNP0C0F"))
                Name (_UID, One)
                Method (_STA, 0, NotSerialized)
                {
                    And (PIRA, 0x80, Local0)
                    If (LEqual (Local0, 0x80))
                    {
                        Return (0x09)
                    }
                    Else
                    {
                        Return (0x0B)
                    }
                }

                Method (_PRS, 0, NotSerialized)
                {
                    Return (BUFA)
                }

                Method (_DIS, 0, NotSerialized)
                {
                    Or (PIRA, 0x80, PIRA)
                }

                Method (_CRS, 0, NotSerialized)
                {
                    And (PIRA, 0x0F, Local0)
                    ShiftLeft (One, Local0, IRQV)
                    Return (BUFB)
                }

                Method (_SRS, 1, NotSerialized)
                {
                    CreateWordField (Arg0, One, IRQ1)
                    FindSetRightBit (IRQ1, Local0)
                    Decrement (Local0)
                    Store (Local0, PIRA)
                }
            }

While I only have

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 seem to be missing alot of code! And what about the first entry I seem to be missing too?

Are you sure mormegil?

技術筆記 #35 @mormegil 2009-09-04

That's because those code were there originally in his stock dsdt while yours didn't. Just like mine.

作者修訂 #15 @Snow 2009-09-04 ↳ Re: @mormegil

這方面我就交給 Mormegil 大顯身手啦哈哈,他對這套機制的理解比我深得多。

不過請教一下 Mormy,既然你提到我原本那份預先修補過的 DSDT 已經包含很多額外代碼,那我寫的教學對其他人還有參考價值嗎?他們只需要替換那整個段落對吧?還是不同底板之間會有差異?

@Gurru,師兄請直接替換整個代碼區段。至於你缺少的第一段代碼我就不太確定了,如果沒有對應的 Device ID 可能會無法生效。

回頭見!

技術筆記 #36 @mormegil 2009-09-04

If you can see the ports in SysProf and still no sound, then your configdata is correct but your pathmaps are not right. You might have a different variant of the same codec. Are you on a laptop? You sure your codec is 889a (885 address 3)?

技術筆記 #37 @mormegil 2009-09-04

It's fine since you're showing before and after injecting the code. It just shows the important fact that dsdt is system specific and just blindly adding code into it will result in compilation errors etc.

技術筆記 #38 @Gurruwiwi 2009-09-04

Yup, check it out.

First I'll try mormegil's compile with patched AppleHDA.

For learning sake, I tried to copy Snow's entry code, but I cant recompile no matter what

I am sure its a .dsl file, it outputs one error, says done, but no aml to be found. Lust be missing something... back to testing

off to try plist into vanilla HDA

技術筆記 #39 @Gurruwiwi 2009-09-04

Yep, laptop here,

I did follow Snow's tutorial in the first page, if I patch vanilla AppleHDA, I loose system profiler devices.

Just tripled checked with google, and linux folk normally take no prisoners...

laps pecs.com/wiki/acer+aspire+6935g#sound

Sound

Sound Controller Realtek ALC889A High Definition Audio
Speakers 2 plus Subwoofer
Internal Microphone Yes
Headphone Port Yes
Microphone Port Yes
Line In Port Yes
S/PDIF In Port No
S/PDIF Out Port Yes, shared with headphone out

I wished there were karma point in this forum, you guys certainly deserve it!

技術筆記 #40 @mormegil 2009-09-04

Think I know what's wrong. Just checked the plists I made for Snow and the legacy kexts. Turns out they are for different codecs! Both are 889a but the former is address 3 and the latter is address 2. You need to be certain first which of the two is yours. I've made 2 sets now.

SL 889a 1.7.4 AppleHDA plists:

技術筆記 #41 @Gurruwiwi 2009-09-04

Dudes!

Just found out more relevant info.

Check this out...

patched with address 3, no verbose message, system profiler looses ports.

patched with address 2, assertion "0" errors in boot, sys profiler shows 1 digital port

Then I saw that the plist mormegil provided had different icons. One is plain white, the other has image. I open the ones that have image with text edit, select save as, name in info.plist and UNCHECK the box that says "If no extension is provided name .txt"

Now this makes a blanc icon plist. I checked, and before it was not .txt, but icon different.

Re-patch address 3 plists, repair, reboot, first boot KP with AppleHDA dependancies, second boot assertion "0", no sound but system profiler does show all ports! This is the first non-vanilla kext that does this! Well done.

Still no sound, but one step closer!

技術筆記 #42 @mormegil 2009-09-04

Since you're on a lappy, the only way to properly write your own plists is to create your own codec dump in linux or find one on the internet. Try searching acer laptop forums for example.

The thing is, all the codec dumps we've been using are those for desktop models. Which means 4 analog outs, 2 analog ins at the back and possibly digital ins/outs too. Plus internal ports for connecting to the front connector. Your laptop definitely do not have all these ports and so your layout/pathmaps might be different. So which set is showing all ports correctly in Sys Prof?

技術筆記 #43 @Gurruwiwi 2009-09-04

What if a port shares 2 connection?

I'll look for my codec dump.

UPDATE: I found this, possible codec dump. The susbsytem is 0x10250146 which maches what my system profiler Device ID number.

its for the same chip, and from a close acer model to mine. Is this the sort of thing you need? never seen a codec dump before. I'll keep searching for my exact dump, it must be around.

Tried posting code, too long. here is the link.

74.125.39.104/search?q=cache:VoaIl_R4ekkJ:pastebin.ca/raw/1027475+Vendor+Id:+0x10ec0889+Subsystem+Id:+0x10250146&hl=de&ct=clnk&cd=1

技術筆記 #44 @Gurruwiwi 2009-09-04

Ok, I think this might do it.

A codec dump for acer 6920g -
00:1b.0 0403: 8086:284b (rev 03)

and has the same DeviceID / sybsystem as me.

Mormegil, up for some more of your black magic? :

And if you show me how, I'll be glad to take it from there... but this one HAS to work damn it ! The specs are almost identical to my model !

技術筆記 #45 @mormegil 2009-09-04

If you're certain it matches yours, just go through King's guide. He'll guide you step by step. You will understand things more clearly by reading it.

技術筆記 #46 @Gurruwiwi 2009-09-04

forgot to upload dump...

I'm at work now, so I'll only be able to try later on.

技術筆記 #47 @mormegil 2009-09-04

Ahh! You have a true 889 codec as opposed to the fake 889 (renamed 885). All the above plists are useless for you then. Also, your pinconfig are different as I expected and you might have to hex edit your binary.

技術筆記 #48 @mormegil 2009-09-04

Try this out

SL 1.7.4 AppleHDA.kext for acer 6920g alc889:

技術筆記 #49 @Gurruwiwi 2009-09-04

Back to no Audio devices listed.

So far, only vanilla AppleHDA and patched with the first two plist you did for Snow (which I guess are the one he updated the first post with) wake up the ports...

isnt this just frustrating

技術筆記 #50 @mormegil 2009-09-04

Sorry. Nothing much I can do if I don't have your actual codec dump. Will be much easier if we put the guessing out of the picture.

技術筆記 #51 @Gurruwiwi 2009-09-04

aaaarggg...

tried dumping with voodoohdahelper..

got "dylib" error, which I know I fixed before, fixed it again, ran the dump again, no dylib errors but still

error: IORegistryEntryGetPath returned 0x10000003

I cant find my wifiway linux distro anywhere, so back to google for now...

Why wont voodoo work for me ?

EDIT: Hey ! I found a cool little app that assists in extracting and patching DSDT, containing LOADS of fixes... check it out

osx 86.es/?p=610

english below spanish section

技術筆記 #52 @mormegil 2009-09-04

Try this:

AppleHDA.kext/Contents/PlugIns/AppleHDAHardwareConfigDriver.kext/Contents/Info.plist/IOKitPersonalities/HDA Hardware Config Resource/HDAConfigDefault/10/ConfigData

Change ALL the first HEX value to 3. For example 21871C40 to 31871C40.

If that doesnt work, try 0. For example 21871C40 to 01871C40.

技術筆記 #53 @Gurruwiwi 2009-09-04

I certainly will !

But I just tried that app and copied in the HDEF fix, and for the first time EVER I managed to compile a DSDT.aml, zero errors ! (first mpart exactly like you did, second with the missing code that Snow has and I dont that I "complained" about before")

Look what turned up.

Let me just reboot back with vanilla then Voodoo...

技術筆記 #54 @Gurruwiwi 2009-09-04

New dsdt with both your address 2 and 3 patch bring back "your dsdt" mappings, except audio ID read 889 not 12.

What do you say, keep trying this new dsdt or the one you made?

going to attempt your latest suggestions on your address 2 patched kext...

技術筆記 #55 @Gurruwiwi 2009-09-04

Mormegil, sorry, got confused. trying to follow your path... after info.plist, I open with text edit and only find

<key>CFBundleVersion</key>
	<string>1.7.4a1</string>
	<key>IOKitPersonalities</key>
	<dict>
		<key>HDA Platform Resource</key>
		<dict>
			<key>CFBundleIdentifier</key>
			<string>com.apple.driver.AppleHDAPlatformDriver</string>
			<key>CommonPeripheralDSP</key>
			<array>
				<dict>

Slighty confused, because I cannot find the rest you mention

技術筆記 #56 @mormegil 2009-09-04

Sorry. I've fixed the path. And use my dsdt pls. The one you created is useless. I know it shows up all nice in Sys Prof but you're basically telling it what to show on the screen. I doubt you really have all that ports on your laptop. Showing up in Sound Preferences is all that matters.

ps. that dsdt app is bloody awesome!

技術筆記 #57 @vladrxpx 2009-09-05

thnx for the guide !

one question..
I've made a mistake and installed VoodooHDA kext.. sound wokrs..but, microphone doesn't.. being its a beta version of the kext..

is there a way to delete this kext, and do it all over again? (setting up audio) and how do i remove already installed kext ?

thnx !

技術筆記 #58 @Gurruwiwi 2009-09-05

Delete the kext from folder, then go to spotlight and write "disk utility", choose system drive and click Repair Permissions.

技術筆記 #59 @CyCLoBoT 2009-09-05

I followed the steps on Page 1 but I noticed that I have more sound coming out of one speaker than the other. I only have 2 speakers an a subwoofer. Does that sound normal or am I doing something wrong with getting the ALC889a to work?

技術筆記 #60 @Gurruwiwi 2009-09-05

Morm,

Tried both with 3 and 0... just to double check, mind taking a look if I did it right?

back no audio devices listed is system profiler.

because your path still confuses me (yep, read your PM). You seen, inside the plist, ther is no "/HDAConfigDefault/10/ConfigData"

take a look... I went and changed all hex to start with zero in this one, all the way to the bottom.

I noticed some had minus signs before them, this one doesnt becaus I just did it to show you, I replaced S/L/E with vanilla so I had to do it again quick to show you

This is the "0" one

string>????</string>
	<key>CFBundleVersion</key>
	<string>1.7.4a1</string>
	<key>IOKitPersonalities</key>
	<dict>
		<key>HDA Hardware Config Resource</key>
		<dict>
			<key>CFBundleIdentifier</key>
			<string>com.apple.driver.AppleHDAHardwareConfigDriver</string>
			<key>HDAConfigDefault</key>
			<array>
				<dict>
					<key>AFGLowPowerState</key>
					<data>
					AwAAAA==
					</data>
					<key>CodecID</key>
					<integer>083904133</integer>
					<key>ConfigData</key>
					<data>
					AYccQAGHHXABhx4hAYcfAQGnHDABpx0BAace
					EwGnH5ABlxwQAZcdMQGXHoEBlx8BAVccUAFX
					HUEBVx4BAVcfAQH3HCAB9x3hAfcexQH3HwEB
					5xxgAecd4QHnHkUB5x8BAUcc8AFHHQABRx4A
					AUcfQAFnHPABZx0AAWceAAFnH0ABdxzwAXcd
					AAF3HgABdx9AAbcc8AG3HQABtx4AAbcfQAHH
					HPABxx0AAcceAAHHH0AB1xzwAdcdAAHXHgAB
					1x9A
					</data>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>0</integer>
				</dict>
				<dict>
					<key>CodecID</key>
					<integer>0206496384</integer>
					<key>ConfigData</key>
					<data>
					ALccQAC3HXAAtx4hALcfAQDHHDAAxx0BAMce
					EwDHH5AA9xwQAPcdMAD3HoEA9x8BAKccUACn
					HUAApx4BAKcfAQEXHCABFx3gARcexQEXHwEB
					BxxgAQcd4AEHHkUBBx8BANccDwDXHQAA1x4A
					ANcfQADnHA8A5x0AAOceAADnH0ABVxwPAVcd
					AAFXHgABVx9AAbccDwG3HQABtx4AAbcfQA==
					</data>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>0</integer>
				</dict>
				<dict>
					<key>Codec</key>
					<string>Cirrus Logic CS4206</string>
					<key>CodecID</key>
					<integer>069697542</integer>
					<key>ConfigData</key>
					<data>
					ABcgAAAXIQAAFyJrABcjEACXHFAAlx1wAJce
					IQCXHwEApxxBAKcdYQCnHhAApx+QALccQAC3
					HWEAtx4QALcfkADHHCAAxx0BAMcegQDHH5EA
					1xwQANcdAQDXHqAA1x+QAOcc8ADnHQAA5x4A
					AOcfQAD3HDAA9x0BAPcexQD3HwEBBxxgAQcd
					AQEHHkUBBx8BAScc8AEnHQABJx4AAScfQAFX
					HPABVx0AAVceAAFXH0A=
					</data>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>0</integer>
				</dict>
				<dict>
					<key>Codec</key>
					<string>Wolfson WM8800</string>
					<key>CodecID</key>
					<integer>051708928</integer>
					<key>ConfigData</key>
					<data>
					ABcgAAAXIQAAFyIAABcjAAEXHFABFx1AARce
					KwEXHwEBJxxAAScdAQEnHhABJx+QATccQQE3
					HQEBNx4QATcfkADXHBAA1x0BANceoADXH5AA
					xxwgAMcdMADHHosAxx8BAPccYAD3HeAA9x5L
					APcfAQEHHDABBx3gAQceywEHHwEA5xzwAOcd
					AADnHgAA5x9AAWcc8AFnHQABZx4AAWcfQA==
					</data>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>0</integer>
				</dict>
				<dict>
					<key>CodecID</key>
					<integer>0088470912</integer>
					<key>ConfigData</key>
					<data>
					AKccUACnHUAApx4rAKcfAQC3HBAAtx0BALce
					oAC3H5AAxxxAAMcdAQDHHhAAxx+QANcc8ADX
					HQAA1x4AANcfQADnHPAA5x0AAOceAADnH0AA
					9xwgAPcdMAD3HosA9x8BAQccYAEHHeABBx5L
					AQcfAQEXHDABFx3gARceywEXHwEBVxzwAVcd
					AAFXHgABVx9AAbcc8AG3HQABtx4AAbcfQA==
					</data>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>2</integer>
				</dict>
				<dict>
					<key>CodecID</key>
					<integer>0088470912</integer>
					<key>ConfigData</key>
					<data>
					AKccUACnHUAApx4rAKcfAQC3HBAAtx0BALce
					oAC3H5AAxxxAAMcdAQDHHhAAxx+QANccQQDX
					HQEA1x4QANcfkADnHPAA5x0AAOceAADnH0AA
					9xwgAPcdMAD3HosA9x8BAQccYAEHHeABBx5L
					AQcfAQEXHDABFx3gARceywEXHwEBVxzwAVcd
					AAFXHgABVx9AAbcc8AG3HQABtx4AAbcfQA==
					</data>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>4</integer>
				</dict>
				<dict>
					<key>CodecID</key>
					<integer>0088470912</integer>
					<key>ConfigData</key>
					<data>
					AKccQACnHUAApx4rAKcfAQC3HBAAtx0BALce
					oAC3H5AAxxwwAMcdAQDHHhAAxx+QANcc8ADX
					HQAA1x4AANcfQADnHPAA5x0AAOceAADnH0AA
					9xwgAPcdMAD3HosA9x8BAQccUAEHHeABBx5L
					AQcfAQEXHPABFx0AARceAAEXH0ABVxzwAVcd
					AAFXHgABVx9AAbcc8AG3HQABtx4AAbcfQA==
					</data>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>6</integer>
				</dict>
				<dict>
					<key>CodecID</key>
					<integer>0088470912</integer>
					<key>ConfigData</key>
					<data>
					AKccQACnHUAApx4rAKcfAQC3HBAAtx0BALce
					oAC3H5AAxxwwAMcdAQDHHhAAxx+QANcc8ADX
					HQAA1x4AANcfQADnHPAA5x0AAOceAADnH0AA
					9xwgAPcdMAD3HosA9x8BAQccUAEHHeABBx5L
					AQcfAQEXHPABFx0AARceAAEXH0ABVxzwAVcd
					AAFXHgABVx9AAbcc8AG3HQABtx4AAbcfQA==
					</data>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>7</integer>
				</dict>
				<dict>
					<key>CodecID</key>
					<integer>-0088470912</integer>
					<key>ConfigData</key>
					<data>
					AKccQACnHUAApx4rAKcfAQC3HPAAtx0AALce
					AAC3H0AAxxwwAMcdAQDHHhAAxx+QANcc8ADX
					HQAA1x4AANcfQADnHPAA5x0AAOceAADnH0AA
					9xwQAPcdMAD3HosA9x8BAQccUAEHHeABBx5L
					AQcfAQEXHCABFx3gARceywEXHwEBVxzwAVcd
					AAFXHgABVx9AAbcc8AG3HQABtx4AAbcfQA==
					</data>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>8</integer>
				</dict>
				<dict>
					<key>CodecID</key>
					<integer>-0088470912</integer>
					<key>ConfigData</key>
					<data>
					AKccUACnHUAApx4rAKcfAQC3HBAAtx0BALce
					oAC3H5AAxxxAAMcdAQDHHhAAxx+QANccQQDX
					HQEA1x4QANcfkADnHPAA5x0AAOceAADnH0AA
					9xwgAPcdMAD3HosA9x8BAQccYAEHHeABBx5L
					AQcfAQEXHDABFx3gARceywEXHwEBVxzwAVcd
					AAFXHgABVx9AAbcc8AG3HQABtx4AAbcfQA==
					</data>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>10</integer>
				</dict>
				<dict>
					<key>CodecID</key>
					<integer>083904133</integer>
					<key>ConfigData</key>
					<data>
					AZcdMAH3HeE=
					</data>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>12</integer>
				</dict>
				<dict>
					<key>CodecID</key>
					<integer>-0088470912</integer>
					<key>ConfigData</key>
					<data>
					AKccUACnHUAApx4rAKcfAQC3HBAAtx0BALce
					oAC3H5AAxxxAAMcdAQDHHhAAxx+QANcc8ADX
					HQAA1x4AANcfQADnHPAA5x0AAOceAADnH0AA
					9xwgAPcdMAD3HosA9x8BAQccYAEHHeABBx5L
					AQcfAQEXHDABFx3gARceywEXHwEBVxzwAVcd
					AAFXHgABVx9AAbcc8AG3HQABtx4AAbcfQA==
					</data>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>14</integer>
				</dict>
				<dict>
					<key>CodecID</key>
					<integer>-0088470912</integer>
					<key>ConfigData</key>
					<data>
					AKccUACnHUAApx4rAKcfAQC3HBAAtx0BALce
					oAC3H5AAxxxAAMcdAQDHHhAAxx+QANcc8ADX
					HQAA1x4AANcfQADnHPAA5x0AAOceAADnH0AA
					9xwgAPcdMAD3HosA9x8BAQccYAEHHeABBx5L
					AQcfAQEXHDABFx3gARceywEXHwEBVxzwAVcd
					AAFXHgABVx9AAbcc8AG3HQABtx4AAbcfQA==
					</data>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>15</integer>
				</dict>
				<dict>
					<key>CodecID</key>
					<integer>083904133</integer>
					<key>ConfigData</key>
					<data>
					AUcc8AFHHQABRx4AAUcfQAFXHDABVx1AAVce
					AAFXHwEBZxzwAWcdAAFnHgABZx9AAXcc8AF3
					HQABdx4AAXcfQAGHHBABhx1AAYceIAGHHwEB
					lxwgAZcdMAGXHoABlx8BAaccUAGnHQEBpx4Q
					AacfkAG3HPABtx0AAbceAAG3H0ABxxzwAccd
					AAHHHgABxx9AAdcc8AHXHQAB1x4AAdcfQAHn
					HHAB5x3gAeceRQHnHwEB9xxgAfcd4AH3HsUB
					9x8B
					</data>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>36</integer>
				</dict>
				<dict>
					<key>CodecID</key>
					<integer>083904133</integer>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>63</integer>
					<key>MikeyAFGLowPowerState</key>
					<data>
					AQAAAA==
					</data>
				</dict>
				<dict>
					<key>CodecID</key>
					<integer>083904133</integer>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>64</integer>
					<key>MikeyAFGLowPowerState</key>
					<data>
					AQAAAA==
					</data>
				</dict>
				<dict>
					<key>CodecID</key>
					<integer>069697542</integer>
					<key>ConfigData</key>
					<data>
					AMcdMA==
					</data>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>77</integer>
				</dict>
				<dict>
					<key>AFGLowPowerState</key>
					<data>
					AwAAAA==
					</data>
					<key>CodecID</key>
					<integer>069697542</integer>
					<key>FuncGroup</key>
					<integer>1</integer>
					<key>LayoutID</key>
					<integer>06392</integer>
				</dict>
			</array>
			<key>IOClass</key>
			<string>AppleHDAHardwareConfigDriver</string>
			<key>IOMatchCategory</key>
			<string>AppleHDAHardwareConfigDriver</string>
			<key>IOProviderClass</key>
			<string>AppleHDAHardwareConfigDriverLoader</string>
			<key>PostConstructionInitialization</key>
			<array>
				<dict>
					<key>CodecID</key>
					<integer>083904133</integer>
					<key>Layouts</key>
					<array>
						<integer>36</integer>
						<integer>38</integer>
						<integer>52</integer>
						<integer>53</integer>
					</array>
					<key>widgets</key>
					<array>
						<dict>
							<key>MicAttributes</key>
							<integer>28</integer>
							<key>MicInfo</key>
							<string>Sampled on rising edge</string>
							<key>NodeID</key>
							<integer>39</integer>
							<key>PinConfigDefault</key>
							<integer>2426405136</integer>
						</dict>
					</array>
				</dict>
				<dict>
					<key>Codec</key>
					<string>Cirrus Logic CS4206</string>
					<key>CodecID</key>
					<integer>069697542</integer>
					<key>Layouts</key>
					<array>
						<integer>0</integer>
					</array>
					<key>widgets</key>
					<array>
						<dict>
							<key>NodeID</key>
							<integer>22</integer>
							<key>PinConfigDefault</key>
							<integer>2073742064</integer>
						</dict>
					</array>
				</dict>
				<dict>
					<key>Codec</key>
					<string>Wolfson WM8800</string>
					<key>CodecID</key>
					<integer>051708928</integer>
					<key>Layouts</key>
					<array>
						<integer>67</integer>
						<integer>73</integer>
					</array>
					<key>widgets</key>
					<array>
						<dict>
							<key>MicInfo</key>
							<string>WM8800 External Microphone Virtual Pin Complex</string>
							<key>NodeID</key>
							<integer>24</integer>
							<key>PinConfigDefault</key>
							<integer>08020848</integer>
						</dict>
					</array>
				</dict>
			</array>
		</dict>
	</dict>
	<key>OSBundleCompatibleVersion</key>
	<string>1.0.0d1</string>
技術筆記 #61 @megavolkan 2009-09-05

Thanks for the guide, i have sound output now but input doesn't work. I can use my mic on leopard on the same input jack (red one) but on snow leo i've tried all ports on the board. None have worked.

My board is GA EP45-DQ6

Is there anyone have a solution for this?

技術筆記 #62 @mormegil 2009-09-05
<dict> <key>CodecID</key> <integer>083904133</integer> <key>ConfigData</key> <data> AZcdMAH3HeE= </data> <key>FuncGroup</key> <integer>1</integer> <key>LayoutID</key> <integer>12</integer> </dict>

You only need to change this part since your layoutid in dsdt is set to 12. All other layouts can be deleted if you want to. Do it to the patched kext I made! Not the vanilla.

And change ConfigData, not CodecID. Use PlistEditPro (cid-8b65993ef55cf014.skydrive.li ve.com/browse.aspx/.Public/OSx86/Snow%20Leopard/Applications%20for%20OSx86%20%7C5aplikacje%7C6?view=details) to edit plists. ConfigData should be in the form 21871C40 21871D90 … Not "AZcdMAH3HeE=" like you see above.

技術筆記 #63 @Gurruwiwi 2009-09-05

AAAAAH !

Got it ! Plist editor is a MUST ! thanks for the tip! Rebooting with "0" them "3"... be right back

技術筆記 #64 @Gurruwiwi 2009-09-05

Sooooooooo close...

MORM !

"3" did nothing but...

"0" DID ! (weird, but...)

During verbose boot it trigger double the errors assertion"0"

I have different port mapping in sys profiler (my system spec precisely!) , but I now have options in system preferences and audio icon displays there is sound!

One unknown mapped output

But there isnt any sound looool ! nothing... I'm x32 now, will try 64, then boot into linux to try to get dump.

You ROCK !

技術筆記 #65 @Gurruwiwi 2009-09-05

:-& F*CK man...

I just rebooted into x64, nothing, back to normal port mapping, no sound.

So I wanted to aggregate device (never done it, wanted to try and see), so I reboot into x32

GONE ! nothing, just like before... nothing in system preferences...

What is going on?

技術筆記 #66 @mormegil 2009-09-05

Ah finally it worked I had to manually do your ConfigData from scratch using the codec dump you linked. Glad I did everything right. All ports properly mapped and all.

Booting into x64 has nothing to do with dsdt or applehda.

and btw, the unknown output might be your HDMI audio

技術筆記 #67 @Gurruwiwi 2009-09-05

Right, but I have NO SOUND !

Plus, I went into a linux live CD, got the dumps, reboot x32 and now the mapping is again different showing only digital out, and again nothing in system prefenrences.

anyways, here is the dump.

used

cat /proc/asound/card0/codec#2 > ~/Desktop/code_dump2.txt

because codec 1 brought back only

Codec: LSI ID 1040
Address: 1
Vendor Id: 0x11c11040
Subsystem Id: 0x10250146
Revision Id: 0x100200
Modem Function Group: 0x1
技術筆記 #68 @mormegil 2009-09-05

You've got it once. I take it the problem is solved. Just retrace your steps.

That's only the hdmi portion btw. Try codec0.

技術筆記 #69 @Gurruwiwi 2009-09-05

Man, I did nothing except normal reboot ...

I go get the codecs

技術筆記 #70 @ajacocks 2009-09-06

Just like others here, I'm trying to fix a silent 10.6 machine. My machine is a Clevo M570RU-U, with an ICH8M, and a Realtek 883 codec. I've been through TheKing's procedure to create a patched AppleHDA.kext, adapted to Snow Leopard with the excellent information in this thread. The machine runs 10.6 32bit, since I need functional VMware Fusion.

I tried the easy solution of VoodooHDA.kext, but that does nothing for me, and 'voodoohelper -dump' returns the 'error: IORegistryEntryGetPath returned 0x10000003' error that indicates that Voodoo HDA found no devices functional.

My issue is that I don't see any audio devices, in System Profiler, and, of course, there are no input or output devices available under System Preferences/Sound. This machine never ran 10.5, so I don't have exiting functional codecs to work from.

I am attaching the source for my dsdt.aml, and all the items that were necessary to follow TheKing's document, and the resultant Info.plist files. I'm also attaching the codec dumps. Last, I'm attaching a screen capture from my System Profiler, Audio section.

If anyone has time, and is willing to take a look, it would be greatly appreciated.

作者修訂 #16 @Snow 2009-09-06 ↳ Re: @ajacocks

正如教學標題所示,這套方法專為 ALC889a 而設,而且就算是 889a 也有些用家遇到問題,所以目前我恐怕幫不了你。
至於虛擬機方面,我在 64-bit Snow Leopard 下使用 Parallels Desktop 5 執行 64-bit Windows 7 完全沒有問題(除了 Aero 特效偶爾會自己無故開關之外)。
我已經用 ConvertXtoDVD 轉了兩部影片(這正是我需要 VM 的原因),輸出結果非常完美。

我可以幫你瞄一下你的檔案,但不敢保證什麼(我也是半桶水)。

在 64-bit Snow Leopard 下以 Parallels 5 執行 64-bit Windows 7

技術筆記 #71 @mormegil 2009-09-06 ↳ Re: @Gurruwiwi
@GurruwiwiMan, I did nothing except normal reboot ... I go get the codecs

The prob might be with codec address (the leading hex that I asked you to change). One time it works with 3 and next it works with 0. Try this:

/* Sample */ "ConfigData", Buffer (0xA0) { /* 0000 */ 0x21, 0x87, 0x1c, 0x40, 0x21, 0x87, 0x1d, 0x90, /* 0008 */ 0x21, 0x87, 0x1e, 0xA1, 0x21, 0x87, 0x1f, 0x01, /* 0010 */ 0x21, 0x97, 0x1c, 0x50, 0x21, 0x97, 0x1d, 0x90, /* 0018 */ 0x21, 0x97, 0x1e, 0xA1, 0x21, 0x97, 0x1f, 0x02, /* 0020 */ 0x21, 0xa7, 0x1c, 0x60, 0x21, 0xa7, 0x1d,…

Insert it in your dsdt above "layout-id". It's for my codec (alc888). You'll have to convert your "ConfigData" in plist into it. Just separate them into bytes and add "0x" in front.

Example: 21871c40 -> 0x21, 0x87, 0x1c, 0x40

Also

Buffer (0xA0)

needs to be changed. Mine has a total of 160 bytes if you count above. So 160 (decimal) = A0 (hex)

Lastly

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

Increase the size "0x08" if you're getting compile error.

What this does is hopefully set your codec address in dsdt so it stays fixed. Try codec address 0 thru 3 and report back.

技術筆記 #72 @mormegil 2009-09-06

@: ajacocks

Why are your kexts empty?

Your codec 10ec0883 is not natively supported. You'll have to patch the AppleHDA binary. You want to replace a supported codec such as 10ec0885 (alc885,889a).

So open up the AppleHDA binary in AppleHDA.kext/Contents/MacOS with hex edit.

Search for "8508ec10" (byte-flip of "10ec0885") and replace with "8308ec10" (byte-flip of "10ec0883").
There should be 4 instances in the SL kext.

技術筆記 #73 @Gurruwiwi 2009-09-06

Holy sh...

Ok, off to work on that right now!

EDIT: LOL.. morm, I just booted into SL to start editing DSDT again, did nothing at all except pop in the SL HDD, no sound, but audio is fully mapped, and present in system preferences, active audio icon in taskbar !

Tried playing around with agg.devices... no sound. Seems the built in audio's master volume is completely down and greyed out.

Going to try to edit that hex in, hope I do it right...

技術筆記 #74 @mormegil 2009-09-06

If they are in sound pref then there should be sound! Have you tried plugging a headphone or mic to test? Internal speakers might be too soft to hear.

edit: My master volume in aggregate device is also greyed out for every port. Doesn't really matter.

技術筆記 #75 @Gurruwiwi 2009-09-06

Quick question. Do I just copy the one you pasted into my dsdt then modify ConfigData to match it, or the other way around?

技術筆記 #76 @ajacocks 2009-09-06

mormegil,

Ahhh...thanks for filling me in, about the codec. Is there nothing else that needs doing, to patch the codec, other than changing the identifier from 10ec0885 to 10ec0883? That seems very simple. I'll give that a shot, though, and see what happens.

EDIT: No luck with the edited codec, either. I think something's wrong with my DSDT.aml, though, since the System Profiler still shows no device information, as in that picture that I uploaded. Do you see anything that I missed?

My kexts aren't really empty, I just left out everything but the Info.plist files, to save space in the upload. I have uploaded my entire AppleHDA.kext file, attached to this post. How do my changes look? I used layout 12, as the guide suggested.

技術筆記 #77 @mormegil 2009-09-06

@ Gurruwiwi

Doesn't matter. As long as it appears as above but with your configdata instead.

@ ajacocks

You seem to be doing fine with King's guide. I see all the required files in your attached package.
Once you're done patching the binary, you'll have to fix the plists. Your codec id in decimal should be changed to 283904131.
Your dsdt is fine. All it does is inject your audio. As long as you see an audio device in Sys Profiler it's all good.

Edit: I just saw the pic u uploaded. It's supposed to be that way if you haven't got the working plists.

技術筆記 #78 @Gurruwiwi 2009-09-06

Morm, while I was waiting I ran a small test. I think it can be useful for others to know, to not judge a KP on its own.

I cyclically rebooted in verbose, changing nothing. There is a sort of a pattern.

First reboot from "mapped - sound- but no audio heard" status

- KP
- 1x set of "Assertion "0"" errors during boot - no mapping
- 1x set of "Assertion "0"" errors during boot - no mapping
- 2x set of "Assertion "0"" errors during boot - mapping - audio shown - no sound
- 1x set of "Assertion "0"" errors during boot - no mapping
- 1x set of "Assertion "0"" errors during boot - no mapping
- KP
- 1x set of "Assertion "0"" errors during boot - no mapping
- 1x set of "Assertion "0"" errors during boot - no mapping
- KP
- 1x set of "Assertion "0"" errors during boot - no mapping
- 2x set of "Assertion "0"" errors during boot - mapping - audio shown - no sound
- KP
- 1x set of "Assertion "0"" errors during boot - no mapping
- 2x set of "Assertion "0"" errors during boot - mapping - audio shown - no sound
- 1x set of "Assertion "0"" errors during boot - no mapping
- 2x set of "Assertion "0"" errors during boot - mapping - audio shown - no sound
- 1x set of "Assertion "0"" errors during boot - no mapping
- 2x set of "Assertion "0"" errors during boot - mapping - audio shown - no sound

Seems something is being re-set... could it be a similar CMOS reset bug?

Going to try the DSDT and ConfigData, just waiting for your input as it looks like a hell of a lot of work...

EDIT: You posted while I was typing. Going to try it now.

Forgot to mention. When audio is mapped, I tried plugging in headphones and microfphone. Mic does nothing, but headphone makes system profiler hang. It does seem to try switching devices, but nothing happens. Beach ball spins round, OS stops responding, have to force quit profiler, but it struggles to do it. Once removed it manages to force quit, and OS response is back

技術筆記 #79 @ajacocks 2009-09-06

OK, I made all the changes, mormegil, to AppleHDA.kext, including replacing 8508ec10 with 8308ec10. However, I still have no sound.

I noticed something interesting in my system.log, though:

9/6/09 11:11:55 AM com.apple.kextd[10] Can't load /System/Library/Extensions/AppleHDA.kext - no code for running kernel's architecture.
9/6/09 11:11:55 AM com.apple.kextd[10] Failed to load /System/Library/Extensions/AppleHDA.kext - (libkern/kext) requested architecture/executable not found.
9/6/09 11:11:55 AM com.apple.kextd[10] Load com.apple.driver.AppleHDA failed; removing personalities.

That's rather odd. I never changed any executables in the .kext file. Any idea what's going on, here? I'm running 32bit 10.6.

EDIT: I replaced AppleHDA.kext from my 10.6 install DVD, and that error went away. The failed sound assertions are back, of course, since this is a stock kext. I'm going to try putting the Info.plist files back, first, then hex editing the AppleHDA file, to see which broke it.

技術筆記 #80 @mormegil 2009-09-06

That applehda.kext you posted earlier. Is that patched or not? and why do you have info.plist in root of AppleHDAHardwareConfigDriver.kext/AppleHDAPlatformDriver.kext? It shdn't be there. Should be under Contents.

技術筆記 #81 @Gurruwiwi 2009-09-06

Ok

got my configdata to text pad, then copied to dsdt format, had to add 4 lines from your quote above, so I just followed the line numbering. Could that imply I need a higher hex "buffer" values, if mine is 4 lines longer its not going to be 160byte. How to calculate this and transform to hex value?

Mind taking a look to see if I did it right? Plus, when you say "above layout-id", you did mean after right?

Tried recompiling, got 27 errors!

Device (HDEF)
            {
                Name (_ADR, 0x001B0000)
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x08)
                        {
                            "layout-id", 
                            Buffer (0xA0)
{
/* 0000 */ 0x01, 0x87, 0x1c, 0x40, 0x01, 0x87, 0x1d, 0x90, 
/* 0008 */ 0x01, 0x87, 0x1e, 0xA1, 0x01, 0x87, 0x1f, 0x02,
/* 0010 */ 0x01, 0x97, 0x1c, 0x50, 0x01, 0x97, 0x1d, 0x11,
/* 0018 */ 0x01, 0x97, 0x1e, 0x11, 0x01, 0x97, 0x1f, 0x41,
/* 0020 */ 0x01, 0xa7, 0x1c, 0x60, 0x01, 0xa7, 0x1d, 0x30,
/* 0028 */ 0x01, 0xa7, 0x1e, 0x81, 0x01, 0xa7, 0x1f, 0x02,
/* 0030 */ 0x01, 0xb7, 0x1c, 0x70, 0x01, 0xb7, 0x1d, 0x11,
/* 0038 */ 0x01, 0xb7, 0x1e, 0x11, 0x01, 0xb7, 0x1f, 0x41,
/* 0040 */ 0x01, 0x47, 0x1c, 0x10, 0x01, 0x47, 0x1d, 0x01,
/* 0048 */ 0x01, 0x47, 0x1e, 0x13, 0x01, 0x47, 0x1f, 0x99,
/* 0050 */ 0x01, 0x57, 0x1c, 0x20, 0x01, 0x57, 0x1d, 0x10,
/* 0058 */ 0x01, 0x57, 0x1e, 0x21, 0x01, 0x57, 0x1f, 0x02,
/* 0060 */ 0x01, 0x67, 0x1c, 0x30, 0x01, 0x67, 0x1d, 0x11, 
/* 0068 */ 0x01, 0x67, 0x1e, 0x11, 0x01, 0x67, 0x1f, 0x41, 
/* 0070 */ 0x01, 0x77, 0x1c, 0x80, 0x01, 0x77, 0x1d, 0x11, 
/* 0078 */ 0x01, 0x77, 0x1e, 0x11, 0x01, 0x77, 0x1f, 0x41, 
/* 0080 */ 0x01, 0xe7, 0x1c, 0x90, 0x01, 0xe7, 0x1d, 0x11,
/* 0088 */ 0x01, 0xe7, 0x1e, 0x45, 0x01, 0xe7, 0x1f, 0x02,
/* 0090 */ 0x01, 0xf7, 0x1c, 0xa0, 0x01, 0xf7, 0x1d, 0x11,
/* 0098 */ 0x01, 0xf7, 0x1e, 0x11, 0x01, 0xf7, 0x1f, 0x41,
/* 0100 */ 0x01, 0x27, 0x1c, 0xb0, 0x01, 0x27, 0x1d, 0x01, 
/* 0108 */ 0x01, 0x27, 0x1e, 0xA3, 0x01, 0x27, 0x1f, 0x99,
/* 0110 */ 0x01, 0x17, 0x1c, 0xc0, 0x01, 0x17, 0x1d, 0x11,
/* 0118 */ 0x01, 0x17, 0x1e, 0x56, 0x01, 0x17, 0x1f, 0x18
},
                            {
                                0x0C, 0x00, 0x00, 0x00
                            }, 

                            "PinConfigurations", 
                            Buffer (Zero) {}
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
技術筆記 #82 @ajacocks 2009-09-06

Mormegil,

Thanks for taking so much time to help me.

I went back, and fixed the locations of the Info.plist files, and re-hexedited the AppleHDA file. I now get the AppleHDA.kext to load, but I get the following exceptions in my system.log:

9/6/09 11:42:27 AM kernel Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
9/6/09 11:42:27 AM kernel Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit

I'll update this post, in a second, with the Info.plist files replaced with the ones that you sent me. What did you change?

Attached is the appleHDA.kext that caused those assertions to fail.

技術筆記 #83 @mormegil 2009-09-06

@ Gurru

Read again what I wrote. What you have done is completely replace your layoutid with your configdata. I said copy the WHOLE code into your dsdt. Not replace stuff. Wheres the "ConfigData" header?

Looks like I have to do everything for you then:

Device (HDEF) { Name (_ADR, 0x001B0000) Method (_DSM, 4, NotSerialized) { Store (Package (0x0B) { "layout-id", Buffer (0x04) { 0x0C, 0x00, 0x00, 0x00 }, "ConfigData", Buffer (0xC0) { /* 0000 */ 0x01, 0x87, 0x1c, 0x40, 0x01, 0x87, 0x1d, 0x90, /* 0008 */ 0x01, 0x87, 0x1e, 0xA1, 0x01, 0x87, 0x1f, 0x02, /* 0010 */ 0x01, 0x97, 0x1c, 0x50,…
技術筆記 #84 @ajacocks 2009-09-06

Mormegil,

AAH...I see what you mean about the misplaced Info.plist file in AppleHDAPlatform. I must have typoed a replacement, at some point. Anyway, I replaced those Info.plist files with the ones that you sent, and rebooted. I still get those assertion failures.

Attached current AppleHDA.kext file.

技術筆記 #85 @Gurruwiwi 2009-09-06 ↳ Re: @mormegil
@mormegil@ Gurruwiwi Doesn't matter. As long as it appears as above but with your configdata instead.

Morm, please bear with me... this is all brand new territory for me.

I did ask you precisely that, and you replied the quote above!

Ok... so I copy exactly what you pasted into my dsdt
Question: Did I place it right like my example above?

Then do what with configdata? Right now it reads like this; its the "0" mod I made. from yesterday that woke up the right port mapping

01871C40 01871D90 01871EA1 01871F02 01971C50 01971D11 01971E11 01971F41 01A71C60 01A71D30 01A71E81 01A71F02 01B71C70 01B71D11 01B71E11 01B71F41 01471C10 01471D01 01471E13 01471F99 01571C20 01571D10 01571E21 01571F02 01671C30 01671D11 01671E11 01671F41 01771C80 01771D11 01771E11 01771F41 01E71C90 01E71D11 01E71E45 01E71F02 01F71CA0 01F71D11 01F71E11 01F71F41 01271CB0 01271D01 01271EA3 01271F99 01171CC0 01171D11 01171E56 01171F18 

Today is the day man, it has to be! :

And I am learning like hell with you, I dont want you to do everything for me, I'm loving this experience! I'll surely pass this on to the little league, leaving you big boys to plow away into new territory!

技術筆記 #86 @mormegil 2009-09-06

@ajacocks
Is your sound working?

@gurru
have you compiled yet? What configdata? in your plist?

技術筆記 #87 @Gurruwiwi 2009-09-06

Waiting for you input if the example above is correct. You say "place about layout-id" but I think you may have meant "below"

yes, that config data from info.plist inside applehda/AppleHDAHardwareConfigDriver/plist/etc etc

I assume that is the "configdata header" you asked for just now...?

技術筆記 #88 @Gurruwiwi 2009-09-06

Man, you last quote (dsdt correctly pasted by you) right now didnt load ! I only just saw it! Going to compile.

技術筆記 #89 @mormegil 2009-09-06 ↳ Re: @mormegil
@mormegilInsert it in your dsdt above "layout-id". It's for my codec (alc888). You'll have to convert your "ConfigData" in plist into it. Just separate them into bytes and add "0x" in front.

…

技術筆記 #90 @ajacocks 2009-09-06

mormegil,

No, my sound isn't working. I have no input and no output devices listed in the Audio part of System Preferences.

I also get those assertion failures that I pasted in, above, when a sound tries to play.

Thanks so much for continuing to help!

技術筆記 #91 @mormegil 2009-09-06 ↳ Re: @Gurruwiwi
@GurruwiwiWaiting for you input if the example above is correct. You say "place about layout-id" but I think you may have meant "below" yes, that config data from info.plist inside applehda/AppleHDAHardwareConfigDriver/plist/etc etc I assume that is the "configdata header" you asked for just now...?

I meant this:

"ConfigData", Buffer (…

from the code I pasted initially

技術筆記 #92 @mormegil 2009-09-06 ↳ Re: @ajacocks
@ajacocksmormegil, No, my sound isn't working. I have no input and no output devices listed in the Audio part of System Preferences. I also get those assertion failures that I pasted in, above, when a sound tries to play. Thanks so much for continuing to help!

Is the codec dump made by yourself or did you download it? You're on a lappy too yeah?

技術筆記 #93 @Gurruwiwi 2009-09-06 ↳ Re: @mormegil

Yes,... and you pasted BELOW layout-id..

Oh please, lets not make a big deal out of this... You know what you are doing, I dont! I'm just following your lead. I am your dsdt bitch right now

repalced the whole hdef section with what you asked. Does not recompile and produces 47 errors. Here is the log and the dsl file I made, and my "clean" dsdt.dsl

技術筆記 #94 @Gurruwiwi 2009-09-06

You'll be as famous as fassl and netkas man loool... this is a huge deal with many laptop alc889a !

技術筆記 #95 @mormegil 2009-09-06 ↳ Re: @Gurruwiwi
@GurruwiwiYes,... and you pasted BELOW layout-id.. Oh please, lets not make a big deal out of this... You know what you are doing, I dont! I'm just following your lead. I am your dsdt bitch right now repalced the whole hdef section with what you asked. Does not recompile and produces 47 errors. Here is the log and the dsl file I made, and my…

it's fine. no errors. only warnings which can be ignored.

技術筆記 #96 @Gurruwiwi 2009-09-06

But I cant compile, no output aml with iaslme app... tried 3 times

What about my codec dump, didnt you need it? Codec 0 was the right one

技術筆記 #97 @ajacocks 2009-09-06 ↳ Re: @mormegil
@mormegilIs the codec dump made by yourself or did you download it? You're on a lappy too yeah?

Yep, this is a laptop...a 17" desktop replacement. I made the codec dump myself, using a Ubuntu 9.04 x64 livecd, following TheKing's instructions.

技術筆記 #98 @mormegil 2009-09-06 ↳ Re: @ajacocks
@ajacocksYep, this is a laptop...a 17" desktop replacement. I made the codec dump myself, using a Ubuntu 9.04 x64 livecd, following TheKing's instructions.

try this set

技術筆記 #99 @ajacocks 2009-09-06

mormegil,

Thanks, but no luck that way, either:

9/6/09 3:09:51 PM kernel Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
9/6/09 3:09:51 PM kernel Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit

I did notice that System Profiler lists the audio device as ID 12. I'm assuming that came from my DSDT, but I hadn't noticed it. (attached picture)

技術筆記 #100 @Gurruwiwi 2009-09-06

You're having similar issues as me, same "goto" lines etc.

Going to try kings tutorial once more, now that I've got my correct codecs, but I always seem to have issues recompiling dsdt... Why wont iaslme let me recompile?

技術筆記 #101 @Gurruwiwi 2009-09-06

Morm,

Following Kings guide, I'm already stuck. Downloaded graphviz and codecgraph, followed everything exactly (not really a big deal) - but when I type in the terminal the "/codecgraph codec_dump.txt" it brings back

Codec: Realtek ALC889
Generating codec_dump.txt.svg
Format: "svg" not recognized. Use one of:
Big-Bang-MacBook-Pro:codecgraph bigbang$

Whats wrong ?

技術筆記 #102 @ajacocks 2009-09-06

Guru,

What version of codecgraph are you using? When I try it, it works fine:

[~/Documents/codec/codecgraph-20090522]
ajacocks@telemachus$ ./codecgraph ~/Documents/codec/CodecDump/card0-codec#0.txt
Codec: Realtek ALC883
Generating card0-codec#0.txt.svg
[~/Documents/codec/codecgraph-20090522]
ajacocks@telemachus$ file card0-codec#0.txt.svg 
card0-codec#0.txt.svg: XML 1.0 document text
[~/Documents/codec/codecgraph-20090522]
ajacocks@telemachus$ ls -l card0-codec#0.txt.svg 
-rw-r--r--  1 ajacocks  staff  114569 Sep  6 16:51 card0-codec#0.txt.svg
技術筆記 #103 @Gurruwiwi 2009-09-06

The one from king's guide, and the only one available in the developer's download page.

Could you do it form me please?

技術筆記 #104 @Gurruwiwi 2009-09-06

Oh man, that was super! On to the next part, windows and voodoohelper dumps

Update: Again... I had forgotten about it. voodoohelper can't dump. Says;

error: IORegistryEntryGetPath returned 0x10000003

:

morm ?

技術筆記 #105 @mormegil 2009-09-06 ↳ Re: @Gurruwiwi
@GurruwiwiOh man, that was super! On to the next part, windows and voodoohelper dumps Update: Again... I had forgotten about it. voodoohelper can't dump. Says; error: IORegistryEntryGetPath returned 0x10000003 : morm ?

I've fixed your dsdt. Dunno if it'll work

技術筆記 #106 @sangmanh 2009-09-06

could you plz re-upload AppleHDA.kext about alc888

sorry to bothering you.

I read the your post about alc888 (this post, #8)
I downloaded attached file, but that file was broken.
It's not extract properly.

so, could you plz re-upload AppleHDA.kext about alc888?

技術筆記 #107 @ajacocks 2009-09-07

Mormegil,

Does the fact that voodoohelper can't dump, for me either, mean anything? I'm not quite sure where else to go from here.

技術筆記 #108 @Gurruwiwi 2009-09-07

So i tried the new dsdt Morm... and it broke my install again. Don't understand why, I deleted the new dsdt, then applehda, the put it back in, tried old dsdt... nothing. KP's mid way from "unkown" process, or gets passed that, and blue/black blinking before desktop. Will have to restore yet again and try again fresh with the new dsdt. Whats up with this ?!?

技術筆記 #109 @mormegil 2009-09-07 ↳ Re: @sangmanh
@sangmanhsorry to bothering you. I read the your post about alc888 (this post, #8) I downloaded attached file, but that file was broken. It's not extract properly. so, could you plz re-upload AppleHDA.kext about alc888?

I tried downloading it and it extracts fine. Try it again.

技術筆記 #110 @mormegil 2009-09-07 ↳ Re: @ajacocks
@ajacocksMormegil, Does the fact that voodoohelper can't dump, for me either, mean anything? I'm not quite sure where else to go from here.

Do you have voodoohda installed all this time? When you're using patched applehda? same goes to gurru

技術筆記 #111 @Gurruwiwi 2009-09-07

Can't remember, but will try it. Install voodoo, repair, reboot and run helper right?

I''ve restored install with new dsdt.

With vanilla, either device ID=0 or no device ID.

With the latest appleHDA address 0, the reboot cycle is the same. Kp, device ID 12 with good mappin (mic, heaphone etc, but not my spec) or just only digital port, then KP etc etc - I never saw my spec mapping though

I'll try address 3 although it did nothing last time.

Morm, I've been trying with patched appleHDA using my previous "generic codec dumped" dsdt right?

Dont I have to patch a new one now that the dsdt comes from my correct linux codec dump?

技術筆記 #112 @ajacocks 2009-09-07 ↳ Re: @mormegil
@mormegilDo you have voodoohda installed all this time? When you're using patched applehda? same goes to gurru

Mormegil,

No, I don't. I just have tried voodoohda, in the past, in the effort to get it to make a dump.

技術筆記 #113 @Gurruwiwi 2009-09-07

I just tried installing 2 or 3 different voodooHDA, and booted in 32 just to be sure (many arent 64bit ready), and voodoohelper still puts out the same error. On the way my card "woke up" like before, but now sound, so it seems the new dsdt does not seem to be a "step back"

I am still puzzled why after a couple of repairs, if I change dsdt, it breaks my install... any theories? lol

Morm, going back to guessing, is AppleHDA that still needs fine tuning for my system?

技術筆記 #114 @mormegil 2009-09-07 ↳ Re: @ajacocks
@ajacocksMormegil, No, I don't. I just have tried voodoohda, in the past, in the effort to get it to make a dump.

K.. I thought it was voodoohda that was ----ing around when you have a patched applehda. Never use them together!

Well, I've seriously run out of ideas why it's not working for you guys. Definitely something weird going on when it comes to laptops.

And Gurru, I suggest you put your restore disk away and get to the root of the problem. You're going nowhere by just restoring your install at the first sign of KP.

技術筆記 #115 @Gurruwiwi 2009-09-07

Morm,

I greatly appreciate your help, I do.

But, though dsdt n00b, I'm certainly not OSX illiterate, on the contrary. Been at this since early Tiger. I know what a KP is and how to handle them, and I am telling you that, possibly exactly because of this weird alc889a behaviour, there is a reset going on that has nothing to do with your dsdt applHDA etc... but it doesnt like dsdt being changed, and when I f*cking need to restore its because I cannot bring the system back up. safe boot too.

What would you do, if suddenly, right after nvdresman blacks out and brings up your desktop, it instead flashed black and blue in 5-10 second interval, having just a little white cursor at the top left, where you can actually type from your keyboard strange characters (that dont match what you type) right into a pitch black screen?

And the reboot cycles, which are far from typical ? either a kext works, or it doesnt, or it KP's... never heard of a kext that did all three !

Even removing all video kexts, removing com.boot.apple.plist strings, removing dsdt, nothing works to bring my system back up.

I have explained this phenomena before, and that is the only reason I have to restore from a CCC image. It takes 7 minutes, fix UUID, and back to action.

And this system is rock solid, except when tampering with audio. I've thrown at it highly intensive tasks (protools fully loaded with plugins with reason rewiring) and it behaves like a charm. HD video, while having Ubuntu and Windows 7 both running, each on their own screen (spaces). I've tested a for 4-5 days periods non-stop and it is rock solid. Oh, and playing Trackmania virtualized in Win 7.

this to my own disbelief, how smooth and stable. 64bit SL is unbelievable!

I have no issues whatsoever to fix, except audio.

The video f*cks up, and nothing brings it back, if there is please tell me.

There is something definitely going on, and I suspect a sort of CMOS rest bug, similar at least.. look at my reboot cycles. My gfx must crash, possibly because of hdmi audio trying to be used or something on one of those resets...?

Plus, I am still using an AppleHDA which you kindly patched, based on generic alc889a info, now that I finally manage to get my very own codec dumps, why cant we make an appleHDA for my system?

We are so close, why would you jump ship now? I mean, this is the place for exactly this, if you dont feel like sharing anymore, that is absolutely fair, this is a time consuming affair, prone to not working until it does. Just say the word, but please dont imply that I am idiot enough to restore at a sign of a simple KP.

技術筆記 #116 @Gurruwiwi 2009-09-07

I went back to vanilla AppleHDA and "erratic" reboot issues happen no more. No ports are being mapped, audio device 12, no KP's, asserrtion"0" errors, and in 15 reboots between 32 and 64... no issues whatsoever.

I would again, guess, a good appleHDA patch for my system might fix this thing.

技術筆記 #117 @terrorgen 2009-09-08 ↳ Re: @mormegil
@mormegilI tried downloading it and it extracts fine. Try it again.

hi m8, i tried downloading it and it doesn't download properly...

if you could, can you please PM me the kexts?

技術筆記 #119 @terrorgen 2009-09-08

referring to the guide, the LayoutID i got from AppleHDAHardwareConfigDriver.kext was 12, but in the plist it was 888. Should I just change it?

技術筆記 #120 @mormegil 2009-09-08

Yes. You should be using layout 12 in your dsdt.

技術筆記 #121 @terrorgen 2009-09-08

I finished editing applehda.kext, put into /E/E of my boot thumb drive, reboot with -x32.

Doesn't work...

技術筆記 #122 @terrorgen 2009-09-08

yes i did...
anyways, I got sound working by installing it into /S/L/E of the SL drive (I use a flash drive to boot SL)
now it's time to make 5.1 working

THANKS for all your hard work!

作者修訂 #17 @Snow 2009-09-08 ↳ Re: @terrorgen

好吧,我看還是把教學撤掉算了,因為似乎沒有人照著做成功過;又或者成功搞定的人都沒有回來留個言。

Morm 你覺得呢?自從我貼出這篇教學之後,你簡直像多了一份全職工作在幫大家擦屁股解決問題。

技術筆記 #123 @mormegil 2009-09-08

Let it run. It covers hdef injection into dsdt which I didn't. Only thing you should change is your dsdt code.

The code starting from Name (BUFA, ResourceTemplate is not part of HDEF. You can delete them, they might cause confusion.

技術筆記 #124 @terrorgen 2009-09-08

mormegil, snow...

I am setting up 5.1 using Audio MIDI Setup, but it only works for a while...
now the volume control is greyed out and when I tried to adjust the volume it says something like the device has no output controls... any ideas?

技術筆記 #125 @mormegil 2009-09-08

It's meant to be that way. You control the individual channel volumes using Audio MIDI setup.

作者修訂 #18 @Snow 2009-09-08 ↳ Re: @mormegil

Mormegilski 說得對!

調整這幾個滑桿即可:

我已經一併補充到首帖教學裡了。

技術筆記 #126 @terrorgen 2009-09-08

man... lost the pleasure to adjust volume from the keyboard...

技術筆記 #127 @ajacocks 2009-09-09

mormegil,

Thanks so much for taking so much time to help me. I'm still not sure what I was doing wrong with the codec patching, but my solution turned out to be voodooHDA 0.2.2 64bit, installed in /System/Library/Extensions, and rebuilding the Extensions.mkext. I'm not sure which of the above did the trick, but one of them did, and my laptop is no longer silent.

For purposes of documentation, I have a Clevo M570RU-U, with an Intel 965 chipset, and a Realtek ALC883 codec.

作者修訂 #19 @Snow 2009-09-09 ↳ Re: @terrorgen
@terrorgen唉……這樣就失去直接用鍵盤調整音量的樂趣了……

確實是這樣!

幸好我用的 Creative T5400 喇叭本身附有實體線控可以調音量和重低音,所以影響不大。

技術筆記 #128 @megavolkan 2009-09-11

I have a microphone. After applying the 5.1 patch sound is ok but i have no sound input. Internal microphone source in sound settings shows "None". I've tried all ports including output ports as well. None working.

I use an EP45-DQ6 board with ALC889a chip.

技術筆記 #129 @Trograin 2009-09-12

Thank you SO MUCH mormegil…

I have been struggling for 4 days to get my sound configured. Been changing my dsdt file over and over even if System Profiler showed me all the channels, just because I couldn't get sound to work with any of the thousands AppleHDA.kext's I have tried. Some of them even messed up my system so badly I couldn't logon anymore, so I have reinstalled it 5 times these last 4 days.

Even if System Profiler showed correct info, no device could be found when trying to configure sound.

I have tried replacing info.plist (both) as of this guide and didn't work. Then I saw on the above link How to port AppleHDA to SL → that it is not just to edit info.plist but also changing some binary with hexedit is needed, hence why it didn't work.

What made my day was actually when I scrolled down this page and saw you had posted your AppleHDA.kext saying "Here's my modified AppleHDA.kext as reference". I downloaded it, used Kext Utility, repaired permissions and rebooted. Never thought anything would fix my sound but when system was booted I suddenly noticed my wonderful lovely little sound icon in the bar had CHANGED

Now... Where do I send you the money?

技術筆記 #130 @hops 2009-09-12 ↳ Re: @mormegil
@mormegilI take back my word. Got full analog 5.1 to work on my onboard alc888! 1. Tweak AppleHDA.kext to detect 3 Line Outputs: Green, Black, Orange. 2. Run Audio Midi Setup 3. Add new Aggregate Device 4. Click on the 3 check boxes corresponding to the 3 Line outs 5. Click on Configure Speakers 6. Select all 3 streams 7. Select Multichannel…

Thank you so much for posting this! I had not been able to get the ALC888 chipset on my Gigabyte GA-965P-DS3 to work under 10.5. All I had to do was drop your kext onto the Kext Utility, reboot, and now I have sound under 64-bit 10.6. Your work is appreciated!

技術筆記 #131 @Cee 2009-09-13 ↳ Re: @mormegil
@mormegilI take back my word. Got full analog 5.1 to work on my onboard alc888! Here's my modified AppleHDA.kext as reference

Can you / or anyone else upload this AppleHDA.kext again ?
I tried to unzip it on 4 machines ( 3 macs , pc ) and all of them failed

作者修訂 #20 @Snow 2009-09-14 ↳ Re: @Cee
@Cee請問樓主或其他師兄能否重新上傳這份 AppleHDA.kext?我試過在 4 台電腦(3 台 Mac、1 台 PC)上解壓縮都失敗。

media fire.com/?f0mmm25zrja

技術筆記 #132 @megavolkan 2009-09-14

Well at least someone tell me how to re-map microphone input to the regular red mic-in port?

作者修訂 #21 @Snow 2009-09-14 ↳ Re: @megavolkan

這方面幫不到你了師兄,我沒有使用麥克風,不好意思。

技術筆記 #133 @Trograin 2009-09-14 ↳ Re: @megavolkan
@megavolkanWell at least someone tell me how to re-map microphone input to the regular red mic-in port?

Got the same problem. Was very happy about finally getting sound to work, but noticed my microphone didn't work. Found a solution just today that it actually works (although I have no idea why this works for my mic, it sounds like it shouldn't), if I plug it in on the other side of green "entry" which is a lightblue I think (not at home atm), then I plug it back into the pink/red for microphone and it works.

I accidentally found it out as I thought I should try to use microphone in all other entries and see if it for some odd reason works (I am no sound guru, those who are probably are laughing at me now as I suppose its impossible ).

However this is not a solution Im happy about, replug the mic to lightblue then back where it should be each time I turn on my comp… Also, this "replugging" for some odd reason messes up the volume, so when I speak it just gets louder and louder until the other person on skype throws his/her headset of

Still searching for the magical solution.

技術筆記 #134 @hops 2009-09-14 ↳ Re: @Cee
@CeeCan you / or anyone else upload this AppleHDA.kext again ? I tried to unzip it on 4 machines ( 3 macs , pc ) and all of them failed

After trying several unzip programs, Stuffit Expander was the one that successfully extracted the kext for me.

技術筆記 #135 @terrorgen 2009-09-14 ↳ Re: @hops
@hopsAfter trying several unzip programs, Stuffit Expander was the one that successfully extracted the kext for me.

the link above works with the default unzip program in Mac

技術筆記 #136 @Trograin 2009-09-14

I got an error in safari after downloaded, saying something about not able to extract Stuffit archive. I too had to install Stuffit. But no big deal, theres a trial

Got microphone working and with reported perfect sound from several people I forced to talk to me through Skype

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

                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x0C)
                        {
                            "codec-id", 
                            Buffer (0x04)
                            {
                                0x88, 0x08, 0xEC, 0x10
                            }, 

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

                            "device-type", 
                            Buffer (0x07)
                            {
                                "ALC888"
                            }, 

                            "PinConfigurations", 
                            Buffer (0x28)
                            {
                                /* 0000 */    0x50, 0x41, 0x01, 0x01, 0x50, 0x40, 0x21, 0x02, 
                                /* 0008 */    0x30, 0x01, 0x10, 0x90, 0x20, 0x60, 0x01, 0x01, 
                                /* 0010 */    0x70, 0x20, 0x01, 0x01, 0xA0, 0x90, 0xA1, 0x02, 
                                /* 0018 */    0x10, 0x30, 0x81, 0x01, 0x40, 0x90, 0xA1, 0x01, 
                                /* 0020 */    0x60, 0x61, 0x4B, 0x01, 0xF0, 0x01, 0xCB, 0x01
                            }, 

                            "reg", 
                            Buffer (0x28)
                            {
                                /* 0000 */    0x00, 0xD8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                /* 0008 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                /* 0010 */    0x00, 0x00, 0x00, 0x00, 0x10, 0xD8, 0x00, 0x02, 
                                /* 0018 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                /* 0020 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00
                            }, 

                            "platformFamily", 
                            Buffer (One)
                            {
                                0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }

Found this one at: http://www.insanelymac.com/forum/lofiversion/index.php/… ↗
Replaced my Device HDEF with this code, then used kexttool to once again try a kext from the package:
http://www.insanelymac.com/forum/index.php?act=attach&a… ↗
Which I found on:
http://www.insanelymac.com/forum/index.php?showtopic=14… ↗

I used the kext called "3out2in HDA headphone" in the subfolder "series of LegacyHDA 888 (ALC888)". I have not tried the others but have no need as its fully working for me now

Still had mormegils AppleHDA and not the default SL AppleHDA (as I threw it away when mormegils worked for sound atleast). So no idea if osx AppleHDA works, but this one does.

Now it looks like:

Internal Microphone---|---Built-in Microphone
Line In--------------|---Built-in Line input
Digital In------------|--- Built-in Digital Input

I also got a new checkbox which I didn't have in Leopard, saying "Use ambient noise reduction" and it was checked by default.

Finally finished hunting.

作者修訂 #22 @Snow 2009-09-15 ↳ Re: @Cee
@Cee請問樓主或其他師兄能否重新上傳這份 AppleHDA.kext?我試過在 4 台電腦(3 台 Mac、1 台 PC)上解壓縮都失敗。

哎呀,我以為你是問有沒有人可以上傳「他自己的」AppleHDA.kext。

我上傳的是我自己用的版本,所以是專為 ALC889a 調校的。搞錯意思真是不好意思。

技術筆記 #137 @megavolkan 2009-09-15 ↳ Re: @Trograin

Wow thanks man i'll try it when i'm home tonight. Just to make sure, this should be done in dsdt.aml right? Just to make sure you know

@TrograinI got an error in safari after downloaded, saying something about not able to extract Stuffit archive. I too had to install Stuffit. But no big deal, theres a trial Got microphone working and with reported perfect sound from several people I forced to talk to me through Skype Device (HDEF) { Name (_ADR, 0x001B0000) Method (_PRW, 0,…
技術筆記 #138 @Trograin 2009-09-15

Yes, dsdt.aml. Its for ALC888. Good luck and hope it works just as good for you as it worked on my computer.

技術筆記 #139 @megavolkan 2009-09-15

Hey, i've tried to insert the code into my dsdt but i cannot compile dsdt.dsl file with iaslme

it always gives error:

/Users/volkan/Desktop/Hackintosh/dsdt.dsl  5584: 
Error    4063 -

and something followed like:

 Object does not exist ^  (\_SB.MEM._CRS._Y0E._BAS)

i even tried the windows version iasl.exe gave the same errors.

Any ideas? I've attached the dsl and the log file.

技術筆記 #140 @Trograin 2009-09-16

Not sure tbh.

I tried iaslme with my dsdt.dsl and it worked, then tried yours and it didn't work. Have never used iaslme before to compile but using Macloader_SL. I tried to compile your dsdt.dsl in that one and it did generate me an dsdt.aml. Wether its working I can't say.

Attaching the dsdt.aml I compiled out of your dsdt.dsl, and also attaching my own dsdt.dsl if you want to look at it.

技術筆記 #141 @lemn 2009-09-16

could anyone help me for adi1988 card? this guide is for alc soundcard, and since i have a different on i can't find the relevant sections in my dsdt.dsl file. thanks.

技術筆記 #142 @Trograin 2009-09-16

Sorry, not me. I don't have one of those cards. The dsdt info is specific to the card you got, so might be good to see if you can find a thread with people having same card, as they can test etc. Or maybe someone here got one of those too… not me though

技術筆記 #143 @monsieur.d 2009-09-18

Anyone has headphones working

I followed the steps as described in the first post and got sound working (don't need 5.1). Also, everything shows just fine on System Profiler.

The problem is that although "Headphones" shows in System Profiler, I can't choose it as output.

My motherboard is a Gigabyte P35C-DS3R, using Snow Leopard 10.6.1 (the same thing happened in 10.6)

I don't need a pre-made solution. If someone could at least point me to where I should edit (DSDT, plist, etc), it would be much appreciated.

技術筆記 #144 @mormegil 2009-09-18

System profiler is just cosmetics. What you see in Sound Preferences is all that matters.

技術筆記 #145 @monsieur.d 2009-09-18 ↳ Re: @mormegil
@mormegilSystem profiler is just cosmetics. What you see in Sound Preferences is all that matters.

Thanks. Any hint of what I have to edit to get headphones to work?

技術筆記 #146 @monsieur.d 2009-09-18

I have 3 line outs and 1 Digital out. The first line out works fine with the speakers that are connected in the back panel.

I used to have speakers AND headphones working in Leopard (10.5.6) with patched AppleHDA. I know I can't use Leopard's AppleHDA, but can I somehow copy its setup (considering that now I have a patched DSDT and patched AppleHDA according to this thread)?

技術筆記 #147 @mrctll 2009-09-18

your msi p35 neo run 10.6 in vanilla? The mine won't boot… I've modded bios for leopard and work's great. 10.6 boot only with SnowOSX Universal (432) 3.5 but don't recognize the disk... do you have a tutorial?

Grazie..

技術筆記 #148 @mormegil 2009-09-18 ↳ Re: @monsieur.d
@monsieur.dI have 3 line outs and 1 Digital out. The first line out works fine with the speakers that are connected in the back panel. I used to have speakers AND headphones working in Leopard (10.5.6) with patched AppleHDA. I know I can't use Leopard's AppleHDA, but can I somehow copy its setup (considering that now I have a patched DSDT and…

How to port AppleHDA to SL →

Anyway, by headphone do you mean the front jack? If so, have you tried plugging in a headphone? It might have jack-sensing enabled. Plugging in a headphone to front port will mute line out at the back. Try this and check in sound pref if one of your outputs change into 'headphone' once you plug it in.

技術筆記 #149 @monsieur.d 2009-09-18

Yes, by headphones I mean the front jack.

I tried connecting the headphones both in the headphone out and the mic in and nothing happened.

I'll try your guide and post back. thanks

技術筆記 #150 @monsieur.d 2009-09-19

Thanks for the orientation. All I needed to do was to edit the "plist" files using the plists I had working under Leopard.

Now I have "Headphones" (front jack) in the sound preferences and it works just fine.

D

技術筆記 #151 @MiniHack 2009-09-22

Configdata/ pinconfig

I have a quick question about what I do and do not need to include in my HDEF mod.s in the DSDT.
On the initial pages and guide in first post, it seems that Pinconfig/Configdata is not needed in the DSDT itself as it will read that from the plists in AppleHDA.kext. However, in later posts I see a lot of DSDTs with that data inserted. So…if the AppleHDA is correct does the DSDT really need these info.s also? If the answer is no, then this will give me one less variable to work with in my experiments.
Thanks for the excellent guide by the way and I promise not to be a serial re-poster about this. Just want to get this one point clear.

技術筆記 #152 @mormegil 2009-09-23 ↳ Re: @MiniHack
@MiniHackI have a quick question about what I do and do not need to include in my HDEF mod.s in the DSDT. On the initial pages and guide in first post, it seems that Pinconfig/Configdata is not needed in the DSDT itself as it will read that from the plists in AppleHDA.kext. However, in later posts I see a lot of DSDTs with that data inserted.…

Here →

You DON'T need pinconfig in dsdt. You DO however need Configdata in plist.

技術筆記 #153 @MiniHack 2009-09-24

Thank you

Thanks Mormegil and Snow. I now have working audio in Snow Leopard from DSDT and modded AppleHDA.kext with my Zotac board…took a while, but finally figured things out.

技術筆記 #154 @killer567 2009-12-04

ALC882 Not Working

Mormegil and Snow, i've been following your posts and replies and i respect your work.
While following I tried very hard to fix my ALC882 on my ASUS Z96Js laptop but got nothing.

Can you guys help me out or guide me in any ways possible.
I have attached my DSDT + CODEC DUMP from linux.

My current system is as follows.

Snow Leo 10.6.2

ALC882 with
1 - 1/8" headphone/speaker jack in front
1 - 1/8" line-in jack in front
1 - Internal Speakers
1 - Internal Mic

out guys, i will be very thankful

技術筆記 #155 @Elventanis 2009-12-11

ALC889a Sound issue on P55 UD4P

I was wondering if anyone could help me figure out how to fix the audio on my Snow Leopard 10.6.2 install. My hardware is listed below. I tried using VoodooHDA, LegacyHDA and modified AppleHDA. The best I can get is either the Back speakers to work or the Sub and Center speaker to work. I would like to enable the 5.1 sound, as I have the speakers connected via 3 pins to the PC. Based on what I have read in this forum, there might be hope for me yet, but I need some guidance.

If you need additional information please let me know and I will provide.

Gigabyte P55 UD4P
i7 860 Overclocked at 3.5
Kingston Memory 8GB (2000)
BFG Geforce GTS 250 Video Card
LG SATA Internal DVD Writer

技術筆記 #156 @will1384 2009-12-11

Here is how I got mine working, not sure if its going to work for
you, might give it a try, also I never had much luck with surround
sound on Realtek, not even using Windows

(1) Find and download "Taruga’s AppleHDA Patcher version 1.20"
(2) Find and download "VoodooHDA.kext"
(3) Make your own CODEC Dump in Linux buy typing this into the Terminal

"cat /proc/asound/card0/codec#0 > ~/Desktop/codec_dump.txt"

and use that file,

if you get nothing, try changing "codec#0" to "codec#1"
keep going up in numbers till you get the info.

Like

"cat /proc/asound/card0/codec#0 > ~/Desktop/codec_dump.txt"
"cat /proc/asound/card0/codec#1 > ~/Desktop/codec_dump.txt"
"cat /proc/asound/card0/codec#2 > ~/Desktop/codec_dump.txt"

(Hint) the Ubuntu Install CD works just fine for this

(4) Find and download "Kext Utility"
(5) Drag "VoodooHDA.kext" onto "Kext Utility" to install
(6) Make a backup copy of "AppleHDA.kext", its in "/System/Library/Extensions"
(7) Drag "codec_dump.txt" onto "AppleHDA Patcher" to install

技術筆記 #157 @Elventanis 2009-12-11 ↳ Re: @will1384
@will1384Here is how I got mine working, not sure if its going to work for you, might give it a try, also I never had much luck with surround sound on Realtek, not even using Windows (1) Find and download "Taruga’s AppleHDA Patcher version 1.20" (2) Find and download "VoodooHDA.kext" (3) Make your own CODEC Dump in Linux buy typing this into…

Thanks Will, I will try that later on tonight. I will need to install ubuntu first though, as I currently don't have an install of that anywhere. No big deal. I will report back on how that goes.

技術筆記 #158 @will1384 2009-12-11 ↳ Re: @Elventanis
@ElventanisThanks Will, I will try that later on tonight. I will need to install ubuntu first though, as I currently don't have an install of that anywhere. No big deal. I will report back on how that goes.

One of the things I love about Ubuntu is you don't even have to install it,
it works as a Live CD, just boot the CD, and it takes you to the desktop,
from there you have a usable GUI and even have access to Firefox, and
it seams to auto-detect and setup most network hardware, it great for
fixing things

技術筆記 #159 @Elventanis 2009-12-12

Will, when try the cat command in Ubuntu, I did not see the codec#0 etc. After navigating down the directories I see ac97#0-0

Not sure why I am seeing that cause I have the HD Audio connected. Should I change the commands above to this instead? thx

技術筆記 #160 @will1384 2009-12-12

It should work just by typing, and you can always copy and paste

"cat /proc/asound/card0/codec#0 > ~/Desktop/codec_dump.txt"

and changing the "codec#0" part as needed like "codec#1"

"cat /proc/asound/card0/codec#1 > ~/Desktop/codec_dump.txt"

just keep going up in numbers, I just tried on a EP31 motherboard
I had to up go to "codec#2" like this

"cat /proc/asound/card0/codec#2 > ~/Desktop/codec_dump.txt"

You might have to delete the empty TXT files after an unsuccessful
attempt, maybe some how there not being overwritten buy the new
file each time

I am going to try a PC with non Realtek sound next, but it should work
the same way

技術筆記 #161 @Elventanis 2009-12-12

I tried this using Ubuntu installed in a Virtual Machine via Sun Virtual Box. Maybe that is the reason I am having the issue. I will try to boot off the Ubuntu CD directly and see if that makes a difference I suppose.

When I type the commands, I actually get an error message that the directory/codec#1 etc does not exist. So the dump file is useless, cause the command errors out.

技術筆記 #162 @will1384 2009-12-12 ↳ Re: @Elventanis
@ElventanisI tried this using Ubuntu installed in a Virtual Machine via Sun Virtual Box. Maybe that is the reason I am having the issue. I will try to boot off the Ubuntu CD directly and see if that makes a difference I suppose. When I type the commands, I actually get an error message that the directory/codec#1 etc does not exist. So the dump…

Virtual Machine wont work, the Virtual Machine sets up a fake environment,
Linux has to be running directly on your hardware.

技術筆記 #163 @Elventanis 2009-12-12 ↳ Re: @will1384
@will1384Virtual Machine wont work, the Virtual Machine sets up a fake environment, Linux has to be running directly on your hardware.

ok, thanks for the confirmation, I will try it again later on today after booting in from the Ubuntu live cd and report back.

I did try the steps on Post #1 of this thread last night since those files were already created etc, but I did not have any luck.

Also, I have not been able to find the 1.2 version of the Taruga software either. I need to keep looking for that.

I was testing my connectors last night, and sound is only coming thru the orange connector at this point, the green and black and sending no sound. If I switch out the green connector to the orange port, the sound switches to a different speaker. So it looks like the ports are not even enabled in my current config.

技術筆記 #164 @will1384 2009-12-12 ↳ Re: @Elventanis
@ElventanisI was testing my connectors last night, and sound is only coming thru the orange connector at this point, the green and black and sending no sound. If I switch out the green connector to the orange port, the sound switches to a different speaker. So it looks like the ports are not even enabled in my current config.

I believe the CODEC Dump should fix that, as it also has the input
and output jacks info, also Google is your friend on finding stuff,
look over here for Taruga’s AppleHDA Patcher version 1.20

AppleHDA Solution - Work in progress, Main Thread ↗

技術筆記 #165 @Elventanis 2009-12-12 ↳ Re: @will1384
@will1384I believe the CODEC Dump should fix that, as it also has the input and output jacks info, also Google is your friend on finding stuff, look over here for Taruga’s AppleHDA Patcher version 1.20 AppleHDA Solution - Work in progress, Main Thread (http://www.insanelymac.com/forum/index.php?showtopic=32… ↗)

Will, I think I have everything you mentioned now. I have to run some quick errands and I will try the rest later on. Couple of questions for you in case you see this before I get back.

1. If I am patching the AppleHDA do I still need the VoodooHDA enabler?
2. My current DSDT file has pinconfiguration entries in it in the HDEF section. do I leave them there or should I remove them? I am thinking I need to remove them since the AppleHDA is being patched, but wanted to confirm.

From Ubuntu I had to use codec#2 to get the dump file.

Thanks again, for helping me thru this.

技術筆記 #166 @will1384 2009-12-12 ↳ Re: @Elventanis
@Elventanis1. If I am patching the AppleHDA do I still need the VoodooHDA enabler?

Yes

@Elventanis2. My current DSDT file has pinconfiguration entries in it in the HDEF section. do I leave them there or should I remove them?

Patching AppleHDA and using VoodooHDA will work, with or with out
the DSDT audio section, if the DSDT audio section is correct leave
it alone, using AppleHDA and VoodooHDA seams to ignore anything
in your DSDT

技術筆記 #167 @Elventanis 2009-12-13

I had a chance try this a little bit before I left for party, which sucks by way, lol.

The sound seems to be coming from the front speakers. I will test further when I get back home.

I already got further than I had before. Thank u again foe all your help and guidance. Thx

技術筆記 #168 @Elventanis 2009-12-13

Will, here is the update on how this went.

1. I am getting sound from the Front Center, Front Left, Front Right and the Sub Woofer.
2. The Rear Left and Right do not have any sound at this point.

Based on your previous information about Surround Sound for Mac, I am assuming that is normal.

Just wanted to say Thank You again for getting this fixed for me.

If Apple releases 10.6.3 and I upgrade to that, I am assuming I may need to patch the AppleHDA again right?

I will read other parts of this thread and see if I can get anything from the rear speakers.

On the 1st post, there was some information about Spotlighting the Audio/Midi and messing around with the speaker setup. Any ideas on how I get to this screen to see what is possible?

Thank you again

技術筆記 #169 @Elventanis 2009-12-13

Will, I figured out how to get to the Midi/Audio Setup. The 5.1 channel sound is not enabled there, so still need to do some digging I suppose.

Anyhow, when I did the AppleHDA Patching, it showed me some information and reported that I had Realtek 885, as opposed to to 889a. If I go into the About Mac, and more information, the Audio is saying 885 there as well. Is that normal? Thx

技術筆記 #170 @Elventanis 2009-12-13 ↳ Re: @mormegil
@mormegilALC889a might have different pin configuration so I'm not sure about that. However, it looks like your codec is a variant of the ALC885 which has native OSX support so I think you don't need to do any binary patching. You don't need HDAenabler or any audio injector. Just patch dsdt for audio injection. Then edit the two plist files:…

@Mormegil

I came across your posts here on how to enable the 5.1 sound for Snow Leopard. With the Help of Will on this forum, I was able to successfully get Sound working on my ALC889a, but I don't have the option to enable 5.1 in the Audio/Midi config. My back speakers are currently not working.

I am using the VoodooHDA kext as well. What do I need to change in my info.plist that would allow me to enable the 5.1 sound. Would you be able to guide me on this. Thx

技術筆記 #171 @will1384 2009-12-13 ↳ Re: @Elventanis
@ElventanisWill, here is the update on how this went. 1. I am getting sound from the Front Center, Front Left, Front Right and the Sub Woofer. 2. The Rear Left and Right do not have any sound at this point. Based on your previous information about Surround Sound for Mac, I am assuming that is normal. Just wanted to say Thank You again for…

I got digging for info myself, come to find out that there are quite a few different versions of VoodooHDA,
made by different people, based on the original file made by some one else, one of them that works for me,
although no surround, is the file here

VoodooPS2 and VoodooHDA (now 0.2.2 with prefPane) drivers for snow leopard 32/64 bit ↗
and another,

Voodoohda Driver, Fully working! ↗

and some people had say removing "AppleHDA.kext" helps, just make sure to
keep a backup

UPDATE

I just removed "AppleHDA.kext" and the file that gets created buy AppleHDA Patcher, "ALCinject.kext"
leaving only "VoodooHDA.kext" and ran "Kext Utility" to clean up, and rebooted, the sound works, still
no surround sound, but one less step

and found another "VoodooHDA.kext", seams to work well and the volume is slightly higher

VoodooHDA (32-/ 64-bit, recompiled by Prasys) (k exts.com/view/70-voodoohda_%2832--_64-bit,_recompiled_by_prasys%29.html)

技術筆記 #172 @Elventanis 2009-12-13

Thats Weird, So the Voodoo Kext fixes this without having the AppleHDA etc. I will try it later on I suppose.

From everything I have been reading, it seems that we have to get the 3 colored outputs to register with teh Mac to get the 5.1 sound working. When we do that we should have 3 line outs available with 2 channels each. That should be the 5 speakers plus the Sub. I am thinking there has to be a tweak out there somewhere to make all those lines work.

I am going to test today, byt removing the 3 lines and adding them one at a time to see which ones are working. I am assuming only one is working still or maybe 2. The Green one seems to be the problem one based on what I read.

I will post something for prasys as well as see if he can give me some more information. Thx

技術筆記 #173 @Elventanis 2009-12-13

Will, I played around with setup and no luck with the 5.1 sound yet. I tried the 2 versions of Voodoo, and other than what you mentioned about the volume, there was no real difference.

I removed the Voodoo Kext file and the sound no longer worked. Put that together with your note about removing AppleHDA and ALCInject, I suppose I am wondering what the AppleHDA patcher actually provided?

I had a posted a couple of questions out there on another forum, but so far I have not got anything back. If I get any more progress I will update this again. I will keep checking daily so if you have any further break thrus I will look out for them. Thx

技術筆記 #174 @Elventanis 2009-12-14

Will
Here is another update. I removed the AppleHDA and ALCInject, and my sound switched back to the rear speakers again. I had nothing coming out from the front speakers.

I then tried some LegacyHDA and HDAenabler kexts, unfortunately after a restart I had no output devices at all. So that was a no go.

I put all the working files back in and the front speakers are back up and running.

In looking at the various 5.1 setups out there, I am thinking we are not able to do this cause our output device is showing up as

Line Out / Line Out / Line Out / Line Out

I think it should be listed as

Line Out
Line Out
Line Out
Line Out

in the Audio section of System Preferences.

If it was listed this way, we may be able to create an aggregate sound section that puts all these together to allow us to enable 5.1 sound

Let me know if that makes sense. I am thinking there has to be information out there on how to fix this somewhere.

技術筆記 #175 @wind99 2010-01-08

ALC889A in AMD GA-MA78-S2H

Did someone sucess with alc889a in AMD ga-ma78-s2h?
i already try with legacy, applehda, and voodo..
still not happen anything.

技術筆記 #176 @gorg 2010-01-08 ↳ Re: @wind99
@wind99Did someone sucess with alc889a in AMD ga-ma78-s2h? i already try with legacy, applehda, and voodo.. still not happen anything.

Νο. Only managed sound in Leopard with alcinject. In Snow Leopard I get sound only via VoodooHDA but the preference pane is still inaccessible (kp when I select the Input tab).

技術筆記 #177 @wind99 2010-01-10

Ya, same with me.
i only get the tab.
there is no sound in voodo. i only get the preferences. but not appear the sound.
do you have the sound when u using voodo?

技術筆記 #178 @sethyr 2010-02-06 ↳ Re: @wind99
@wind99Did someone sucess with alc889a in AMD ga-ma78-s2h? i already try with legacy, applehda, and voodo.. still not happen anything.

I've tried everything too. So I would appreciate help too :\

技術筆記 #179 @ANARCHiNTOSH 2010-02-24

AppleHDA automatic patcher for ALC889a

hi mormegil, ive made a launchable bash script to patch AppleHDA
automaticly. Thanks so much for writing this guide its been really
useful, and the result sounds much better than LegacyHDA + HDAEnabler.
(no squeaky noise)

get it here: media fire.com/?zj3moonzmeq

If the plists ever need updating, it will be easy to update them in my
script, because they are not hardcoded. Also, the script will automaticly
label the patched AppleHDA red. The script wont install the kext, as i thought
that would be a bit too intrusive, so use kextutility or kexthelper.

theres a similiar post at http://www.insanelymac.com/forum/index.php?s=&showt… ↗
with more details.

技術筆記 #180 @X58-Agility 2010-04-21 ↳ Re: @ANARCHiNTOSH
@ANARCHiNTOSHhi mormegil, ive made a launchable bash script to patch AppleHDA automaticly. Thanks so much for writing this guide its been really useful, and the result sounds much better than LegacyHDA + HDAEnabler. (no squeaky noise) get it here: media fire.com/?zj3moonzmeq If the plists ever need updating, it will be easy to update them in my…

I followed up on your work over at "insanely...", very impressed. I am working with your instructions right now to get my sound working. Looking forward to some sweet sounds :

技術筆記 #181 @X58-Agility 2010-04-24

Needless to say I didn't get my sound working. Because I am going to use this computer for professional editing I went and picked up a "TASCAM US-122 MK II".

技術筆記 #182 @dannymichel 2010-05-25

also, someone told me that i'd have to re-do this every time mac updates applehda

技術筆記 #183 @dannymichel 2010-05-25

is there a way to get 5.1 on alc889a without having to edit or remove the applehda file. it's my understanding that some mac updates use the applehda file.

參與實測與協作驗證成員: @mormegil @Gurruwiwi @ajacocks @megavolkan @X58-Agility
文獻來源與貢獻者溯源名錄(共 29 位具名成員 · 原始討論串 #3746)
成員用戶名本卷貢獻角色發帖數活躍時間窗
@mormegil核心貢獻者572009-08-25 → 2009-09-23
@Gurruwiwi核心貢獻者532009-09-01 → 2009-09-07
@Snow主筆作者252009-08-23 → 2009-09-15
@ajacocks核心貢獻者132009-09-06 → 2009-09-09
@Elventanis核心貢獻者132009-12-11 → 2009-12-14
@terrorgen核心貢獻者72009-09-08 → 2009-09-14
@will1384核心貢獻者72009-12-11 → 2009-12-13
@megavolkan核心貢獻者62009-09-05 → 2009-09-16
@Trograin核心貢獻者62009-09-12 → 2009-09-16
@monsieur.d核心貢獻者52009-09-18 → 2009-09-19
@X58-Agility核心貢獻者32010-04-21 → 2010-04-24
@CyCLoBoT協作成員22009-09-02 → 2009-09-05
@vladrxpx協作成員22009-09-03 → 2009-09-05
@hops協作成員22009-09-12 → 2009-09-14
@MiniHack協作成員22009-09-22 → 2009-09-24
@wind99協作成員22010-01-08 → 2010-01-10
@dannymichel協作成員22010-05-25
@vista00協作成員12009-08-23
@DocShadow協作成員12009-08-24
@mangohead協作成員12009-08-27
@wwbsox協作成員12009-08-27
@sangmanh協作成員12009-09-06
@Cee協作成員12009-09-13
@lemn協作成員12009-09-16
@mrctll協作成員12009-09-18
@killer567協作成員12009-12-04
@gorg協作成員12010-01-08
@sethyr協作成員12010-02-06
@ANARCHiNTOSH協作成員12010-02-24

選擇語言 · Choose your language