diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-06-14 00:35:47 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-06-14 11:00:19 +0100 |
commit | 616c3b15f596e1f1e6c2537a1ad3492052eecba6 (patch) | |
tree | 2d74c6090477071a87a9952659c0f01a7b10fe49 /sound/soc/generic | |
parent | c98907d59594827535b492309a145ac9c758fb4c (diff) | |
download | linux-616c3b15f596e1f1e6c2537a1ad3492052eecba6.tar.gz linux-616c3b15f596e1f1e6c2537a1ad3492052eecba6.tar.bz2 linux-616c3b15f596e1f1e6c2537a1ad3492052eecba6.zip |
ASoC: audio-graph-scu-card: use asoc_simple_card_of_parse_tdm()
Current simple card drivers are using asoc_simple_dai's tx_slot_mask,
rx_slot_mask, slots, slot_width directly to parse TDM.
Encapsulation is one of simple card util's purpose.
Let's use asoc_simple_card_of_parse_tdm for it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/generic')
-rw-r--r-- | sound/soc/generic/audio-graph-scu-card.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/soc/generic/audio-graph-scu-card.c b/sound/soc/generic/audio-graph-scu-card.c index 27a261ee7302..4d295d07858a 100644 --- a/sound/soc/generic/audio-graph-scu-card.c +++ b/sound/soc/generic/audio-graph-scu-card.c @@ -167,11 +167,7 @@ static int asoc_graph_card_dai_link_of(struct device_node *ep, "prefix"); } - ret = snd_soc_of_parse_tdm_slot(ep, - &dai_props->tx_slot_mask, - &dai_props->rx_slot_mask, - &dai_props->slots, - &dai_props->slot_width); + ret = asoc_simple_card_of_parse_tdm(ep, dai_props); if (ret) return ret; |