Skip to content

Commit 9a961be

Browse files
Sugar Zhangjayxurockchip
authored andcommitted
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>
1 parent a901869 commit 9a961be

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sound/soc/rockchip/rockchip_hdmi_analog.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ static int rk_hdmi_analog_probe(struct platform_device *pdev)
117117
int count;
118118
int ret = 0, i = 0, idx = 0;
119119

120+
snd_soc_of_parse_card_name(card, "rockchip,model");
121+
120122
card->dev = &pdev->dev;
121123
count = of_count_phandle_with_args(np, "rockchip,codec", NULL);
122124
if (count < 0 || count > MAX_CODECS)

0 commit comments

Comments
 (0)