ASoC: simple-card-utils: add asoc_simple_card_of_parse_tdm()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 14 Jun 2017 00:34:35 +0000 (00:34 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 14 Jun 2017 10:00:07 +0000 (11:00 +0100)
commite68ba207444354ddf295de2e7fbcc97c06cccc8b
treec49e323b638870e33d721158ae7a4f763f4605ce
parent63a5f59208bce7110596b09950f48bf07b8baeb9
ASoC: simple-card-utils: add 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 add 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>
include/sound/simple_card_utils.h