From 9a961be14dffb5d329386e27b9bf596e4a59a90a Mon Sep 17 00:00:00 2001 From: Sugar Zhang Date: Thu, 29 Jun 2017 09:43:08 +0800 Subject: [PATCH] ASoC: hdmi_analog: add snd_card's name parsing from DT node support Change-Id: Ie0fcd8ccbac5686b53261cf37a82921e05875dee Signed-off-by: Sugar Zhang --- sound/soc/rockchip/rockchip_hdmi_analog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/rockchip/rockchip_hdmi_analog.c b/sound/soc/rockchip/rockchip_hdmi_analog.c index 3642cec00a04..876fe4c0b9ff 100644 --- a/sound/soc/rockchip/rockchip_hdmi_analog.c +++ b/sound/soc/rockchip/rockchip_hdmi_analog.c @@ -117,6 +117,8 @@ static int rk_hdmi_analog_probe(struct platform_device *pdev) int count; int ret = 0, i = 0, idx = 0; + snd_soc_of_parse_card_name(card, "rockchip,model"); + card->dev = &pdev->dev; count = of_count_phandle_with_args(np, "rockchip,codec", NULL); if (count < 0 || count > MAX_CODECS) -- 2.34.1