OpenCore
1.0.4
OpenCore Bootloader
|
#include <Guid/AppleVariable.h>
#include <Library/DebugLib.h>
#include <Library/DevicePathLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/OcAudioLib.h>
#include <Library/OcDriverConnectionLib.h>
#include <Library/OcMiscLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Protocol/AppleHda.h>
#include <Protocol/AppleBeepGen.h>
#include <Protocol/AppleVoiceOver.h>
#include "OcAudioInternal.h"
Go to the source code of this file.
Functions | |
OC_AUDIO_PROTOCOL * | OcAudioInstallProtocols (IN BOOLEAN Reinstall, IN BOOLEAN DisconnectHda) |
VOID | OcGetAmplifierGain (OUT UINT8 *RawGain, OUT INT8 *DecibelGain, OUT BOOLEAN *Muted, OUT BOOLEAN *TryConversion) |
Variables | |
STATIC EFI_GUID * | mAudioProtocols [] |
STATIC OC_AUDIO_PROTOCOL_PRIVATE | mAudioProtocol |
Copyright (C) 2020, vit9696. All rights reserved.
All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Definition in file OcAudioLib.c.
OC_AUDIO_PROTOCOL * OcAudioInstallProtocols | ( | IN BOOLEAN | Reinstall, |
IN BOOLEAN | DisconnectHda ) |
Install audio support protocols.
[in] | Reinstall | Overwrite installed protocols. |
[in] | DisconnectHda | Attempt to disconnect HDA controller first. |
installed | protocol. |
NULL | when conflicting audio implementation is present. |
NULL | when installation failed. |
Definition at line 80 of file OcAudioLib.c.
VOID OcGetAmplifierGain | ( | OUT UINT8 * | RawGain, |
OUT INT8 * | DecibelGain, | ||
OUT BOOLEAN * | Muted, | ||
OUT BOOLEAN * | TryConversion ) |
Get system amplifier gain.
[out] | RawGain | Raw codec gain setting. |
[out] | DecibelGain | Decibel gain setting. |
[out] | Muted | Whether amplifier should be muted. |
[out] | TryConversion | TRUE when decibel gain setting is a default value and raw codec gain setting is a real value. |
Definition at line 166 of file OcAudioLib.c.
STATIC OC_AUDIO_PROTOCOL_PRIVATE mAudioProtocol |
Definition at line 46 of file OcAudioLib.c.
STATIC EFI_GUID* mAudioProtocols[] |
Definition at line 37 of file OcAudioLib.c.