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