ASoC: hdmi_analog: add snd_card's name parsing from DT node support
authorSugar Zhang <sugar.zhang@rock-chips.com>
Thu, 29 Jun 2017 01:43:08 +0000 (09:43 +0800)
committerJianqun Xu <jay.xu@rock-chips.com>
Thu, 29 Jun 2017 08:02:55 +0000 (16:02 +0800)
Change-Id: Ie0fcd8ccbac5686b53261cf37a82921e05875dee
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
sound/soc/rockchip/rockchip_hdmi_analog.c

index 3642cec00a04e8c5577b7a7b25579ebd290c9f1c..876fe4c0b9ff6afc04f1f4d511671775cbb877fb 100644 (file)
@@ -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)