1
0
Fork 0

LF-2721: ASoC: imx-cs42888: Get card name from model property

Get card name from model property, which is to align the name
with Linux Fractory.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
zero-colors
Shengjiu Wang 2020-11-11 14:54:52 +08:00
parent 86cee110c5
commit b98875a9d3
1 changed files with 3 additions and 0 deletions

View File

@ -584,6 +584,9 @@ static int imx_cs42888_probe(struct platform_device *pdev)
priv->is_codec_master = true;
snd_soc_card_imx_cs42888.dev = &pdev->dev;
ret = snd_soc_of_parse_card_name(&snd_soc_card_imx_cs42888, "model");
if (ret)
goto fail;
platform_set_drvdata(pdev, &snd_soc_card_imx_cs42888);