summaryrefslogtreecommitdiff
path: root/sound/soc/intel/boards/ehl_rt5660.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2023-04-24 02:37:11 +0000
committerMark Brown <broonie@kernel.org>2023-05-08 08:47:13 +0900
commit1785af9ff65d3e7550657d979aea566385c2faa8 (patch)
tree8100f29ea3695ebe97d477cd292624ca8fe90148 /sound/soc/intel/boards/ehl_rt5660.c
parent82528f31e6633a729772cc7366dc6529186cccea (diff)
downloadlwn-1785af9ff65d3e7550657d979aea566385c2faa8.tar.gz
lwn-1785af9ff65d3e7550657d979aea566385c2faa8.zip
ASoC: intel: sof: 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/87wn22ypig.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org
Diffstat (limited to 'sound/soc/intel/boards/ehl_rt5660.c')
-rw-r--r--sound/soc/intel/boards/ehl_rt5660.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sound/soc/intel/boards/ehl_rt5660.c b/sound/soc/intel/boards/ehl_rt5660.c
index d5235c294c4c..fee80638cba2 100644
--- a/sound/soc/intel/boards/ehl_rt5660.c
+++ b/sound/soc/intel/boards/ehl_rt5660.c
@@ -254,7 +254,6 @@ static void hdmi_link_init(struct snd_soc_card *card,
struct sof_card_private *ctx,
struct snd_soc_acpi_mach *mach)
{
- struct snd_soc_dai_link *link;
int i;
if (mach->mach_params.common_hdmi_codec_drv &&
@@ -267,11 +266,8 @@ static void hdmi_link_init(struct snd_soc_card *card,
* if HDMI is not enabled in kernel config, or
* hdmi codec is not supported
*/
- for (i = HDMI_LINK_START; i <= HDMI_LINE_END; i++) {
- link = &card->dai_link[i];
- link->codecs[0].name = "snd-soc-dummy";
- link->codecs[0].dai_name = "snd-soc-dummy-dai";
- }
+ for (i = HDMI_LINK_START; i <= HDMI_LINE_END; i++)
+ card->dai_link[i].codecs[0] = asoc_dummy_dlc;
}
static int snd_ehl_rt5660_probe(struct platform_device *pdev)