mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
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:
parent
a901869bbd
commit
9a961be14d
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user