From c6e47b33bbb758b8ea0248766418fec76688622e Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Mon, 16 Nov 2020 13:30:26 +0800 Subject: [PATCH] LF-2700: ASoC: fsl: imx-cdnhdmi: Fix error prompt Add widget to fix error prompt: imx-cdnhdmi sound-hdmi: ASoC: DAPM unknown pin HDMI Jack Signed-off-by: Shengjiu Wang Reviewed-by: Peng Zhang --- sound/soc/fsl/imx-cdnhdmi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/fsl/imx-cdnhdmi.c b/sound/soc/fsl/imx-cdnhdmi.c index dd3e453a206f..6b4ef2164bba 100644 --- a/sound/soc/fsl/imx-cdnhdmi.c +++ b/sound/soc/fsl/imx-cdnhdmi.c @@ -361,6 +361,10 @@ static int imx_cdnhdmi_rx_rates_get(struct snd_kcontrol *kcontrol, return 0; } +static const struct snd_soc_dapm_widget imx_cdnhdmi_widgets[] = { + SND_SOC_DAPM_LINE("HDMI Jack", NULL), +}; + static int imx_cdnhdmi_init(struct snd_soc_pcm_runtime *rtd) { struct snd_soc_card *card = rtd->card; @@ -537,6 +541,8 @@ static int imx_cdnhdmi_probe(struct platform_device *pdev) goto fail; } + data->card.dapm_widgets = imx_cdnhdmi_widgets; + data->card.num_dapm_widgets = ARRAY_SIZE(imx_cdnhdmi_widgets); data->card.dev = &pdev->dev; data->card.owner = THIS_MODULE; ret = snd_soc_of_parse_card_name(&data->card, "model");