Skip to content

Commit

Permalink
Add patch for AMD ZEN to fix microphone issue (#882)
Browse files Browse the repository at this point in the history
In the function AppleHDAController::getAudioStreamLinkPositionInDMABuffer(IOHDAStream*, uint64_t*),
it expects bit 0 of register 0x70 to be cleared before reading DMA position.
However, for AMD, it somehow is not cleared, hence DMA position is incorrect.
For now the workround is to skip that bit check.

This patch has been veried to work up to macOS Sonoma.
  • Loading branch information
qhuyduong committed Dec 11, 2023
1 parent 02549d9 commit 5fa5084
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Resources/Controllers.plist
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,16 @@
<key>Replace</key>
<data>DCBmNSIQdAQxwP/I</data>
</dict>
<dict>
<key>Count</key>
<integer>1</integer>
<key>Find</key>
<data>9sIBdQ0=</data>
<key>Name</key>
<string>AppleHDAController</string>
<key>Replace</key>
<data>9sIBkJA=</data>
</dict>
</array>
<key>Vendor</key>
<string>AMDZEN</string>
Expand Down Expand Up @@ -512,6 +522,16 @@
<key>Replace</key>
<data>DCBmNSIQdAQxwP/I</data>
</dict>
<dict>
<key>Count</key>
<integer>1</integer>
<key>Find</key>
<data>9sIBdQ0=</data>
<key>Name</key>
<string>AppleHDAController</string>
<key>Replace</key>
<data>9sIBkJA=</data>
</dict>
</array>
<key>Vendor</key>
<string>AMDZEN</string>
Expand Down Expand Up @@ -553,6 +573,16 @@
<key>Replace</key>
<data>DCBmNSIQdAQxwP/I</data>
</dict>
<dict>
<key>Count</key>
<integer>1</integer>
<key>Find</key>
<data>9sIBdQ0=</data>
<key>Name</key>
<string>AppleHDAController</string>
<key>Replace</key>
<data>9sIBkJA=</data>
</dict>
</array>
<key>Vendor</key>
<string>AMDZEN</string>
Expand Down

0 comments on commit 5fa5084

Please sign in to comment.