ASoC: Introduce 'fixup_controls' card method
authorMartin Povišer <povik+lin@cutebit.org>
Mon, 6 Jun 2022 19:19:09 +0000 (21:19 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 10 Jun 2022 12:32:20 +0000 (13:32 +0100)
commitdf4d27b19b892f464685ea45fa6132dd1a2b6864
tree4d223e42bcc2f1ea4fbf2d78a38f06a63260db2a
parent142d456204cf4dabe18be59e043d806440f609d4
ASoC: Introduce 'fixup_controls' card method

The new method is called just before the card is registered, providing
an opportune time for machine-level drivers to do some final controls
amending: deactivating individual controls or obtaining control
references for later use.

Some controls can be created by DAPM after 'late_probe' has been called,
hence the need for this new method.

Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20220606191910.16580-5-povik+lin@cutebit.org
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-card.h
include/sound/soc.h
sound/soc/soc-card.c
sound/soc/soc-core.c