From: Sugar Zhang Date: Thu, 29 Jun 2017 01:43:08 +0000 (+0800) Subject: ASoC: hdmi_analog: add snd_card's name parsing from DT node support X-Git-Tag: release-20171130_firefly~4^2~276 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9a961be14dffb5d329386e27b9bf596e4a59a90a;p=firefly-linux-kernel-4.4.55.git ASoC: hdmi_analog: add snd_card's name parsing from DT node support Change-Id: Ie0fcd8ccbac5686b53261cf37a82921e05875dee Signed-off-by: Sugar Zhang --- 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)