• X
    ASoC: simple-card: simplify the daifmt code · 30d0341e
    Xiubo Li 提交于
    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: NXiubo Li <Li.Xiubo@freescale.com>
    Signed-off-by: NMark Brown <broonie@linaro.org>
    30d0341e
simple-card.c 7.3 KB