Skip to content

Commit

Permalink
Disable OcAudioLib.
Browse files Browse the repository at this point in the history
  • Loading branch information
jief666 committed Jan 19, 2024
1 parent c368a19 commit 7e9c25b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/OcMainLib/OcMainLibClover.inf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
OpenCoreNvram.c
OpenCorePlatform.c
OpenCoreUefi.c
OpenCoreUefiAudio.c
# OpenCoreUefiAudio.c
OpenCoreUefiInOut.c
OpenCoreVault.c

Expand Down Expand Up @@ -78,7 +78,7 @@
OcAppleBootPolicyLib
OcAppleEventLib
# OcAppleImageConversionLib
OcAudioLib
# OcAudioLib
OcInputLib
OcAppleImg4Lib
OcAppleKernelLib
Expand Down
4 changes: 4 additions & 0 deletions Library/OcMainLib/OpenCoreUefi.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,13 +391,15 @@ OcReinstallProtocols (
BOOLEAN OverrideAppleEvent;
#endif

#ifndef CLOVER_BUILD
if (OcAudioInstallProtocols (
Config->Uefi.ProtocolOverrides.AppleAudio,
Config->Uefi.Audio.DisconnectHda
) == NULL)
{
DEBUG ((DEBUG_INFO, "OC: Disabling audio in favour of firmware implementation\n"));
}
#endif

if (OcAppleBootPolicyInstallProtocol (Config->Uefi.ProtocolOverrides.AppleBootPolicy) == NULL) {
DEBUG ((DEBUG_INFO, "OC: Failed to install boot policy protocol\n"));
Expand Down Expand Up @@ -1052,7 +1054,9 @@ OcLoadUefiSupport (

OcLoadUefiOutputSupport (Storage, Config);

#ifndef CLOVER_BUILD
OcLoadUefiAudioSupport (Storage, Config);
#endif

gBS->CreateEvent (
EVT_SIGNAL_EXIT_BOOT_SERVICES,
Expand Down

0 comments on commit 7e9c25b

Please sign in to comment.