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.