]> 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>
Tue, 27 Mar 2018 13:30:40 +0000 (14:30 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 17 Apr 2018 17:07:20 +0000 (18:07 +0100)
commitd7db2cc33296ed6d396681062b5560580e349194
treedbccf8956339890ce71070e5799daceb1b29232e
parented03ea1375983fcd5b1d7494e3c22193f668b6b8
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.

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