• Xiubo Li's avatar
    ASoC: simple-card: simplify the daifmt code · 30d0341e
    Xiubo Li authored
    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: default avatarXiubo Li <Li.Xiubo@freescale.com>
    Signed-off-by: default avatarMark Brown <broonie@linaro.org>
    30d0341e
simple-card.c 7.27 KB