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>
This commit is contained in:
Shengjiu Wang 2020-11-16 13:30:26 +08:00
parent 4a85f59f3f
commit c6e47b33bb
1 changed files with 6 additions and 0 deletions

View File

@ -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");