ASoC: rsrc-card: use asoc_simple_card_canonicalize_dailink()

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Kuninori Morimoto 2016-08-09 05:50:19 +00:00 committed by Mark Brown
parent 600ee20855
commit a09f383ef7
1 changed files with 4 additions and 2 deletions

View File

@ -222,8 +222,10 @@ static int rsrc_card_parse_links(struct device_node *np,
}
}
/* Simple Card assumes platform == cpu */
dai_link->platform_of_node = dai_link->cpu_of_node;
ret = asoc_simple_card_canonicalize_dailink(dai_link);
if (ret < 0)
return ret;
dai_link->dpcm_playback = 1;
dai_link->dpcm_capture = 1;
dai_link->ops = &rsrc_card_ops;