• Liam Girdwood's avatar
    ASoC: core: Allow topology to override machine driver FE DAI link config. · 45f8cb57
    Liam Girdwood authored
    Machine drivers statically define a number of DAI links that currently
    cannot be changed or removed by topology. This means PCMs and platform
    components cannot be changed by topology at runtime AND machine drivers
    are tightly coupled to topology.
    
    This patch allows topology to override the machine driver DAI link config
    in order to reuse machine drivers with different topologies and platform
    components. The patch supports :-
    
    1) create new FE PCMs with a topology defined PCM ID.
    2) destroy existing static FE PCMs
    3) change the platform component driver.
    4) assign any new HW params fixups.
    
    The patch requires no changes to the machine drivers, but does add some
    platform component flags that the platform component driver can assign
    before loading topologies.
    Signed-off-by: default avatarLiam Girdwood <liam.r.girdwood@linux.intel.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    45f8cb57
soc-pcm.c 91.7 KB