]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd8f13cc5c2de5b965fc0df804b83ea309768cc0e
treef096c0994bbebf6ea7fbdc1660bf09949ccb38dd
parent0a39b41b9319b82014e92b04669fd07f738206d6
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