Add ALC255 layout-id 16 for Gigabyte Aorus 15G (warm-reboot/sleep audio fix) - #959
Open
Andergraw wants to merge 1 commit into
Open
Add ALC255 layout-id 16 for Gigabyte Aorus 15G (warm-reboot/sleep audio fix)#959Andergraw wants to merge 1 commit into
Andergraw wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new custom layout (id 16) for the Realtek ALC255 on the Gigabyte Aorus 15G.
Fixes acidanthera/bugtracker#2540. Created as a new layout per @vandroiy2013's guidance in that thread (layouts 1–10 are reserved for Mirone/Toleda), rather than modifying the existing Mirone layout 3.
Problem
On this laptop the speaker is silent after a warm reboot from Windows → macOS and after wake from sleep (short/medium/long). Everything enumerates correctly — the device shows up, volume keys and jack-sense work — but no sound is produced. Cold boot from power-off is unaffected.
Cause
The Realtek vendor node (NID 0x20) keeps a processing coefficient in the muted state that Windows leaves behind and macOS's AppleHDA init never clears. Comparing a broken vs. a working codec dump, coef 0x10 reads
0x0220(bit 9 / mute set) when broken and0x0020when working. Re-writing coef 0x10 to0x0020restores audio in every tested case. (Two further coefficients, 0x45 and 0x1A, also differ but were observed not to persist on read-back, so only the minimal, effective coef 0x10 write is shipped here.)Fix
A new layout 16, identical to Mirone's layout 3 except that the following two verbs are appended to both
ConfigData(cold/warm boot) andWakeConfigData(sleep wake):WakeVerbReinitistrueso the wake verbs are re-sent on every power transition.Because the layout and platform data are byte-for-byte the same as Mirone layout 3, the new layout reuses
layout3.xml.zlibandPlatformsM.xml.zlibrather than adding duplicate resource files (per the "avoid unnecessary duplication" rule on the Adding-codec-support wiki page).Files changed
Resources/ALC255/Info.plist— new layout 16 entry inLayouts(→layout3.xml.zlib) andPlatforms(→PlatformsM.xml.zlib).Resources/PinConfigs.kext/Contents/Info.plist— newHDAConfigDefaultentry for CodecID 283902549 / LayoutID 16 with the patchedConfigData+WakeConfigData.Changelog.md— changelog line.Testing
Patched build on Gigabyte Aorus 15G, macOS Sequoia (24G624), OpenCore,
alcid=16:(Audio settles ~8 s after boot/wake in all cases; that is codec settling time and is unrelated to the patch.)