aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/generic
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2017-06-14 00:35:13 +0000
committerMark Brown <broonie@kernel.org>2017-06-14 11:00:13 +0100
commit77b713b52878fbe21d9d5339cc42fbec3202392e (patch)
tree7265cb97604ae3b3a7a2fbbfc2143b7f9c834907 /sound/soc/generic
parentASoC: simple-card: use asoc_simple_card_of_parse_tdm() (diff)
downloadwireguard-linux-77b713b52878fbe21d9d5339cc42fbec3202392e.tar.xz
wireguard-linux-77b713b52878fbe21d9d5339cc42fbec3202392e.zip
ASoC: simple-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/simple-scu-card.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/soc/generic/simple-scu-card.c b/sound/soc/generic/simple-scu-card.c
index f203783b2fad..938f3f30eef1 100644
--- a/sound/soc/generic/simple-scu-card.c
+++ b/sound/soc/generic/simple-scu-card.c
@@ -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;