summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-cdnhdmi.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2020-11-16 13:30:26 +0800
committerShengjiu Wang <shengjiu.wang@nxp.com>2020-11-16 14:07:59 +0800
commitc6e47b33bbb758b8ea0248766418fec76688622e (patch)
tree74d48e671f1f52e76f74e067c61090ea9ee4103f /sound/soc/fsl/imx-cdnhdmi.c
parent4a85f59f3fee98220b94c2b8b0f3a27981f82b6f (diff)
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 <shengjiu.wang@nxp.com> Reviewed-by: Peng Zhang <peng.zhang_8@nxp.com>
Diffstat (limited to 'sound/soc/fsl/imx-cdnhdmi.c')
-rw-r--r--sound/soc/fsl/imx-cdnhdmi.c6
1 files changed, 6 insertions, 0 deletions
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");