[RFC PATCH 2/5] HACK: ASoC: Add card->filter_controls hook
Mark Brown
broonie at kernel.org
Thu Mar 31 13:34:29 CEST 2022
On Thu, Mar 31, 2022 at 02:04:46AM +0200, Martin Povišer wrote:
> Add a new ASoC card callback for filtering the kcontrols of the card's
> constituent components. This lets the card take over some of the
> controls, deciding their value instead of leaving it up to userspace.
Define "filter". What is this trying to accomplish? As a matter of
policy we don't put use case configuration in the kernel, the goal is to
avoid having to update the kernel when people decide to do new things
with their userspace.
> Also, and here's the HACK: part, move dapm_new_widgets call in front
> of the card's late_probe call. This way all kcontrols should have been
> created (and are safe to use) by the time late_probe is called.
This will break any card that adds new controls, you could add a second
call earlier but deleting the existing call is going to break other
users.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20220331/ccc1d3fa/attachment.sig>
More information about the Alsa-devel
mailing list