diff options
author | Martin Povišer <povik+lin@cutebit.org> | 2022-06-06 21:19:09 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-10 13:32:20 +0100 |
commit | df4d27b19b892f464685ea45fa6132dd1a2b6864 (patch) | |
tree | 4d223e42bcc2f1ea4fbf2d78a38f06a63260db2a /include/sound/soc.h | |
parent | 142d456204cf4dabe18be59e043d806440f609d4 (diff) | |
download | lwn-df4d27b19b892f464685ea45fa6132dd1a2b6864.tar.gz lwn-df4d27b19b892f464685ea45fa6132dd1a2b6864.zip |
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>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r-- | include/sound/soc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index f20f5f890794..faef85e37e32 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -916,6 +916,7 @@ struct snd_soc_card { int (*probe)(struct snd_soc_card *card); int (*late_probe)(struct snd_soc_card *card); + void (*fixup_controls)(struct snd_soc_card *card); int (*remove)(struct snd_soc_card *card); /* the pre and post PM functions are used to do any PM work before and |