[PATCH 10/15] ASoC: cs42l42: Report jack and button detection
Mark Brown
broonie at kernel.org
Tue Mar 2 18:29:23 CET 2021
On Tue, Mar 02, 2021 at 05:04:49PM +0000, Lucas Tanure wrote:
> Report the Jack events to the user space through ALSA.
> Also moves request_threaded_irq() to component_probe so it don't get
> interrupts before the initialization the struct snd_soc_jack.
This looks like it should be split into two changes too, one for the
code motion and one for the jack API. However I'm not convinced it's a
good idea to move the interrupt requesting to the component
registration, in general we should be doing resource acquisition in the
main probe function so things like deferred probe work well - it gets
messy if we try to handle stuff like that in component registration.
I'd have expected the interrupt handling to just be able to check if
there's a jack set, and note that snd_soc_jack_report() supports being
called with a NULL jack anyway.
-------------- 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/20210302/e9be745a/attachment.sig>
More information about the Alsa-devel
mailing list