• K
    ASoC: simple-card: add link_info · 17029e49
    Kuninori Morimoto 提交于
    Current simple-card is parsing DAI link for both "normal sound" and
    "DPCM sound". On this driver, it needs to count and parse
    DAIs/Links/Codec Conf from each links.
    Then, counting/parsing link loop are very similar, but using different
    implementation. Because of this background, the link loop code is very
    mysterious. Mystery code will be trouble in the future.
    
    To preparing cleanup code, this patch adds link_info which handles
    number of DAIs/Links/Codec Conf, and CPU/Codec turn.
    Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
    Signed-off-by: NMark Brown <broonie@kernel.org>
    17029e49
simple-card.c 20.0 KB