mirror of
https://github.com/torvalds/linux.git
synced 2024-12-08 03:52:16 +00:00
ASoC: intel: skylake: use asoc_dummy_dlc
Now we can share asoc_dummy_dlc. This patch use it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com Link: https://lore.kernel.org/r/87v8hmypia.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org
This commit is contained in:
parent
1785af9ff6
commit
1a39e17813
@ -61,9 +61,6 @@ static const struct snd_soc_dapm_route skl_hda_map[] = {
|
||||
{ "Alt Analog CPU Capture", NULL, "Alt Analog Codec Capture" },
|
||||
};
|
||||
|
||||
SND_SOC_DAILINK_DEF(dummy_codec,
|
||||
DAILINK_COMP_ARRAY(COMP_CODEC("snd-soc-dummy", "snd-soc-dummy-dai")));
|
||||
|
||||
static int skl_hda_card_late_probe(struct snd_soc_card *card)
|
||||
{
|
||||
return skl_hda_hdmi_jack_init(card);
|
||||
@ -158,9 +155,8 @@ static int skl_hda_fill_card_info(struct snd_soc_acpi_mach_params *mach_params)
|
||||
card->num_dapm_widgets = ARRAY_SIZE(skl_hda_widgets);
|
||||
if (!ctx->idisp_codec) {
|
||||
for (i = 0; i < IDISP_DAI_COUNT; i++) {
|
||||
skl_hda_be_dai_links[i].codecs = dummy_codec;
|
||||
skl_hda_be_dai_links[i].num_codecs =
|
||||
ARRAY_SIZE(dummy_codec);
|
||||
skl_hda_be_dai_links[i].codecs = &asoc_dummy_dlc;
|
||||
skl_hda_be_dai_links[i].num_codecs = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user