HdaVerbTableLib.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /** @file
  2. Header file for the Intel HD Audio Verb Table library.
  3. Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _HDA_VERB_TABLE_LIB_H_
  7. #define _HDA_VERB_TABLE_LIB_H_
  8. #include <ConfigBlock/HdAudioConfig.h>
  9. #include <Library/BaseLib.h>
  10. enum HDAUDIO_CODEC_SELECT {
  11. PchHdaCodecPlatformOnboard = 0,
  12. PchHdaCodecExternalKit = 1
  13. };
  14. /**
  15. Add verb table function.
  16. This function update the verb table number and verb table ptr of policy.
  17. @param[in] HdAudioConfig HD Audio config block
  18. @param[out] VerbTableEntryNum Number of verb table entries
  19. @param[out] HdaVerbTablePtr Pointer to the verb table
  20. **/
  21. VOID
  22. AddPlatformVerbTables (
  23. IN UINT8 CodecType,
  24. OUT UINT8 *VerbTableEntryNum,
  25. OUT UINT32 *HdaVerbTablePtr
  26. );
  27. /**
  28. HDA VerbTable init function for PEI post memory phase.
  29. @param[in] BoardId An unsigned integrer represent the board id.
  30. @retval EFI_SUCCESS The function completed successfully.
  31. **/
  32. EFI_STATUS
  33. HdaVerbTableInit(
  34. IN UINT16 BoardId
  35. );
  36. #endif