soc/intel/pantherlake: Directly assign HDA SDI enable
The double negation (`!!`) was unnecessarily used when assigning the `pch_hda_sdi_enable` type boolean from the SOC config to the FSP M config. This commit removes the redundant `!!` operator, directly assigning the boolean value of `config->pch_hda_sdi_enable[i]` to `m_cfg->PchHdaSdiEnable[i]`. TEST=Able to build and boot google/fatcat. Change-Id: I9233116ca2bfaeac2f685d464a1cb261f067db6a Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/87109 Reviewed-by: Wonkyu Kim <wonkyu.kim@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kapil Porwal <kapilporwal@google.com> Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
This commit is contained in:
parent
275beb93db
commit
2a76384804
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ static void fill_fspm_audio_params(FSP_M_CONFIG *m_cfg,
|
|||
m_cfg->PchHdaIDispCodecDisconnect = !config->pch_hda_idisp_codec_enable;
|
||||
|
||||
for (int i = 0; i < MAX_HD_AUDIO_SDI_LINKS; i++)
|
||||
m_cfg->PchHdaSdiEnable[i] = !!config->pch_hda_sdi_enable[i];
|
||||
m_cfg->PchHdaSdiEnable[i] = config->pch_hda_sdi_enable[i];
|
||||
|
||||
/*
|
||||
* All the PchHdaAudioLink{Hda|Dmic|Ssp|Sndw}Enable UPDs are used by FSP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue