OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
HdaCodecInfo.c File Reference
#include "HdaCodec.h"

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI HdaCodecInfoGetAddress (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT8 *Address)
 
EFI_STATUS EFIAPI HdaCodecInfoGetCodecName (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT CONST CHAR16 **CodecName)
 
EFI_STATUS EFIAPI HdaCodecInfoGetVendorId (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT32 *VendorId)
 
EFI_STATUS EFIAPI HdaCodecInfoGetRevisionId (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT32 *RevisionId)
 
EFI_STATUS EFIAPI HdaCodecInfoGetAudioFuncId (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT8 *AudioFuncId, OUT BOOLEAN *UnsolCapable)
 
EFI_STATUS EFIAPI HdaCodecInfoGetDefaultRatesFormats (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT32 *Rates, OUT UINT32 *Formats)
 
EFI_STATUS EFIAPI HdaCodecInfoGetDefaultAmpCaps (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT32 *AmpInCaps, OUT UINT32 *AmpOutCaps)
 
EFI_STATUS EFIAPI HdaCodecInfoGetWidgets (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT HDA_WIDGET **Widgets, OUT UINTN *WidgetCount)
 
EFI_STATUS EFIAPI HdaCodecInfoFreeWidgetsBuffer (IN HDA_WIDGET *Widgets, IN UINTN WidgetCount)
 

Function Documentation

◆ HdaCodecInfoFreeWidgetsBuffer()

EFI_STATUS EFIAPI HdaCodecInfoFreeWidgetsBuffer ( IN HDA_WIDGET * Widgets,
IN UINTN WidgetCount )

Frees an array of HDA_WIDGET.

Parameters
[in]WidgetsA pointer to the buffer array of widgets that is to be freed.
[in]WidgetCountThe number of widgets in Widgets.
Return values
EFI_SUCCESSThe buffer was freed.
EFI_INVALID_PARAMETEROne or more parameters are invalid.

Definition at line 384 of file HdaCodecInfo.c.

◆ HdaCodecInfoGetAddress()

EFI_STATUS EFIAPI HdaCodecInfoGetAddress ( IN EFI_HDA_CODEC_INFO_PROTOCOL * This,
OUT UINT8 * Address )

Definition at line 29 of file HdaCodecInfo.c.

◆ HdaCodecInfoGetAudioFuncId()

EFI_STATUS EFIAPI HdaCodecInfoGetAudioFuncId ( IN EFI_HDA_CODEC_INFO_PROTOCOL * This,
OUT UINT8 * AudioFuncId,
OUT BOOLEAN * UnsolCapable )

Gets the node ID of the codec's audio function.

Parameters
[in]ThisA pointer to the EFI_HDA_CODEC_INFO_PROTOCOL instance.
[out]AudioFuncIdThe node ID of the codec's audio function.
Return values
EFI_SUCCESSThe node ID was retrieved.
EFI_INVALID_PARAMETEROne or more parameters are invalid.

Definition at line 152 of file HdaCodecInfo.c.

◆ HdaCodecInfoGetCodecName()

EFI_STATUS EFIAPI HdaCodecInfoGetCodecName ( IN EFI_HDA_CODEC_INFO_PROTOCOL * This,
OUT CONST CHAR16 ** CodecName )

Gets the codec's name.

Parameters
[in]ThisA pointer to the EFI_HDA_CODEC_INFO_PROTOCOL instance.
[out]CodecNameA pointer to the buffer to return the codec name.
Return values
EFI_SUCCESSThe codec name was retrieved.
EFI_INVALID_PARAMETEROne or more parameters are invalid.

Definition at line 56 of file HdaCodecInfo.c.

◆ HdaCodecInfoGetDefaultAmpCaps()

EFI_STATUS EFIAPI HdaCodecInfoGetDefaultAmpCaps ( IN EFI_HDA_CODEC_INFO_PROTOCOL * This,
OUT UINT32 * AmpInCaps,
OUT UINT32 * AmpOutCaps )

Gets the codec's default amp capabilities.

Parameters
[in]ThisA pointer to the EFI_HDA_CODEC_INFO_PROTOCOL instance.
[out]AmpInCapsThe default input amp capabilities.
[out]AmpOutCapsThe default output amp capabilities.
Return values
EFI_SUCCESSThe default amp capabilities were retrieved.
EFI_INVALID_PARAMETEROne or more parameters are invalid.

Definition at line 222 of file HdaCodecInfo.c.

◆ HdaCodecInfoGetDefaultRatesFormats()

EFI_STATUS EFIAPI HdaCodecInfoGetDefaultRatesFormats ( IN EFI_HDA_CODEC_INFO_PROTOCOL * This,
OUT UINT32 * Rates,
OUT UINT32 * Formats )

Gets the codec's default supported stream rates and formats.

Parameters
[in]ThisA pointer to the EFI_HDA_CODEC_INFO_PROTOCOL instance.
[out]RatesThe default supported rates.
[out]FormatsThe default supported formats.
Return values
EFI_SUCCESSThe stream rates and formats were retrieved.
EFI_INVALID_PARAMETEROne or more parameters are invalid.

Definition at line 187 of file HdaCodecInfo.c.

◆ HdaCodecInfoGetRevisionId()

EFI_STATUS EFIAPI HdaCodecInfoGetRevisionId ( IN EFI_HDA_CODEC_INFO_PROTOCOL * This,
OUT UINT32 * RevisionId )

Gets the codec's revision ID.

Parameters
[in]ThisA pointer to the EFI_HDA_CODEC_INFO_PROTOCOL instance.
[out]RevisionIdThe revision ID of the codec.
Return values
EFI_SUCCESSThe revision ID was retrieved.
EFI_INVALID_PARAMETEROne or more parameters are invalid.

Definition at line 120 of file HdaCodecInfo.c.

◆ HdaCodecInfoGetVendorId()

EFI_STATUS EFIAPI HdaCodecInfoGetVendorId ( IN EFI_HDA_CODEC_INFO_PROTOCOL * This,
OUT UINT32 * VendorId )

Gets the codec's vendor and device ID.

Parameters
[in]ThisA pointer to the EFI_HDA_CODEC_INFO_PROTOCOL instance.
[out]VendorIdThe vendor and device ID of the codec.
Return values
EFI_SUCCESSThe vendor and device ID was retrieved.
EFI_INVALID_PARAMETEROne or more parameters are invalid.

Definition at line 88 of file HdaCodecInfo.c.

◆ HdaCodecInfoGetWidgets()

EFI_STATUS EFIAPI HdaCodecInfoGetWidgets ( IN EFI_HDA_CODEC_INFO_PROTOCOL * This,
OUT HDA_WIDGET ** Widgets,
OUT UINTN * WidgetCount )

Gets the codec's widgets.

Parameters
[in]ThisA pointer to the EFI_HDA_CODEC_INFO_PROTOCOL instance.
[out]WidgetsA pointer to the buffer to return the requested array of widgets.
[out]WidgetCountThe number of widgets returned in Widgets.
Return values
EFI_SUCCESSThe widgets were retrieved.
EFI_INVALID_PARAMETEROne or more parameters are invalid.
EFI_OUT_OF_RESOURCESA buffer couldn't be allocated.

Definition at line 258 of file HdaCodecInfo.c.