OSDN Git Service

ASoC: core: Allow topology to override machine driver FE DAI link config.
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>
Mon, 2 Jul 2018 15:59:54 +0000 (16:59 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 3 Jul 2018 15:38:29 +0000 (16:38 +0100)
commita655de808cbde6c58b3298e704d786b53f59fb5d
treef096c0994bbebf6ea7fbdc1660bf09949ccb38dd
parent2bd368d7bf21028f37a123041a138922254d4840
ASoC: core: Allow topology to override machine driver FE DAI link config.

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.
5) assign a new card name prefix to differentiate this topology to userspace.

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: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-core.c
sound/soc/soc-pcm.c