soc/intel/alderlake: Add enum for HDA audio configuration
This change adds an enum to configure the audio related UPDs used for configuring the audio over HDMI/DP and rename a variable for better readability. TEST=On shadowmountain audio sound cards are detected and listed by the Linux kernel. Audio playback and capture is working fine. Change-Id: I2834d6f4ce1651a609c5563af375f6e365d931fa Signed-off-by: Sugnan Prabhu S <sugnan.prabhu.s@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51658 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
committed by
Tim Wawrzynczak
parent
c1c1ba5582
commit
50f8b4ebdd
@@ -113,9 +113,22 @@ struct soc_intel_alderlake_config {
|
||||
|
||||
/* Audio related */
|
||||
uint8_t PchHdaDspEnable;
|
||||
uint8_t PchHdaIDispLinkTmode;
|
||||
uint8_t PchHdaIDispLinkFrequency;
|
||||
uint8_t PchHdaIDispCodecDisconnect;
|
||||
|
||||
/* iDisp-Link T-Mode 0: 2T, 2: 4T, 3: 8T, 4: 16T */
|
||||
enum {
|
||||
HDA_TMODE_2T = 0,
|
||||
HDA_TMODE_4T = 2,
|
||||
HDA_TMODE_8T = 3,
|
||||
HDA_TMODE_16T = 4,
|
||||
} PchHdaIDispLinkTmode;
|
||||
|
||||
/* iDisp-Link Freq 4: 96MHz, 3: 48MHz. */
|
||||
enum {
|
||||
HDA_LINKFREQ_48MHZ = 3,
|
||||
HDA_LINKFREQ_96MHZ = 4,
|
||||
} PchHdaIDispLinkFrequency;
|
||||
|
||||
bool PchHdaIDispCodecEnable;
|
||||
|
||||
struct pcie_rp_config pch_pcie_rp[CONFIG_MAX_PCH_ROOT_PORTS];
|
||||
struct pcie_rp_config cpu_pcie_rp[CONFIG_MAX_CPU_ROOT_PORTS];
|
||||
|
Reference in New Issue
Block a user