Skip to content

Commit 38acab2

Browse files
libinyangbroonie
authored andcommitted
ASoC: sof-sdw: remove CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC condition
As CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC is always enabled in sof-soundwire driver, let's remove the test of CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC in the code. Signed-off-by: Libin Yang <[email protected]> Signed-off-by: Ranjani Sridharan <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Kai Vehmanen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 8f529f0 commit 38acab2

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

sound/soc/intel/boards/sof_sdw.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -663,9 +663,7 @@ static int sof_card_dai_links_create(struct device *dev,
663663
struct snd_soc_card *card)
664664
{
665665
int ssp_num, sdw_be_num = 0, hdmi_num = 0, dmic_num;
666-
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
667666
struct snd_soc_dai_link_component *idisp_components;
668-
#endif
669667
struct snd_soc_dai_link_component *ssp_components;
670668
struct snd_soc_acpi_mach_params *mach_params;
671669
const struct snd_soc_acpi_link_adr *adr_link;
@@ -686,10 +684,8 @@ static int sof_card_dai_links_create(struct device *dev,
686684
for (i = 0; i < ARRAY_SIZE(codec_info_list); i++)
687685
codec_info_list[i].amp_num = 0;
688686

689-
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
690687
hdmi_num = sof_sdw_quirk & SOF_SDW_TGL_HDMI ?
691688
SOF_TGL_HDMI_COUNT : SOF_PRE_TGL_HDMI_COUNT;
692-
#endif
693689

694690
ssp_mask = SOF_SSP_GET_PORT(sof_sdw_quirk);
695691
/*
@@ -849,7 +845,6 @@ static int sof_card_dai_links_create(struct device *dev,
849845
INC_ID(be_id, cpu_id, link_id);
850846
}
851847

852-
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
853848
/* HDMI */
854849
if (hdmi_num > 0) {
855850
idisp_components = devm_kcalloc(dev, hdmi_num,
@@ -886,7 +881,6 @@ static int sof_card_dai_links_create(struct device *dev,
886881
sof_sdw_hdmi_init, NULL);
887882
INC_ID(be_id, cpu_id, link_id);
888883
}
889-
#endif
890884

891885
card->dai_link = links;
892886
card->num_links = num_links;
@@ -920,9 +914,7 @@ static int mc_probe(struct platform_device *pdev)
920914

921915
dmi_check_system(sof_sdw_quirk_table);
922916

923-
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
924917
INIT_LIST_HEAD(&ctx->hdmi_pcm_list);
925-
#endif
926918

927919
card->dev = &pdev->dev;
928920

sound/soc/intel/boards/sof_sdw_hdmi.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include "../../codecs/hdac_hdmi.h"
1717
#include "hda_dsp_common.h"
1818

19-
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
2019
static struct snd_soc_jack hdmi[MAX_HDMI_NUM];
2120

2221
struct hdmi_pcm {
@@ -89,9 +88,3 @@ int sof_sdw_hdmi_card_late_probe(struct snd_soc_card *card)
8988

9089
return hdac_hdmi_jack_port_init(component, &card->dapm);
9190
}
92-
#else
93-
int sof_sdw_hdmi_card_late_probe(struct snd_soc_card *card)
94-
{
95-
return 0;
96-
}
97-
#endif

0 commit comments

Comments
 (0)