I'm looking for some tips here.

Anyone know which module in an AMI Aptio UEFI initializes HD Audio codecs?

I'm doing all this on my p8z77-v_le_plus. My hope is, once I find the
module responsible, I can quickly inspect that module in every board
in the family and build a correct hda_verb.c for each without actually
having one on hand to run autoport on.

I'm now able to extract the VBT and USB port configurations straight
from vendor firmware image. And if it does something special with its
onboard devices, I know which module to load into Ghidra for a deeper
look after blowing it apart with uefiextract.

However, I'm not yet able to find the part of the firmware that
initializes the HDA codec. Based on the two boards I actually own and
brought into coreboot, there are setup options within the firmware
that touch on the codec, and it certainly is involved on their
bringup. One involves the front audio panel and whether a HD Audio or
AC97 panel is connected.

The setup variables are stored in EFI variable "Setup" with GUID
EC87D643-EBA4-4BB5-A1E5-3F3E36B20DA9. There are usually three HDA
settings: A main enable, HDA/AC97 front panel selection, and sometimes
a SPDIF/HDMI selection. I found their offset within Setup, but I can't
find the module that reads the variable(s) and act on them.

Currently I use binwalk to scan all the extracted "body.bin" for
"Setup" in unicode and try to find those with both signatures, to load
them into Ghidra one by one.

I'm looking for hints to make the process faster or narrow my scope.

Thanks
Keith
_______________________________________________
coreboot mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to