ASoC: simple-card: simplify the daifmt code
authorXiubo Li <Li.Xiubo@freescale.com>
Fri, 24 Jan 2014 07:43:01 +0000 (15:43 +0800)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:13:31 +0000 (11:13 +0100)
commitd57e4505869f966db831ff808157fbfa32f605df
tree456cbb3ebbb8d54d424a1c96269abdb78c4aad4a
parent9c4cadf99b0158a166182ed9e08124e5c31118cb
ASoC: simple-card: simplify the daifmt code

In the asoc_simple_card_parse_of() will parse the device node's CPU/CODEC
DAI commone fmts, and then in asoc_simple_card_sub_parse_of() will parse
the CPU/CODEC DAI's sub-node fmts, so we can combine the info->daifmt and
info->set.fmt in asoc_simple_card_sub_parse_of() not while just before
_set_fmt().

And this will be more easy to add new functions, such as supporting
_set_tdm_slot(), etc.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 30d0341e7da0c012f64fb290dd1153360fb49a8d)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
sound/soc/generic/simple-card.c