Add Windows UEFI Audio support

Closes https://github.com/dortania/OpenCore-Legacy-Patcher/issues/133
This commit is contained in:
Mykola Grymalyuk
2021-04-29 20:53:54 -06:00
parent e1be0d32ab
commit 9ae7be59b5
5 changed files with 11 additions and 6 deletions

View File

@@ -6,6 +6,7 @@
- Fix accidentally disabling non-existent iGPU in iMac11,2
- Remove ACPI Patching requirement for Minimal SMBIOS setups
- Probe hardware for Backlight pathing on iMac10,1, iMac11,x and iMac12,x with Metal GPUs
- Add Windows UEFI Audio support to Sandy and Ivy Bridge Macs
## 0.1.1
- Fix iMac11,3 GFX0 pathing

View File

@@ -243,10 +243,12 @@ class BuildOpenCore:
self.get_item_by_kv(self.config["ACPI"]["Add"], "Path", "SSDT-CPBG.aml")["Enabled"] = True
shutil.copy(self.constants.pci_ssdt_path, self.constants.acpi_path)
#if self.model in ModelArray.windows_audio:
# print("- Adding SSDT-PCI.aml")
# self.get_item_by_kv(self.config["ACPI"]["Add"], "Path", "SSDT-PCI.aml")["Enabled"] = True
# shutil.copy(self.constants.windows_ssdt_path, self.constants.acpi_path)
if self.model in ModelArray.windows_audio:
# Based on: https://egpu.io/forums/pc-setup/fix-dsdt-override-to-correct-error-12/
print("- Enabling Windows 10 UEFI Audio support")
self.get_item_by_kv(self.config["ACPI"]["Add"], "Path", "SSDT-PCI.aml")["Enabled"] = True
self.get_item_by_kv(self.config["ACPI"]["Patch"], "Comment", "BUF0 to BUF1")["Enabled"] = True
shutil.copy(self.constants.windows_ssdt_path, self.constants.acpi_path)
# USB Map
usb_map_path = Path(self.constants.plist_folder_path) / Path("AppleUSBMaps/Info.plist")

View File

@@ -113,6 +113,8 @@ class Constants:
# ACPI
@property
def pci_ssdt_path(self): return self.payload_path / Path("ACPI/SSDT-CPBG.aml")
@property
def windows_ssdt_path(self): return self.payload_path / Path("ACPI/SSDT-PCI.aml")
# Drivers
@property

Binary file not shown.

View File

@@ -138,7 +138,7 @@
<key>Enabled</key>
<false/>
<key>Find</key>
<data>CEJVRjA=</data>
<data>QlVGMA==</data>
<key>Limit</key>
<integer>0</integer>
<key>Mask</key>
@@ -146,7 +146,7 @@
<key>OemTableId</key>
<data></data>
<key>Replace</key>
<data>CEJVRjE=</data>
<data>QlVGMQ==</data>
<key>ReplaceMask</key>
<data></data>
<key>Skip</key>