ASoC: hdmi_analog: add snd_card's name parsing from DT node support

Change-Id: Ie0fcd8ccbac5686b53261cf37a82921e05875dee
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
This commit is contained in:
Sugar Zhang 2017-06-29 09:43:08 +08:00 committed by Jianqun Xu
parent a901869bbd
commit 9a961be14d

View 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)