ASoC: simple-scu-card: use asoc_simple_card_of_parse_tdm()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 14 Jun 2017 00:35:13 +0000 (00:35 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 14 Jun 2017 10:00:13 +0000 (11:00 +0100)
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>
sound/soc/generic/simple-scu-card.c

index f203783b2fade240065434f66a6d2a22e302adca..938f3f30eef18c485a58b2b42c69ef36bd80669f 100644 (file)
@@ -171,11 +171,7 @@ static int asoc_simple_card_dai_link_of(struct device_node *np,
                                              PREFIX "prefix");
        }
 
-       ret = snd_soc_of_parse_tdm_slot(np,
-                                       &dai_props->tx_slot_mask,
-                                       &dai_props->rx_slot_mask,
-                                       &dai_props->slots,
-                                       &dai_props->slot_width);
+       ret = asoc_simple_card_of_parse_tdm(np, dai_props);
        if (ret)
                return ret;