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
parent
86cee110c5
commit
b98875a9d3
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue